diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-u5500.c')
-rw-r--r-- | arch/arm/mach-ux500/board-u5500.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c index e014aa749b03..82025ba70c03 100644 --- a/arch/arm/mach-ux500/board-u5500.c +++ b/arch/arm/mach-ux500/board-u5500.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/amba/bus.h> | 10 | #include <linux/amba/bus.h> |
11 | #include <linux/irq.h> | 11 | #include <linux/irq.h> |
12 | #include <linux/i2c.h> | 12 | #include <linux/i2c.h> |
13 | #include <linux/mfd/ab5500/ab5500.h> | ||
13 | 14 | ||
14 | #include <asm/mach/arch.h> | 15 | #include <asm/mach/arch.h> |
15 | #include <asm/mach-types.h> | 16 | #include <asm/mach-types.h> |
@@ -87,7 +88,6 @@ static struct lm3530_platform_data u5500_als_platform_data = { | |||
87 | .brt_val = 0x7F, /* Max brightness */ | 88 | .brt_val = 0x7F, /* Max brightness */ |
88 | }; | 89 | }; |
89 | 90 | ||
90 | |||
91 | static struct i2c_board_info __initdata u5500_i2c2_devices[] = { | 91 | static struct i2c_board_info __initdata u5500_i2c2_devices[] = { |
92 | { | 92 | { |
93 | /* Backlight */ | 93 | /* Backlight */ |
@@ -101,6 +101,30 @@ static void __init u5500_i2c_init(void) | |||
101 | db5500_add_i2c2(&u5500_i2c2_data); | 101 | db5500_add_i2c2(&u5500_i2c2_data); |
102 | i2c_register_board_info(2, ARRAY_AND_SIZE(u5500_i2c2_devices)); | 102 | i2c_register_board_info(2, ARRAY_AND_SIZE(u5500_i2c2_devices)); |
103 | } | 103 | } |
104 | |||
105 | static struct ab5500_platform_data ab5500_plf_data = { | ||
106 | .irq = { | ||
107 | .base = 0, | ||
108 | .count = 0, | ||
109 | }, | ||
110 | .init_settings = NULL, | ||
111 | .init_settings_sz = 0, | ||
112 | .pm_power_off = false, | ||
113 | }; | ||
114 | |||
115 | static struct platform_device ab5500_device = { | ||
116 | .name = "ab5500-core", | ||
117 | .id = 0, | ||
118 | .dev = { | ||
119 | .platform_data = &ab5500_plf_data, | ||
120 | }, | ||
121 | .num_resources = 0, | ||
122 | }; | ||
123 | |||
124 | static struct platform_device *u5500_platform_devices[] __initdata = { | ||
125 | &ab5500_device, | ||
126 | }; | ||
127 | |||
104 | static void __init u5500_uart_init(void) | 128 | static void __init u5500_uart_init(void) |
105 | { | 129 | { |
106 | db5500_add_uart0(NULL); | 130 | db5500_add_uart0(NULL); |
@@ -115,6 +139,9 @@ static void __init u5500_init_machine(void) | |||
115 | u5500_i2c_init(); | 139 | u5500_i2c_init(); |
116 | u5500_sdi_init(); | 140 | u5500_sdi_init(); |
117 | u5500_uart_init(); | 141 | u5500_uart_init(); |
142 | |||
143 | platform_add_devices(u5500_platform_devices, | ||
144 | ARRAY_SIZE(u5500_platform_devices)); | ||
118 | } | 145 | } |
119 | 146 | ||
120 | MACHINE_START(U5500, "ST-Ericsson U5500 Platform") | 147 | MACHINE_START(U5500, "ST-Ericsson U5500 Platform") |