diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-31 12:14:52 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 18:42:55 -0500 |
commit | d85fa24c517b5f67646ed42bffa870bcf8bdda63 (patch) | |
tree | 2f4b48f8e2f586f88337c010440db99f8bcc6467 /arch/arm/mach-s3c6410 | |
parent | 55132b8b4630a4b03d5c5556808c8d3866381536 (diff) |
[ARM] SMDK6410: Add i2c device
Add i2c bus 0 to the configuration
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c6410')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-smdk6410.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c index 609d5bd0812f..d58c83d31a06 100644 --- a/arch/arm/mach-s3c6410/mach-smdk6410.c +++ b/arch/arm/mach-s3c6410/mach-smdk6410.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
33 | 33 | ||
34 | #include <plat/regs-serial.h> | 34 | #include <plat/regs-serial.h> |
35 | #include <plat/iic.h> | ||
35 | 36 | ||
36 | #include <plat/s3c6410.h> | 37 | #include <plat/s3c6410.h> |
37 | #include <plat/clock.h> | 38 | #include <plat/clock.h> |
@@ -63,6 +64,7 @@ struct map_desc smdk6410_iodesc[] = {}; | |||
63 | 64 | ||
64 | static struct platform_device *smdk6410_devices[] __initdata = { | 65 | static struct platform_device *smdk6410_devices[] __initdata = { |
65 | &s3c_device_hsmmc0, | 66 | &s3c_device_hsmmc0, |
67 | &s3c_device_i2c0, | ||
66 | }; | 68 | }; |
67 | 69 | ||
68 | extern void s3c64xx_init_io(struct map_desc *, int); | 70 | extern void s3c64xx_init_io(struct map_desc *, int); |
@@ -76,6 +78,7 @@ static void __init smdk6410_map_io(void) | |||
76 | 78 | ||
77 | static void __init smdk6410_machine_init(void) | 79 | static void __init smdk6410_machine_init(void) |
78 | { | 80 | { |
81 | s3c_i2c0_set_platdata(NULL); | ||
79 | platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices)); | 82 | platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices)); |
80 | } | 83 | } |
81 | 84 | ||