diff options
Diffstat (limited to 'arch/arm/mach-s5p6442/mach-smdk6442.c')
-rw-r--r-- | arch/arm/mach-s5p6442/mach-smdk6442.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-s5p6442/mach-smdk6442.c b/arch/arm/mach-s5p6442/mach-smdk6442.c index 819fd80d00af..e69f137b0a39 100644 --- a/arch/arm/mach-s5p6442/mach-smdk6442.c +++ b/arch/arm/mach-s5p6442/mach-smdk6442.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/serial_core.h> | 14 | #include <linux/serial_core.h> |
15 | #include <linux/i2c.h> | ||
15 | 16 | ||
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
@@ -25,6 +26,7 @@ | |||
25 | #include <plat/s5p6442.h> | 26 | #include <plat/s5p6442.h> |
26 | #include <plat/devs.h> | 27 | #include <plat/devs.h> |
27 | #include <plat/cpu.h> | 28 | #include <plat/cpu.h> |
29 | #include <plat/iic.h> | ||
28 | 30 | ||
29 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 31 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
30 | #define SMDK6442_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 32 | #define SMDK6442_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -65,10 +67,15 @@ static struct s3c2410_uartcfg smdk6442_uartcfgs[] __initdata = { | |||
65 | }; | 67 | }; |
66 | 68 | ||
67 | static struct platform_device *smdk6442_devices[] __initdata = { | 69 | static struct platform_device *smdk6442_devices[] __initdata = { |
70 | &s3c_device_i2c0, | ||
68 | &s5p6442_device_iis0, | 71 | &s5p6442_device_iis0, |
69 | &s3c_device_wdt, | 72 | &s3c_device_wdt, |
70 | }; | 73 | }; |
71 | 74 | ||
75 | static struct i2c_board_info smdk6442_i2c_devs0[] __initdata = { | ||
76 | { I2C_BOARD_INFO("wm8580", 0x1b), }, | ||
77 | }; | ||
78 | |||
72 | static void __init smdk6442_map_io(void) | 79 | static void __init smdk6442_map_io(void) |
73 | { | 80 | { |
74 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 81 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
@@ -78,6 +85,9 @@ static void __init smdk6442_map_io(void) | |||
78 | 85 | ||
79 | static void __init smdk6442_machine_init(void) | 86 | static void __init smdk6442_machine_init(void) |
80 | { | 87 | { |
88 | s3c_i2c0_set_platdata(NULL); | ||
89 | i2c_register_board_info(0, smdk6442_i2c_devs0, | ||
90 | ARRAY_SIZE(smdk6442_i2c_devs0)); | ||
81 | platform_add_devices(smdk6442_devices, ARRAY_SIZE(smdk6442_devices)); | 91 | platform_add_devices(smdk6442_devices, ARRAY_SIZE(smdk6442_devices)); |
82 | } | 92 | } |
83 | 93 | ||