diff options
author | vikram pandita <vikram.pandita@ti.com> | 2009-11-18 21:41:08 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-25 17:21:01 -0500 |
commit | 34c9ac2376fbd04399be92312e4fa1e19a638eaa (patch) | |
tree | 57eaa0f169e6f7a08aee096fb4a5cae3dabf3f3c /arch | |
parent | 9d9e5027252f7a610bad928bcba906fbb838e3ba (diff) |
omap: 3630sdp: introduce 3630 sdp board support
Add 3630SDP board support
The board shares the same peripherals as a zoom2 main.
So reuse the peripheral file of zoom platform.
Peripheral zoom2 zoom3 sdp3630
---------------------------------------
Ethernet smsc smsc smc
NOR n/a n/a B
Onenand n/a n/a B
HDMI A A B (persent on different i2c)
NAND A A A (same nand)
SDRAM A A A (same sdram)
Keypad A A A (same twl)
Camera A A A (same sensor can be mounted)
LCD Display A A A (same wvga display)
OPPs A A A (same chip feature)
Audio A A A (same audio via twl5030)
OMAP3630 details can be found here:
http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12836&contentId=52606
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 3 | ||||
-rwxr-xr-x | arch/arm/mach-omap2/board-3630sdp.c | 101 |
3 files changed, 108 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 119e7b0133a4..b271a65f69d3 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -109,6 +109,10 @@ config MACH_IGEP0020 | |||
109 | bool "IGEP0020" | 109 | bool "IGEP0020" |
110 | depends on ARCH_OMAP3 && ARCH_OMAP34XX | 110 | depends on ARCH_OMAP3 && ARCH_OMAP34XX |
111 | 111 | ||
112 | config MACH_OMAP_3630SDP | ||
113 | bool "OMAP3630 SDP board" | ||
114 | depends on ARCH_OMAP3 && ARCH_OMAP34XX | ||
115 | |||
112 | config MACH_OMAP_4430SDP | 116 | config MACH_OMAP_4430SDP |
113 | bool "OMAP 4430 SDP board" | 117 | bool "OMAP 4430 SDP board" |
114 | depends on ARCH_OMAP4 | 118 | depends on ARCH_OMAP4 |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index c2f3de9a0a08..3e1b45fe59a1 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -83,6 +83,9 @@ obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \ | |||
83 | board-zoom-peripherals.o \ | 83 | board-zoom-peripherals.o \ |
84 | mmc-twl4030.o \ | 84 | mmc-twl4030.o \ |
85 | board-zoom-debugboard.o | 85 | board-zoom-debugboard.o |
86 | obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ | ||
87 | board-zoom-peripherals.o \ | ||
88 | mmc-twl4030.o | ||
86 | obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \ | 89 | obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \ |
87 | mmc-twl4030.o | 90 | mmc-twl4030.o |
88 | obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ | 91 | obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c new file mode 100755 index 000000000000..348b70b98336 --- /dev/null +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -0,0 +1,101 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Texas Instruments Inc. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/init.h> | ||
11 | #include <linux/platform_device.h> | ||
12 | #include <linux/input.h> | ||
13 | #include <linux/gpio.h> | ||
14 | |||
15 | #include <asm/mach-types.h> | ||
16 | #include <asm/mach/arch.h> | ||
17 | |||
18 | #include <plat/common.h> | ||
19 | #include <plat/board.h> | ||
20 | #include <plat/gpmc-smc91x.h> | ||
21 | #include <plat/mux.h> | ||
22 | #include <plat/usb.h> | ||
23 | |||
24 | #include <mach/board-zoom.h> | ||
25 | |||
26 | #include "sdram-hynix-h8mbx00u0mer-0em.h" | ||
27 | |||
28 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | ||
29 | |||
30 | static struct omap_smc91x_platform_data board_smc91x_data = { | ||
31 | .cs = 3, | ||
32 | .flags = GPMC_MUX_ADD_DATA | IORESOURCE_IRQ_LOWLEVEL, | ||
33 | }; | ||
34 | |||
35 | static void __init board_smc91x_init(void) | ||
36 | { | ||
37 | board_smc91x_data.gpio_irq = 158; | ||
38 | gpmc_smc91x_init(&board_smc91x_data); | ||
39 | } | ||
40 | |||
41 | #else | ||
42 | |||
43 | static inline void board_smc91x_init(void) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | #endif /* defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) */ | ||
48 | |||
49 | static void enable_board_wakeup_source(void) | ||
50 | { | ||
51 | omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */ | ||
52 | } | ||
53 | |||
54 | static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | ||
55 | |||
56 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, | ||
57 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, | ||
58 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | ||
59 | |||
60 | .phy_reset = true, | ||
61 | .reset_gpio_port[0] = 126, | ||
62 | .reset_gpio_port[1] = 61, | ||
63 | .reset_gpio_port[2] = -EINVAL | ||
64 | }; | ||
65 | |||
66 | static void __init omap_sdp_map_io(void) | ||
67 | { | ||
68 | omap2_set_globals_343x(); | ||
69 | omap2_map_common_io(); | ||
70 | } | ||
71 | |||
72 | static struct omap_board_config_kernel sdp_config[] __initdata = { | ||
73 | }; | ||
74 | |||
75 | static void __init omap_sdp_init_irq(void) | ||
76 | { | ||
77 | omap_board_config = sdp_config; | ||
78 | omap_board_config_size = ARRAY_SIZE(sdp_config); | ||
79 | omap2_init_common_hw(h8mbx00u0mer0em_sdrc_params, | ||
80 | h8mbx00u0mer0em_sdrc_params); | ||
81 | omap_init_irq(); | ||
82 | omap_gpio_init(); | ||
83 | } | ||
84 | |||
85 | static void __init omap_sdp_init(void) | ||
86 | { | ||
87 | zoom_peripherals_init(); | ||
88 | board_smc91x_init(); | ||
89 | enable_board_wakeup_source(); | ||
90 | usb_ehci_init(&ehci_pdata); | ||
91 | } | ||
92 | |||
93 | MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") | ||
94 | .phys_io = 0x48000000, | ||
95 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, | ||
96 | .boot_params = 0x80000100, | ||
97 | .map_io = omap_sdp_map_io, | ||
98 | .init_irq = omap_sdp_init_irq, | ||
99 | .init_machine = omap_sdp_init, | ||
100 | .timer = &omap_timer, | ||
101 | MACHINE_END | ||