1 #ifndef __DRIVERS_TOUCHSCREEN_PIXCIR_TS_H
\r
2 #define __DRIVERS_TOUCHSCREEN_PIXCIR_TS_H
\r
4 // #include <mach/gpio.h>
\r
6 static int attb_read_val(void);
\r
7 static void tangoC_init(void);
\r
12 #define IOMUX_NAME_SIZE 48
\r
13 struct pixcir_platform_data {
\r
16 bool swap_xy; /* swap x and y axes */
\r
20 int gpio_reset_active_low;
\r
21 int gpio_pendown; /* the GPIO used to decide the pendown */
\r
23 char pendown_iomux_name[IOMUX_NAME_SIZE];
\r
24 char resetpin_iomux_name[IOMUX_NAME_SIZE];
\r
25 int pendown_iomux_mode;
\r
26 int resetpin_iomux_mode;
\r
28 uint8_t virtual_key_num;
\r
29 uint16_t virtual_key_code[4];
\r
31 int (*get_pendown_state)(void);
\r
34 //Platform gpio define
\r
38 #include <plat/gpio-bank-e1.h> //reset pin GPE1_5
\r
39 #include <plat/gpio-bank-h1.h> //attb pin GPH1_3
\r
40 #include <mach/gpio.h>
\r
41 #include <plat/gpio-cfg.h>
\r
43 #define ATTB S5PC1XX_GPH1(3)
\r
44 #define get_attb_value gpio_get_value
\r
45 #define RESETPIN_CFG s3c_gpio_cfgpin(S5PC1XX_GPE1(5),S3C_GPIO_OUTPUT)
\r
46 #define RESETPIN_SET0 gpio_direction_output(S5PC1XX_GPE1(5),0)
\r
47 #define RESETPIN_SET1 gpio_direction_output(S5PC1XX_GPE1(5),1)
\r
51 // #include <plat/gpio-cfg.h>
\r
52 // #include <mach/gpio-bank-e.h>
\r
53 // #include <mach/gpio-bank-n.h>
\r
54 // #include <mach/gpio.h>
\r
56 #define ATTB RK29_PIN4_PD5
\r
57 #define get_attb_value gpio_get_value
\r
58 #define RESETPIN_CFG //s3c_gpio_cfgpin(RK29_PIN4_PD5,S3C_GPIO_OUTPUT)
\r
59 //rk29_mux_api_set(PWM_MUX_NAME, PWM_MUX_MODE_GPIO);
\r
60 #define RESETPIN_SET0 gpio_direction_output(RK29_PIN4_PD5,0)
\r
61 #define RESETPIN_SET1 gpio_direction_output(RK29_PIN4_PD5,1)
\r
64 static int attb_read_val(void)
\r
66 return gpio_get_value(RK29_PIN4_PD5);
\r
69 /*static void tangoC_init(void)
\r