Commit 067f131d authored by Kyungmin Park's avatar Kyungmin Park Committed by Ben Dooks

SMDKC100: add I2C0 and I2C1 buses support

Add required machine definitions for I2C 0 and 1 bus controllers.
Currently no I2C device are defined yet.
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 5eda288f
...@@ -18,6 +18,8 @@ config MACH_SMDKC100 ...@@ -18,6 +18,8 @@ config MACH_SMDKC100
bool "SMDKC100" bool "SMDKC100"
select CPU_S5PC100 select CPU_S5PC100
select S3C_DEV_FB select S3C_DEV_FB
select S3C_DEV_I2C1
select S5PC1XX_SETUP_I2C0
select S5PC1XX_SETUP_I2C1 select S5PC1XX_SETUP_I2C1
select S5PC1XX_SETUP_FB_24BPP select S5PC1XX_SETUP_FB_24BPP
help help
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/s5pc100.h> #include <plat/s5pc100.h>
#include <plat/fb.h> #include <plat/fb.h>
#include <plat/iic.h>
#define UCON (S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK) #define UCON (S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK)
#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB) #define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
...@@ -78,6 +79,14 @@ static struct s3c2410_uartcfg smdkc100_uartcfgs[] __initdata = { ...@@ -78,6 +79,14 @@ static struct s3c2410_uartcfg smdkc100_uartcfgs[] __initdata = {
}, },
}; };
/* I2C0 */
static struct i2c_board_info i2c_devs0[] __initdata = {
};
/* I2C1 */
static struct i2c_board_info i2c_devs1[] __initdata = {
};
/* LCD power controller */ /* LCD power controller */
static void smdkc100_lcd_power_set(struct plat_lcd_data *pd, static void smdkc100_lcd_power_set(struct plat_lcd_data *pd,
unsigned int power) unsigned int power)
...@@ -135,6 +144,8 @@ static struct s3c_fb_platdata smdkc100_lcd_pdata __initdata = { ...@@ -135,6 +144,8 @@ static struct s3c_fb_platdata smdkc100_lcd_pdata __initdata = {
static struct map_desc smdkc100_iodesc[] = {}; static struct map_desc smdkc100_iodesc[] = {};
static struct platform_device *smdkc100_devices[] __initdata = { static struct platform_device *smdkc100_devices[] __initdata = {
&s3c_device_i2c0,
&s3c_device_i2c1,
&s3c_device_fb, &s3c_device_fb,
&smdkc100_lcd_powerdev, &smdkc100_lcd_powerdev,
}; };
...@@ -148,6 +159,12 @@ static void __init smdkc100_map_io(void) ...@@ -148,6 +159,12 @@ static void __init smdkc100_map_io(void)
static void __init smdkc100_machine_init(void) static void __init smdkc100_machine_init(void)
{ {
/* I2C */
s3c_i2c0_set_platdata(NULL);
s3c_i2c1_set_platdata(NULL);
i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
s3c_fb_set_platdata(&smdkc100_lcd_pdata); s3c_fb_set_platdata(&smdkc100_lcd_pdata);
/* LCD init */ /* LCD init */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment