]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/touchscreen/omap/ts_hx.c
h63xx: touchscreen support
[linux-2.6-omap-h63xx.git] / drivers / input / touchscreen / omap / ts_hx.c
index f148f19765e011cd7b51084734276750e4abe659..98808736174794d59e20ca663c5aaf5bf50f0c08 100644 (file)
@@ -39,6 +39,7 @@
 
 #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
@@ -88,6 +89,9 @@ static int __init hx_ts_probe(struct omap_ts_t *ts)
        } 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;
 
@@ -180,5 +184,7 @@ static void __exit hx_ts_remove(void)
                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