aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-3630sdp.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/arm/mach-omap2/board-3630sdp.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'arch/arm/mach-omap2/board-3630sdp.c')
-rw-r--r--arch/arm/mach-omap2/board-3630sdp.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c
index b359c3f7bb39..a5933cc15caa 100644
--- a/arch/arm/mach-omap2/board-3630sdp.c
+++ b/arch/arm/mach-omap2/board-3630sdp.c
@@ -11,6 +11,7 @@
11#include <linux/platform_device.h> 11#include <linux/platform_device.h>
12#include <linux/input.h> 12#include <linux/input.h>
13#include <linux/gpio.h> 13#include <linux/gpio.h>
14#include <linux/mtd/nand.h>
14 15
15#include <asm/mach-types.h> 16#include <asm/mach-types.h>
16#include <asm/mach/arch.h> 17#include <asm/mach/arch.h>
@@ -21,8 +22,8 @@
21#include <plat/usb.h> 22#include <plat/usb.h>
22 23
23#include <mach/board-zoom.h> 24#include <mach/board-zoom.h>
24#include <mach/board-flash.h>
25 25
26#include "board-flash.h"
26#include "mux.h" 27#include "mux.h"
27#include "sdram-hynix-h8mbx00u0mer-0em.h" 28#include "sdram-hynix-h8mbx00u0mer-0em.h"
28 29
@@ -54,11 +55,11 @@ static void enable_board_wakeup_source(void)
54 OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP); 55 OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
55} 56}
56 57
57static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 58static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
58 59
59 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 60 .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
60 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, 61 .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
61 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, 62 .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
62 63
63 .phy_reset = true, 64 .phy_reset = true,
64 .reset_gpio_port[0] = 126, 65 .reset_gpio_port[0] = 126,
@@ -69,22 +70,17 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
69static struct omap_board_config_kernel sdp_config[] __initdata = { 70static struct omap_board_config_kernel sdp_config[] __initdata = {
70}; 71};
71 72
72static void __init omap_sdp_init_irq(void) 73static void __init omap_sdp_init_early(void)
73{ 74{
74 omap_board_config = sdp_config; 75 omap2_init_common_infrastructure();
75 omap_board_config_size = ARRAY_SIZE(sdp_config); 76 omap2_init_common_devices(h8mbx00u0mer0em_sdrc_params,
76 omap2_init_common_hw(h8mbx00u0mer0em_sdrc_params, 77 h8mbx00u0mer0em_sdrc_params);
77 h8mbx00u0mer0em_sdrc_params);
78 omap_init_irq();
79 omap_gpio_init();
80} 78}
81 79
82#ifdef CONFIG_OMAP_MUX 80#ifdef CONFIG_OMAP_MUX
83static struct omap_board_mux board_mux[] __initdata = { 81static struct omap_board_mux board_mux[] __initdata = {
84 { .reg_offset = OMAP_MUX_TERMINATOR }, 82 { .reg_offset = OMAP_MUX_TERMINATOR },
85}; 83};
86#else
87#define board_mux NULL
88#endif 84#endif
89 85
90/* 86/*
@@ -208,21 +204,22 @@ static struct flash_partitions sdp_flash_partitions[] = {
208static void __init omap_sdp_init(void) 204static void __init omap_sdp_init(void)
209{ 205{
210 omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); 206 omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
211 omap_serial_init(); 207 omap_board_config = sdp_config;
208 omap_board_config_size = ARRAY_SIZE(sdp_config);
212 zoom_peripherals_init(); 209 zoom_peripherals_init();
210 zoom_display_init();
213 board_smc91x_init(); 211 board_smc91x_init();
214 board_flash_init(sdp_flash_partitions, chip_sel_sdp); 212 board_flash_init(sdp_flash_partitions, chip_sel_sdp, NAND_BUSWIDTH_16);
215 enable_board_wakeup_source(); 213 enable_board_wakeup_source();
216 usb_ehci_init(&ehci_pdata); 214 usbhs_init(&usbhs_bdata);
217} 215}
218 216
219MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") 217MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board")
220 .phys_io = 0x48000000,
221 .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
222 .boot_params = 0x80000100, 218 .boot_params = 0x80000100,
223 .map_io = omap3_map_io,
224 .reserve = omap_reserve, 219 .reserve = omap_reserve,
225 .init_irq = omap_sdp_init_irq, 220 .map_io = omap3_map_io,
221 .init_early = omap_sdp_init_early,
222 .init_irq = omap_init_irq,
226 .init_machine = omap_sdp_init, 223 .init_machine = omap_sdp_init,
227 .timer = &omap_timer, 224 .timer = &omap_timer,
228MACHINE_END 225MACHINE_END