7 #include <linux/kernel.h>
13 #include <linux/i2c.h>
20 static const unsigned int mop500_keymap[] = {
44 .keymap = mop500_keymap,
53 .no_autorepeat =
true,
54 .keymap_data = &mop500_keymap_data,
62 .keypad = &stmpe1601_keypad_data,
64 .autosleep_timeout = 1024,
71 .platform_data = &stmpe1601_data,
81 static int bu21013_devices;
83 #define TOUCH_GPIO_PIN 84
85 #define TOUCH_XMAX 384
86 #define TOUCH_YMAX 704
88 #define PRCMU_CLOCK_OCR 0x1CC
89 #define TSC_EXT_CLOCK_9_6MHZ 0x840000
97 static int bu21013_gpio_board_init(
int reset_pin)
102 if (bu21013_devices == 1) {
125 static int bu21013_gpio_board_exit(
int reset_pin)
129 if (bu21013_devices == 1) {
148 static int bu21013_read_pin_val(
void)
154 .cs_en = bu21013_gpio_board_init,
155 .cs_dis = bu21013_gpio_board_exit,
156 .irq_read_val = bu21013_read_pin_val,
166 .cs_en = bu21013_gpio_board_init,
167 .cs_dis = bu21013_gpio_board_exit,
168 .irq_read_val = bu21013_read_pin_val,
180 .platform_data = &tsc_plat_device,
184 .platform_data = &tsc_plat2_device,
191 if (machine_is_hrefv60()) {