Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
intel-mid-touch.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/param.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/irq.h>
#include <linux/delay.h>
#include <asm/intel_scu_ipc.h>

Go to the source code of this file.

Data Structures

struct  mrstouch_dev
 

Macros

#define PMIC_REG_ID1   0x00 /* PMIC ID1 register */
 
#define PMIC_REG_INT   0x04 /* PMIC interrupt register */
 
#define PMIC_REG_MINT   0x05 /* PMIC interrupt mask register */
 
#define PMIC_REG_ADCINT   0x5F /* ADC interrupt register */
 
#define PMIC_REG_MADCINT   0x60 /* ADC interrupt mask register */
 
#define PMIC_REG_ADCCNTL1   0x61 /* ADC control register */
 
#define PMICADDR0   0xA4
 
#define END_OF_CHANNEL   0x1F
 
#define PMIC_REG_ADCSNS0H   0x64
 
#define MRST_TS_CHAN10   0xA /* Touch screen X+ connection */
 
#define MRST_TS_CHAN11   0xB /* Touch screen X- connection */
 
#define MRST_TS_CHAN12   0xC /* Touch screen Y+ connection */
 
#define MRST_TS_CHAN13   0xD /* Touch screen Y- connection */
 
#define MRST_XBIAS   0x20
 
#define MRST_YBIAS   0x40
 
#define MRST_ZBIAS   0x80
 
#define MRST_X_MIN   10
 
#define MRST_X_MAX   1024
 
#define MRST_X_FUZZ   5
 
#define MRST_Y_MIN   10
 
#define MRST_Y_MAX   1024
 
#define MRST_Y_FUZZ   5
 
#define MRST_PRESSURE_MIN   0
 
#define MRST_PRESSURE_NOMINAL   50
 
#define MRST_PRESSURE_MAX   100
 
#define WAIT_ADC_COMPLETION   10 /* msec */
 
#define ADC_LOOP_DELAY0   0x0 /* Continuous loop */
 
#define ADC_LOOP_DELAY1   0x1 /* 4.5 ms approximate */
 
#define PMIC_VENDOR_FS   0 /* PMIC vendor FreeScale */
 
#define PMIC_VENDOR_MAXIM   1 /* PMIC vendor MAXIM */
 
#define PMIC_VENDOR_NEC   2 /* PMIC vendor NEC */
 
#define MRSTOUCH_MAX_CHANNELS   32 /* Maximum ADC channels */
 

Functions

 module_platform_driver (mrstouch_driver)
 
 MODULE_AUTHOR ("Sreedhara Murthy. D.S, sreedhara.ds@intel.com")
 
 MODULE_DESCRIPTION ("Intel Moorestown Resistive Touch Screen Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADC_LOOP_DELAY0   0x0 /* Continuous loop */

Definition at line 87 of file intel-mid-touch.c.

#define ADC_LOOP_DELAY1   0x1 /* 4.5 ms approximate */

Definition at line 88 of file intel-mid-touch.c.

#define END_OF_CHANNEL   0x1F

Definition at line 57 of file intel-mid-touch.c.

#define MRST_PRESSURE_MAX   100

Definition at line 82 of file intel-mid-touch.c.

#define MRST_PRESSURE_MIN   0

Definition at line 80 of file intel-mid-touch.c.

#define MRST_PRESSURE_NOMINAL   50

Definition at line 81 of file intel-mid-touch.c.

#define MRST_TS_CHAN10   0xA /* Touch screen X+ connection */

Definition at line 63 of file intel-mid-touch.c.

#define MRST_TS_CHAN11   0xB /* Touch screen X- connection */

Definition at line 64 of file intel-mid-touch.c.

#define MRST_TS_CHAN12   0xC /* Touch screen Y+ connection */

Definition at line 65 of file intel-mid-touch.c.

#define MRST_TS_CHAN13   0xD /* Touch screen Y- connection */

Definition at line 66 of file intel-mid-touch.c.

#define MRST_X_FUZZ   5

Definition at line 76 of file intel-mid-touch.c.

#define MRST_X_MAX   1024

Definition at line 75 of file intel-mid-touch.c.

#define MRST_X_MIN   10

Definition at line 74 of file intel-mid-touch.c.

#define MRST_XBIAS   0x20

Definition at line 69 of file intel-mid-touch.c.

#define MRST_Y_FUZZ   5

Definition at line 79 of file intel-mid-touch.c.

#define MRST_Y_MAX   1024

Definition at line 78 of file intel-mid-touch.c.

#define MRST_Y_MIN   10

Definition at line 77 of file intel-mid-touch.c.

#define MRST_YBIAS   0x40

Definition at line 70 of file intel-mid-touch.c.

#define MRST_ZBIAS   0x80

Definition at line 71 of file intel-mid-touch.c.

#define MRSTOUCH_MAX_CHANNELS   32 /* Maximum ADC channels */

Definition at line 94 of file intel-mid-touch.c.

#define PMIC_REG_ADCCNTL1   0x61 /* ADC control register */

Definition at line 53 of file intel-mid-touch.c.

#define PMIC_REG_ADCINT   0x5F /* ADC interrupt register */

Definition at line 49 of file intel-mid-touch.c.

#define PMIC_REG_ADCSNS0H   0x64

Definition at line 60 of file intel-mid-touch.c.

#define PMIC_REG_ID1   0x00 /* PMIC ID1 register */

Definition at line 42 of file intel-mid-touch.c.

#define PMIC_REG_INT   0x04 /* PMIC interrupt register */

Definition at line 45 of file intel-mid-touch.c.

#define PMIC_REG_MADCINT   0x60 /* ADC interrupt mask register */

Definition at line 50 of file intel-mid-touch.c.

#define PMIC_REG_MINT   0x05 /* PMIC interrupt mask register */

Definition at line 46 of file intel-mid-touch.c.

#define PMIC_VENDOR_FS   0 /* PMIC vendor FreeScale */

Definition at line 91 of file intel-mid-touch.c.

#define PMIC_VENDOR_MAXIM   1 /* PMIC vendor MAXIM */

Definition at line 92 of file intel-mid-touch.c.

#define PMIC_VENDOR_NEC   2 /* PMIC vendor NEC */

Definition at line 93 of file intel-mid-touch.c.

#define PMICADDR0   0xA4

Definition at line 56 of file intel-mid-touch.c.

#define WAIT_ADC_COMPLETION   10 /* msec */

Definition at line 84 of file intel-mid-touch.c.

Function Documentation

MODULE_AUTHOR ( "Sreedhara Murthy. D.  S,
sreedhara.ds @intel.com"   
)
MODULE_DESCRIPTION ( "Intel Moorestown Resistive Touch Screen Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( mrstouch_driver  )