diff options
author | Ranjith Lohithakshan <ranjithl@ti.com> | 2009-11-18 21:41:09 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-25 17:21:01 -0500 |
commit | c625327e2f5a506a89563e14ed837c82fa61548f (patch) | |
tree | 730f1cb380e4e70df90ccaa510eb469010898edc /arch | |
parent | 62002e8f82c00a4efdbdc69ebfc540fddf28aae0 (diff) |
AM35xx: Add support for AM3517 EVM board
This patch creates a minimal AM3517 EVM board support.
Signed-off-by: Ranjith Lohithakshan <ranjithl@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 | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 86 |
3 files changed, 92 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index b271a65f69d3..034d9908228c 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -65,6 +65,10 @@ config MACH_OMAP3EVM | |||
65 | bool "OMAP 3530 EVM board" | 65 | bool "OMAP 3530 EVM board" |
66 | depends on ARCH_OMAP3 && ARCH_OMAP34XX | 66 | depends on ARCH_OMAP3 && ARCH_OMAP34XX |
67 | 67 | ||
68 | config MACH_OMAP3517EVM | ||
69 | bool "OMAP3517/ AM3517 EVM board" | ||
70 | depends on ARCH_OMAP3 && ARCH_OMAP34XX | ||
71 | |||
68 | config MACH_OMAP3_PANDORA | 72 | config MACH_OMAP3_PANDORA |
69 | bool "OMAP3 Pandora" | 73 | bool "OMAP3 Pandora" |
70 | depends on ARCH_OMAP3 && ARCH_OMAP34XX | 74 | depends on ARCH_OMAP3 && ARCH_OMAP34XX |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 3e1b45fe59a1..59b0ccce3099 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -93,6 +93,8 @@ obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ | |||
93 | 93 | ||
94 | obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o | 94 | obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o |
95 | 95 | ||
96 | obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o | ||
97 | |||
96 | # Platform specific device init code | 98 | # Platform specific device init code |
97 | obj-y += usb-musb.o | 99 | obj-y += usb-musb.o |
98 | obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o | 100 | obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c new file mode 100644 index 000000000000..415a13d767cc --- /dev/null +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -0,0 +1,86 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap2/board-am3517evm.c | ||
3 | * | ||
4 | * Copyright (C) 2009 Texas Instruments Incorporated | ||
5 | * Author: Ranjith Lohithakshan <ranjithl@ti.com> | ||
6 | * | ||
7 | * Based on mach-omap2/board-omap3evm.c | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify it | ||
10 | * under the terms of the GNU General Public License as published by the | ||
11 | * Free Software Foundation version 2. | ||
12 | * | ||
13 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind, | ||
14 | * whether express or implied; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | */ | ||
18 | |||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <linux/gpio.h> | ||
23 | |||
24 | #include <mach/hardware.h> | ||
25 | #include <asm/mach-types.h> | ||
26 | #include <asm/mach/arch.h> | ||
27 | #include <asm/mach/map.h> | ||
28 | |||
29 | #include <plat/board.h> | ||
30 | #include <plat/common.h> | ||
31 | #include <plat/usb.h> | ||
32 | |||
33 | /* | ||
34 | * Board initialization | ||
35 | */ | ||
36 | static struct omap_board_config_kernel am3517_evm_config[] __initdata = { | ||
37 | }; | ||
38 | |||
39 | static struct platform_device *am3517_evm_devices[] __initdata = { | ||
40 | }; | ||
41 | |||
42 | static void __init am3517_evm_init_irq(void) | ||
43 | { | ||
44 | omap_board_config = am3517_evm_config; | ||
45 | omap_board_config_size = ARRAY_SIZE(am3517_evm_config); | ||
46 | |||
47 | omap2_init_common_hw(NULL, NULL); | ||
48 | omap_init_irq(); | ||
49 | omap_gpio_init(); | ||
50 | } | ||
51 | |||
52 | static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { | ||
53 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, | ||
54 | .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, | ||
55 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | ||
56 | |||
57 | .phy_reset = true, | ||
58 | .reset_gpio_port[0] = 57, | ||
59 | .reset_gpio_port[1] = -EINVAL, | ||
60 | .reset_gpio_port[2] = -EINVAL | ||
61 | }; | ||
62 | |||
63 | static void __init am3517_evm_init(void) | ||
64 | { | ||
65 | platform_add_devices(am3517_evm_devices, | ||
66 | ARRAY_SIZE(am3517_evm_devices)); | ||
67 | |||
68 | omap_serial_init(); | ||
69 | usb_ehci_init(&ehci_pdata); | ||
70 | } | ||
71 | |||
72 | static void __init am3517_evm_map_io(void) | ||
73 | { | ||
74 | omap2_set_globals_343x(); | ||
75 | omap2_map_common_io(); | ||
76 | } | ||
77 | |||
78 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | ||
79 | .phys_io = 0x48000000, | ||
80 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | ||
81 | .boot_params = 0x80000100, | ||
82 | .map_io = am3517_evm_map_io, | ||
83 | .init_irq = am3517_evm_init_irq, | ||
84 | .init_machine = am3517_evm_init, | ||
85 | .timer = &omap_timer, | ||
86 | MACHINE_END | ||