Hopefully this is a straight forward question. We are trying to connect a touch screen to the C6-Integra board. The touch screen device we are using is ADS7845, which the kernel has support for, with a patch. The question is the how to configure the SPI port.
It looks like we would do something like what is done for the SPI flash device on the board (See below) in the board configuration file. We think we understand how to setup the chip select, clock speed, and IRQ, but not sure what we would need for the .modalias and if it requires any .platform data.
Thanks,
Craig
struct spi_board_info __initdata ti816x_spi_slave_info[] = {
{
.modalias = "m25p80",
.platform_data = &ti816x_spi_flash,
.irq = -1,
.max_speed_hz = 75000000,
.bus_num = 1,
.chip_select = 0,
},
};
static void __init ti816x_spi_init(void)
{
spi_register_board_info(ti816x_spi_slave_info,
ARRAY_SIZE(ti816x_spi_slave_info));
}