diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-perseus2.c')
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index c000bed7627..76d4ee05a81 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -21,8 +21,8 @@ | |||
21 | #include <linux/mtd/physmap.h> | 21 | #include <linux/mtd/physmap.h> |
22 | #include <linux/input.h> | 22 | #include <linux/input.h> |
23 | #include <linux/smc91x.h> | 23 | #include <linux/smc91x.h> |
24 | #include <linux/omapfb.h> | ||
24 | 25 | ||
25 | #include <mach/hardware.h> | ||
26 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
27 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
28 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
@@ -32,9 +32,13 @@ | |||
32 | #include <plat/fpga.h> | 32 | #include <plat/fpga.h> |
33 | #include <plat/flash.h> | 33 | #include <plat/flash.h> |
34 | #include <plat/keypad.h> | 34 | #include <plat/keypad.h> |
35 | #include "common.h" | ||
36 | #include <plat/board.h> | 35 | #include <plat/board.h> |
37 | 36 | ||
37 | #include <mach/hardware.h> | ||
38 | |||
39 | #include "iomap.h" | ||
40 | #include "common.h" | ||
41 | |||
38 | static const unsigned int p2_keymap[] = { | 42 | static const unsigned int p2_keymap[] = { |
39 | KEY(0, 0, KEY_UP), | 43 | KEY(0, 0, KEY_UP), |
40 | KEY(1, 0, KEY_RIGHT), | 44 | KEY(1, 0, KEY_RIGHT), |
@@ -232,27 +236,17 @@ static struct platform_device kp_device = { | |||
232 | .resource = kp_resources, | 236 | .resource = kp_resources, |
233 | }; | 237 | }; |
234 | 238 | ||
235 | static struct platform_device lcd_device = { | ||
236 | .name = "lcd_p2", | ||
237 | .id = -1, | ||
238 | }; | ||
239 | |||
240 | static struct platform_device *devices[] __initdata = { | 239 | static struct platform_device *devices[] __initdata = { |
241 | &nor_device, | 240 | &nor_device, |
242 | &nand_device, | 241 | &nand_device, |
243 | &smc91x_device, | 242 | &smc91x_device, |
244 | &kp_device, | 243 | &kp_device, |
245 | &lcd_device, | ||
246 | }; | 244 | }; |
247 | 245 | ||
248 | static struct omap_lcd_config perseus2_lcd_config __initdata = { | 246 | static struct omap_lcd_config perseus2_lcd_config __initdata = { |
249 | .ctrl_name = "internal", | 247 | .ctrl_name = "internal", |
250 | }; | 248 | }; |
251 | 249 | ||
252 | static struct omap_board_config_kernel perseus2_config[] __initdata = { | ||
253 | { OMAP_TAG_LCD, &perseus2_lcd_config }, | ||
254 | }; | ||
255 | |||
256 | static void __init perseus2_init_smc91x(void) | 250 | static void __init perseus2_init_smc91x(void) |
257 | { | 251 | { |
258 | fpga_write(1, H2P2_DBG_FPGA_LAN_RESET); | 252 | fpga_write(1, H2P2_DBG_FPGA_LAN_RESET); |
@@ -320,10 +314,10 @@ static void __init omap_perseus2_init(void) | |||
320 | 314 | ||
321 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 315 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
322 | 316 | ||
323 | omap_board_config = perseus2_config; | ||
324 | omap_board_config_size = ARRAY_SIZE(perseus2_config); | ||
325 | omap_serial_init(); | 317 | omap_serial_init(); |
326 | omap_register_i2c_bus(1, 100, NULL, 0); | 318 | omap_register_i2c_bus(1, 100, NULL, 0); |
319 | |||
320 | omapfb_set_lcd_config(&perseus2_lcd_config); | ||
327 | } | 321 | } |
328 | 322 | ||
329 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ | 323 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ |