1 /* 2 * Some platform data for the RMI4 touchscreen that will override the __weak 3 * platform data in the Ux500 machine if this driver is activated. 4 */ 5 #include <linux/i2c.h> 6 #include <linux/gpio.h> 7 #include <linux/interrupt.h> 8 #include <mach/gpio.h> 9 #include <mach/irqs.h> 10 #include "synaptics_i2c_rmi4.h" 11 12 /* 13 * Synaptics RMI4 touchscreen interface on the U8500 UIB 14 */ 15 16 /* 17 * Descriptor structure. 18 * Describes the number of i2c devices on the bus that speak RMI. 19 */ 20 static struct synaptics_rmi4_platform_data rmi4_i2c_dev_platformdata = { 21 .irq_number = NOMADIK_GPIO_TO_IRQ(84), 22 .irq_type = (IRQF_TRIGGER_FALLING | IRQF_SHARED), 23 .x_flip = false, 24 .y_flip = true, 25 }; 26 27 struct i2c_board_info __initdata mop500_i2c3_devices_u8500[] = { 28 { 29 I2C_BOARD_INFO("synaptics_rmi4_i2c", 0x4B), 30 .platform_data = &rmi4_i2c_dev_platformdata, 31 }, 32 }; 33