diff options
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-smdkc110.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkc110.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index 7878f695f2ce..8211bb87c54b 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/serial_core.h> | 14 | #include <linux/serial_core.h> |
15 | #include <linux/i2c.h> | ||
15 | 16 | ||
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
@@ -25,6 +26,8 @@ | |||
25 | #include <plat/s5pv210.h> | 26 | #include <plat/s5pv210.h> |
26 | #include <plat/devs.h> | 27 | #include <plat/devs.h> |
27 | #include <plat/cpu.h> | 28 | #include <plat/cpu.h> |
29 | #include <plat/ata.h> | ||
30 | #include <plat/iic.h> | ||
28 | 31 | ||
29 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 32 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
30 | #define SMDKC110_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 33 | #define SMDKC110_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -71,12 +74,33 @@ static struct s3c2410_uartcfg smdkv210_uartcfgs[] __initdata = { | |||
71 | }, | 74 | }, |
72 | }; | 75 | }; |
73 | 76 | ||
77 | static struct s3c_ide_platdata smdkc110_ide_pdata __initdata = { | ||
78 | .setup_gpio = s5pv210_ide_setup_gpio, | ||
79 | }; | ||
80 | |||
74 | static struct platform_device *smdkc110_devices[] __initdata = { | 81 | static struct platform_device *smdkc110_devices[] __initdata = { |
75 | &s5pv210_device_iis0, | 82 | &s5pv210_device_iis0, |
76 | &s5pv210_device_ac97, | 83 | &s5pv210_device_ac97, |
84 | &s3c_device_cfcon, | ||
85 | &s3c_device_i2c0, | ||
86 | &s3c_device_i2c1, | ||
87 | &s3c_device_i2c2, | ||
88 | &s3c_device_rtc, | ||
77 | &s3c_device_wdt, | 89 | &s3c_device_wdt, |
78 | }; | 90 | }; |
79 | 91 | ||
92 | static struct i2c_board_info smdkc110_i2c_devs0[] __initdata = { | ||
93 | { I2C_BOARD_INFO("24c08", 0x50), }, /* Samsung S524AD0XD1 */ | ||
94 | }; | ||
95 | |||
96 | static struct i2c_board_info smdkc110_i2c_devs1[] __initdata = { | ||
97 | /* To Be Updated */ | ||
98 | }; | ||
99 | |||
100 | static struct i2c_board_info smdkc110_i2c_devs2[] __initdata = { | ||
101 | /* To Be Updated */ | ||
102 | }; | ||
103 | |||
80 | static void __init smdkc110_map_io(void) | 104 | static void __init smdkc110_map_io(void) |
81 | { | 105 | { |
82 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 106 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
@@ -86,6 +110,18 @@ static void __init smdkc110_map_io(void) | |||
86 | 110 | ||
87 | static void __init smdkc110_machine_init(void) | 111 | static void __init smdkc110_machine_init(void) |
88 | { | 112 | { |
113 | s3c_i2c0_set_platdata(NULL); | ||
114 | s3c_i2c1_set_platdata(NULL); | ||
115 | s3c_i2c2_set_platdata(NULL); | ||
116 | i2c_register_board_info(0, smdkc110_i2c_devs0, | ||
117 | ARRAY_SIZE(smdkc110_i2c_devs0)); | ||
118 | i2c_register_board_info(1, smdkc110_i2c_devs1, | ||
119 | ARRAY_SIZE(smdkc110_i2c_devs1)); | ||
120 | i2c_register_board_info(2, smdkc110_i2c_devs2, | ||
121 | ARRAY_SIZE(smdkc110_i2c_devs2)); | ||
122 | |||
123 | s3c_ide_set_platdata(&smdkc110_ide_pdata); | ||
124 | |||
89 | platform_add_devices(smdkc110_devices, ARRAY_SIZE(smdkc110_devices)); | 125 | platform_add_devices(smdkc110_devices, ARRAY_SIZE(smdkc110_devices)); |
90 | } | 126 | } |
91 | 127 | ||