Other Parts Discussed in Thread: TSC2007, OMAP3530
Dear support
I'm testing that the TSC2007 Device using at AT91SAM9261board.
My Target Environment: linux-2.6.22 and u-boot-1.1.4 referenced OMAP3EVM.
For tsc2007_core.c, I modifyed tsc2007_platform.c that using pen_down_state() and tsc2007_detect_penirq()
please refer to the below:
/* =====================================
* TSC2007 I2C interface
* =====================================
*/
static void tsc2007_dev_init(void)
{
if (omap_request_gpio(TSC2007_GPIO) < 0)
printk(KERN_ERR "can't get tsc2007 pen down GPIO\n");
omap_set_gpio_direction(TSC2007_GPIO, 1);
omap_set_gpio_debounce(TSC2007_GPIO, 1);
omap_set_gpio_debounce_time(TSC2007_GPIO, 0xa);
}
int pen_down_state(void)
{
return !gpio_get_value(TSC2007_GPIO);
}
int tsc2007_detect_penirq(void)
{
return OMAP_GPIO_IRQ(TSC2007_GPIO);
}
------------------------------------------------------------------------------------
It's modifyed board-omap3evm.c for tsc2007 driver.
at the time, driver don't call the pen_down_state on tsc2007_register_driver.
Help me to port tsc2007 driver for OMAP3530.
** if you saw the source, is right? GPIO Configuration?
please let me your advice.