# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_MK712 is not set
-# CONFIG_TOUCHSCREEN_OMAP is not set
+CONFIG_TOUCHSCREEN_OMAP=m
CONFIG_INPUT_MISC=y
CONFIG_INPUT_UINPUT=m
omap1_init_common_hw();
omap_init_irq();
omap_gpio_init();
+/* touchscreen gpio setup is now done in the drivers/input/touschreen/omap/ts_hx.c
+ omap_request_gpio(2);
+ omap_set_gpio_direction(2, 0);
+ omap_set_gpio_dataout(2, 1);
+*/
}
static void __init h6300_init(void)
objs-$(CONFIG_ARCH_OMAP16XX)$(CONFIG_MACH_OMAP_H3) += ts_hx.o
objs-$(CONFIG_ARCH_OMAP15XX)$(CONFIG_MACH_OMAP_INNOVATOR) += ts_inn1510.o
objs-$(CONFIG_ARCH_OMAP16XX)$(CONFIG_MACH_OMAP_OSK) += ts_osk.o
+objs-$(CONFIG_ARCH_OMAP15XX)$(CONFIG_MACH_OMAP_H6300) += ts_hx.o
omapts-objs := omap_ts.o $(objs-yy)
#define OMAP_TS_NAME "omap_ts"
static struct ts_device *__initdata ts_devs[] = {
-#if defined(CONFIG_MACH_OMAP_H2) || defined(CONFIG_MACH_OMAP_H3)
+#if defined(CONFIG_MACH_OMAP_H2) || defined(CONFIG_MACH_OMAP_H3) || defined(CONFIG_MACH_OMAP_H6300)
&hx_ts,
#endif
#ifdef CONFIG_MACH_OMAP_OSK
#define H2_GPIO_NUM 4
#define H3_GPIO_NUM 48
+#define H6300_GPIO_NUM 2
#define OMAP_TSC2101_XRES 500
#define TOUCHSCREEN_DATA_REGISTERS_PAGE 0x0
} else if (machine_is_omap_h3()) {
gpio = H3_GPIO_NUM;
omap_cfg_reg(W19_1610_GPIO48);
+ } else if (machine_is_omap_h6300 ()) {
+ gpio = H6300_GPIO_NUM;
+ omap_cfg_reg(M14_1510_GPIO2);
} else
return -ENODEV;
omap_free_gpio(H2_GPIO_NUM);
else if (machine_is_omap_h3())
omap_free_gpio(H3_GPIO_NUM);
+ else if (machine_is_omap_h6300())
+ omap_free_gpio(H6300_GPIO_NUM);
}
#endif