aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c6410/mach-smdk6410.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-31 16:18:00 +0000
committerBen Dooks <ben-linux@fluff.org>2008-10-31 16:18:00 +0000
commitbbcb953ec40bba420958ab0de5b97802c0019068 (patch)
tree70e813610a2b7a56b8a58f762acb6a0d59ed0760 /arch/arm/mach-s3c6410/mach-smdk6410.c
parent993b3574d79f84ecb61e6fc6f134de95876ef81c (diff)
parent54f677944dcf6df99030ca4797aaf3023c728f26 (diff)
Merge branch 'rmk-unreviewed' into s3c64xx
Diffstat (limited to 'arch/arm/mach-s3c6410/mach-smdk6410.c')
-rw-r--r--arch/arm/mach-s3c6410/mach-smdk6410.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c
index 35d42e8cab9..b5d24df436a 100644
--- a/arch/arm/mach-s3c6410/mach-smdk6410.c
+++ b/arch/arm/mach-s3c6410/mach-smdk6410.c
@@ -20,6 +20,7 @@
#include <linux/serial_core.h>
#include <linux/platform_device.h>
#include <linux/io.h>
+#include <linux/i2c.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
@@ -32,6 +33,7 @@
#include <asm/mach-types.h>
#include <plat/regs-serial.h>
+#include <plat/iic.h>
#include <plat/s3c6410.h>
#include <plat/clock.h>
@@ -62,9 +64,20 @@ static struct s3c2410_uartcfg smdk6410_uartcfgs[] __initdata = {
struct map_desc smdk6410_iodesc[] = {};
static struct platform_device *smdk6410_devices[] __initdata = {
+ &s3c_device_hsmmc0,
+ &s3c_device_i2c0,
+ &s3c_device_i2c1,
};
-extern void s3c64xx_init_io(struct map_desc *, int);
+
+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 */
+};
static void __init smdk6410_map_io(void)
{
@@ -75,6 +88,12 @@ static void __init smdk6410_map_io(void)
static void __init smdk6410_machine_init(void)
{
+ 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));
+
platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
}