void __init atmel_tsp_init(void) { mxt_gpio_init(); mxt_i2c_devs0[0].irq = gpio_to_irq(GPIO_TOUCH_CHG); s3c_i2c0_set_platdata(&touch_i2c0_platdata); i2c_register_board_info(0, mxt_i2c_devs0, ARRAY_SIZE(mxt_i2c_devs0)); printk(KERN_ERR "%s touch : %d [%d]\n", __func__, mxt_i2c_devs0[0].irq, system_rev); }
void __init atmel_tsp_init(void) { mxt_gpio_init(); mxt_i2c_devs0[0].irq = gpio_to_irq(GPIO_TSP_nINT); /* Revision_I is applied from H/W revision(1.1).*/ if (system_rev >= MXT_SUPPORT_REV_S) { mxt_data.num_xnode = 28; mxt_data.num_ynode = 16; mxt_data.firmware_name = MXT_FIRMWARE_NAME_REVISION_I; mxt_data.revision = MXT_REVISION_I; } s3c_i2c0_set_platdata(&touch_i2c0_platdata); i2c_register_board_info(0, mxt_i2c_devs0, ARRAY_SIZE(mxt_i2c_devs0)); printk(KERN_ERR "%s touch : %d\n", __func__, mxt_i2c_devs0[0].irq); }
void __init tab3_tsp_init(u32 system_rev) { mxt_gpio_init(); mxt_i2c_devs3[0].irq = gpio_to_irq(GPIO_TSP_INT); s3c_i2c3_set_platdata(NULL); i2c_register_board_info(3, mxt_i2c_devs3, ARRAY_SIZE(mxt_i2c_devs3)); #if !defined(CONFIG_QC_MODEM) if(system_rev < 2) mxt_data.firmware_name = MXT_FIRMWARE_NAME_REVISION_OLD; else mxt_data.firmware_name = MXT_FIRMWARE_NAME_REVISION; #else mxt_data.firmware_name = MXT_FIRMWARE_NAME_REVISION; #endif printk(KERN_ERR "%s touch : %d [%d]\n", __func__, mxt_i2c_devs3[0].irq, system_rev); }