Commit 096941ed authored by Ben Dooks's avatar Ben Dooks

[ARM] SMDK6410: Add I2C device board information

Add the I2C devices on the SMDK6410.
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent d7ea3743
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/serial_core.h> #include <linux/serial_core.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/i2c.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
...@@ -68,6 +69,16 @@ static struct platform_device *smdk6410_devices[] __initdata = { ...@@ -68,6 +69,16 @@ static struct platform_device *smdk6410_devices[] __initdata = {
&s3c_device_i2c1, &s3c_device_i2c1,
}; };
static struct i2c_board_info i2c_devs0[] __initdata = {
{ I2C_BOARD_INFO("24c08", 0x50), },
{ I2C_BOARD_INFO("WM8580", 0X1b), },
};
static struct i2c_board_info i2c_devs1[] __initdata = {
{ I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */
};
extern void s3c64xx_init_io(struct map_desc *, int); extern void s3c64xx_init_io(struct map_desc *, int);
static void __init smdk6410_map_io(void) static void __init smdk6410_map_io(void)
...@@ -81,6 +92,10 @@ static void __init smdk6410_machine_init(void) ...@@ -81,6 +92,10 @@ static void __init smdk6410_machine_init(void)
{ {
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
s3c_i2c1_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));
platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices)); platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
} }
......
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