diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2010-10-08 22:34:56 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-25 16:03:01 +0900 |
commit | 3b7998f529a18696baafb8cca63a7720565ad77f (patch) | |
tree | 9201940bf2d58e9b58d75ca50f25b1be8d681b70 /arch/arm/mach-s5pv310/mach-universal_c210.c | |
parent | acf5eda92da23c904d1e37ba80c75572f3e2c860 (diff) | |
download | op-kernel-dev-3b7998f529a18696baafb8cca63a7720565ad77f.zip op-kernel-dev-3b7998f529a18696baafb8cca63a7720565ad77f.tar.gz |
ARM: S5PV310: I2C0/1 devices support on Universal board
Camera devices use the I2C0 and Gyro uese the I2C1 on universal board.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv310/mach-universal_c210.c')
-rw-r--r-- | arch/arm/mach-s5pv310/mach-universal_c210.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv310/mach-universal_c210.c b/arch/arm/mach-s5pv310/mach-universal_c210.c index e169849..deffeb1 100644 --- a/arch/arm/mach-s5pv310/mach-universal_c210.c +++ b/arch/arm/mach-s5pv310/mach-universal_c210.c @@ -10,6 +10,7 @@ #include <linux/platform_device.h> #include <linux/serial_core.h> #include <linux/input.h> +#include <linux/i2c.h> #include <linux/gpio_keys.h> #include <linux/gpio.h> @@ -116,6 +117,16 @@ static struct platform_device universal_gpio_keys = { }, }; +/* I2C0 */ +static struct i2c_board_info i2c0_devs[] __initdata = { + /* Camera, To be updated */ +}; + +/* I2C1 */ +static struct i2c_board_info i2c1_devs[] __initdata = { + /* Gyro, To be updated */ +}; + static struct platform_device *universal_devices[] __initdata = { &universal_gpio_keys, &s5p_device_onenand, @@ -134,6 +145,9 @@ static void __init universal_machine_init(void) l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); #endif + i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs)); + i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); + /* Last */ platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices)); } |