Hi,
I'm looking for the right way to use Atmel MaxTouch mxt224e i2c touchscreen on AM335x-evm board running Android ICS. I'm focused on the touchscreen driver and how to integrate it into Linux kernel.
MaxTouch's driver is already present (as atmel_mxt_ts.c) into TI's ICS porting and I have a good understanding on how it works. What I'm looking now is the driver initialization. After some researches I've understand that board's initialization is done into board_am335xevm.c file, and I suppose this is the place where I should start editing in order to initialize the touchscreen driver.
Based on this blog post and on Linux's i2c documentation, initialization there is done using an i2c_board_info struct like this:
static struct i2c_board_info atmel_i2c_devices[] = {
{
I2C_BOARD_INFO("mXT224", 0x4A),
.irq = xx, /* IRQ number */
},
};
And then registering the device using i2c_register_board_info() function like this:
i2c_register_board_info(0, atmel_i2c_devices, ARRAY_SIZE(atmel_i2c_devices));
What I'm missing is where to use i2c_register_board_info() function. Can someone point me to specific documentation?
Thanks,
Francesco