aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/mach-smdkv210.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-smdkv210.c')
-rw-r--r--arch/arm/mach-s5pv210/mach-smdkv210.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
index a6c504ec47eb..1e4ed147dbc7 100644
--- a/arch/arm/mach-s5pv210/mach-smdkv210.c
+++ b/arch/arm/mach-s5pv210/mach-smdkv210.c
@@ -10,6 +10,7 @@
10 10
11#include <linux/kernel.h> 11#include <linux/kernel.h>
12#include <linux/types.h> 12#include <linux/types.h>
13#include <linux/i2c.h>
13#include <linux/init.h> 14#include <linux/init.h>
14#include <linux/serial_core.h> 15#include <linux/serial_core.h>
15 16
@@ -28,6 +29,7 @@
28#include <plat/adc.h> 29#include <plat/adc.h>
29#include <plat/ts.h> 30#include <plat/ts.h>
30#include <plat/ata.h> 31#include <plat/ata.h>
32#include <plat/iic.h>
31#include <plat/keypad.h> 33#include <plat/keypad.h>
32 34
33/* Following are default values for UCON, ULCON and UFCON UART registers */ 35/* Following are default values for UCON, ULCON and UFCON UART registers */
@@ -107,12 +109,27 @@ static struct platform_device *smdkv210_devices[] __initdata = {
107 &s3c_device_hsmmc1, 109 &s3c_device_hsmmc1,
108 &s3c_device_hsmmc2, 110 &s3c_device_hsmmc2,
109 &s3c_device_hsmmc3, 111 &s3c_device_hsmmc3,
112 &s3c_device_i2c0,
113 &s3c_device_i2c1,
114 &s3c_device_i2c2,
110 &samsung_device_keypad, 115 &samsung_device_keypad,
111 &s3c_device_rtc, 116 &s3c_device_rtc,
112 &s3c_device_ts, 117 &s3c_device_ts,
113 &s3c_device_wdt, 118 &s3c_device_wdt,
114}; 119};
115 120
121static struct i2c_board_info smdkv210_i2c_devs0[] __initdata = {
122 { I2C_BOARD_INFO("24c08", 0x50), }, /* Samsung S524AD0XD1 */
123};
124
125static struct i2c_board_info smdkv210_i2c_devs1[] __initdata = {
126 /* To Be Updated */
127};
128
129static struct i2c_board_info smdkv210_i2c_devs2[] __initdata = {
130 /* To Be Updated */
131};
132
116static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = { 133static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
117 .delay = 10000, 134 .delay = 10000,
118 .presc = 49, 135 .presc = 49,
@@ -130,6 +147,17 @@ static void __init smdkv210_machine_init(void)
130{ 147{
131 samsung_keypad_set_platdata(&smdkv210_keypad_data); 148 samsung_keypad_set_platdata(&smdkv210_keypad_data);
132 s3c24xx_ts_set_platdata(&s3c_ts_platform); 149 s3c24xx_ts_set_platdata(&s3c_ts_platform);
150
151 s3c_i2c0_set_platdata(NULL);
152 s3c_i2c1_set_platdata(NULL);
153 s3c_i2c2_set_platdata(NULL);
154 i2c_register_board_info(0, smdkv210_i2c_devs0,
155 ARRAY_SIZE(smdkv210_i2c_devs0));
156 i2c_register_board_info(1, smdkv210_i2c_devs1,
157 ARRAY_SIZE(smdkv210_i2c_devs1));
158 i2c_register_board_info(2, smdkv210_i2c_devs2,
159 ARRAY_SIZE(smdkv210_i2c_devs2));
160
133 s3c_ide_set_platdata(&smdkv210_ide_pdata); 161 s3c_ide_set_platdata(&smdkv210_ide_pdata);
134 162
135 platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); 163 platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));