void __init exynos5_universal5420_input_init(void) { #if defined(CONFIG_TOUCHSCREEN_ATMEL_MXTS) atmel_tsp_init(); //tsp_check_and_init(); #endif universal5410_gpio_keys_config_setup(system_rev); #ifdef CONFIG_INPUT_WACOM wacom_init(); #endif #ifdef CONFIG_SENSORS_HALL s3c_gpio_setpull(GPIO_HALL_SENSOR_INT, S3C_GPIO_PULL_UP); gpio_request(GPIO_HALL_SENSOR_INT, "GPIO_HALL_SENSOR_INT"); s3c_gpio_cfgpin(GPIO_HALL_SENSOR_INT, S3C_GPIO_SFN(0xf)); s5p_register_gpio_interrupt(GPIO_HALL_SENSOR_INT); gpio_direction_input(GPIO_HALL_SENSOR_INT); #endif if (lpcharge == 0) { platform_device_register(&s3c_device_i2c0); } else { printk(KERN_INFO "%s lpm mode : Do not register tsp driver.", __func__); } platform_add_devices(universal5410_input_devices, ARRAY_SIZE(universal5410_input_devices)); }
void __init exynos5_universal5420_input_init(void) { #if defined(CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_I2C) #if defined(CONFIG_V2A) if (0x6 <= system_rev) atmel_tsp_init(); else #endif synaptics_dsx_tsp_init(); #elif defined(CONFIG_TOUCHSCREEN_ATMEL_MXTS) atmel_tsp_init(); #endif #ifdef CONFIG_INPUT_WACOM wacom_init(); #endif platform_add_devices(input_devices, ARRAY_SIZE(input_devices)); }