diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-10-12 13:46:28 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2013-03-14 10:46:11 +0530 |
commit | 749dea816d5d96f8ca3fdd8139c2163e61013c10 (patch) | |
tree | ae2933c7cae4f139075a27c34d962d501141885d /arch | |
parent | 47f110dedc4f4eeec70f60531eea53545df9ebc3 (diff) |
ARM: EXYNOS: Add touch screen support on Origen_quad
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-exynos/mach-origen_quad.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/mach-origen_quad.c b/arch/arm/mach-exynos/mach-origen_quad.c index 7543349f1e53..86169e3e8a58 100644 --- a/arch/arm/mach-exynos/mach-origen_quad.c +++ b/arch/arm/mach-exynos/mach-origen_quad.c @@ -685,6 +685,7 @@ static struct platform_device *origen_quad_devices[] __initdata = { &s3c_device_rtc, &s3c_device_hsmmc2, &s3c_device_i2c0, + &s3c_device_i2c3, &s5p_device_fimc0, &s5p_device_fimc1, &s5p_device_fimc2, @@ -733,6 +734,15 @@ static struct i2c_board_info i2c0_devs[] __initdata = { }, }; +static struct i2c_board_info i2c3_devs[] __initdata = { +#ifdef CONFIG_TOUCHSCREEN_UNIDISPLAY_TS + { + I2C_BOARD_INFO("unidisplay_ts", 0x41), + .irq = IRQ_EINT(25), + }, +#endif +}; + static void __init origen_quad_reserve(void) { s5p_mfc_reserve_mem(0x43000000, 8 << 20, 0x51000000, 8 << 20); @@ -745,6 +755,9 @@ static void __init origen_quad_machine_init(void) s3c_i2c0_set_platdata(NULL); i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs)); + s3c_i2c3_set_platdata(NULL); + i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); + s3c_sdhci2_set_platdata(&origen_quad_hsmmc2_pdata); #ifdef CONFIG_DRM_EXYNOS |