aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pc100/mach-smdkc100.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s5pc100/mach-smdkc100.c')
-rw-r--r--arch/arm/mach-s5pc100/mach-smdkc100.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pc100/mach-smdkc100.c b/arch/arm/mach-s5pc100/mach-smdkc100.c
index e8f45535f035..844f6bab0372 100644
--- a/arch/arm/mach-s5pc100/mach-smdkc100.c
+++ b/arch/arm/mach-s5pc100/mach-smdkc100.c
@@ -42,6 +42,7 @@
42#include <plat/cpu.h> 42#include <plat/cpu.h>
43#include <plat/s5pc100.h> 43#include <plat/s5pc100.h>
44#include <plat/fb.h> 44#include <plat/fb.h>
45#include <plat/iic.h>
45 46
46#define UCON (S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK) 47#define UCON (S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK)
47#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB) 48#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
@@ -78,6 +79,14 @@ static struct s3c2410_uartcfg smdkc100_uartcfgs[] __initdata = {
78 }, 79 },
79}; 80};
80 81
82/* I2C0 */
83static struct i2c_board_info i2c_devs0[] __initdata = {
84};
85
86/* I2C1 */
87static struct i2c_board_info i2c_devs1[] __initdata = {
88};
89
81/* LCD power controller */ 90/* LCD power controller */
82static void smdkc100_lcd_power_set(struct plat_lcd_data *pd, 91static void smdkc100_lcd_power_set(struct plat_lcd_data *pd,
83 unsigned int power) 92 unsigned int power)
@@ -135,6 +144,8 @@ static struct s3c_fb_platdata smdkc100_lcd_pdata __initdata = {
135static struct map_desc smdkc100_iodesc[] = {}; 144static struct map_desc smdkc100_iodesc[] = {};
136 145
137static struct platform_device *smdkc100_devices[] __initdata = { 146static struct platform_device *smdkc100_devices[] __initdata = {
147 &s3c_device_i2c0,
148 &s3c_device_i2c1,
138 &s3c_device_fb, 149 &s3c_device_fb,
139 &smdkc100_lcd_powerdev, 150 &smdkc100_lcd_powerdev,
140}; 151};
@@ -148,6 +159,12 @@ static void __init smdkc100_map_io(void)
148 159
149static void __init smdkc100_machine_init(void) 160static void __init smdkc100_machine_init(void)
150{ 161{
162 /* I2C */
163 s3c_i2c0_set_platdata(NULL);
164 s3c_i2c1_set_platdata(NULL);
165 i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
166 i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
167
151 s3c_fb_set_platdata(&smdkc100_lcd_pdata); 168 s3c_fb_set_platdata(&smdkc100_lcd_pdata);
152 169
153 /* LCD init */ 170 /* LCD init */