#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_set_gpio_direction(gpio, 1);
- set_irq_type(ts->irq, IRQT_FALLING);
+ ts->irq_type = SA_TRIGGER_FALLING;
return 0;
}
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