Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123891
b: refs/heads/master
c: 096941e
h: refs/heads/master
i:
  123889: a885b5d
  123887: 1213f13
v: v3
  • Loading branch information
Ben Dooks committed Dec 15, 2008
1 parent e1cfd2b commit fc4bddb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7ea3743ca9939eb71931dedb613d14ff7201d02
refs/heads/master: 096941ed1e4b3ded5eded1b3f4208b8e35d5d3c3
15 changes: 15 additions & 0 deletions trunk/arch/arm/mach-s3c6410/mach-smdk6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -68,6 +69,16 @@ static struct platform_device *smdk6410_devices[] __initdata = {
&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);

static void __init smdk6410_map_io(void)
Expand All @@ -81,6 +92,10 @@ 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));
}

Expand Down

0 comments on commit fc4bddb

Please sign in to comment.