diff options
author | Hemant Pedanekar <hemantp@ti.com> | 2011-02-15 12:36:08 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-16 11:31:52 -0500 |
commit | 2c87fb2e644d9141c8723a44a320bb5850790b67 (patch) | |
tree | 249af130ca67ba66548ed943304966025f399a05 /arch/arm | |
parent | 01001712c96f82e6317b1e09729d8fc4bcc66957 (diff) |
TI816X: Create board support and enable build for TI816X EVM
This patch adds minimal support and build configuration for TI816X EVM.
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-ti8168evm.c | 57 |
3 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 23548b60bb1f..7a82a76522af 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -299,6 +299,11 @@ config MACH_OMAP_3630SDP | |||
299 | default y | 299 | default y |
300 | select OMAP_PACKAGE_CBP | 300 | select OMAP_PACKAGE_CBP |
301 | 301 | ||
302 | config MACH_TI8168EVM | ||
303 | bool "TI8168 Evaluation Module" | ||
304 | depends on SOC_OMAPTI816X | ||
305 | default y | ||
306 | |||
302 | config MACH_OMAP_4430SDP | 307 | config MACH_OMAP_4430SDP |
303 | bool "OMAP 4430 SDP board" | 308 | bool "OMAP 4430 SDP board" |
304 | default y | 309 | default y |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 1c0c2b02d870..b577e001d209 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -224,6 +224,7 @@ obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o | |||
224 | 224 | ||
225 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ | 225 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ |
226 | hsmmc.o | 226 | hsmmc.o |
227 | obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o | ||
227 | # Platform specific device init code | 228 | # Platform specific device init code |
228 | usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o | 229 | usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o |
229 | obj-y += $(usbfs-m) $(usbfs-y) | 230 | obj-y += $(usbfs-m) $(usbfs-y) |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c new file mode 100644 index 000000000000..6282cc4a9772 --- /dev/null +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * Code for TI8168 EVM. | ||
3 | * | ||
4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License as | ||
8 | * published by the Free Software Foundation version 2. | ||
9 | * | ||
10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
11 | * kind, whether express or implied; without even the implied warranty | ||
12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/init.h> | ||
17 | |||
18 | #include <mach/hardware.h> | ||
19 | #include <asm/mach-types.h> | ||
20 | #include <asm/mach/arch.h> | ||
21 | #include <asm/mach/map.h> | ||
22 | |||
23 | #include <plat/irqs.h> | ||
24 | #include <plat/board.h> | ||
25 | #include <plat/common.h> | ||
26 | |||
27 | static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { | ||
28 | }; | ||
29 | |||
30 | static void __init ti8168_evm_init_irq(void) | ||
31 | { | ||
32 | omap_board_config = ti8168_evm_config; | ||
33 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); | ||
34 | omap2_init_common_infrastructure(); | ||
35 | omap2_init_common_devices(NULL, NULL); | ||
36 | omap_init_irq(); | ||
37 | } | ||
38 | |||
39 | static void __init ti8168_evm_init(void) | ||
40 | { | ||
41 | omap_serial_init(); | ||
42 | } | ||
43 | |||
44 | static void __init ti8168_evm_map_io(void) | ||
45 | { | ||
46 | omap2_set_globals_ti816x(); | ||
47 | omapti816x_map_common_io(); | ||
48 | } | ||
49 | |||
50 | MACHINE_START(TI8168EVM, "ti8168evm") | ||
51 | /* Maintainer: Texas Instruments */ | ||
52 | .boot_params = 0x80000100, | ||
53 | .map_io = ti8168_evm_map_io, | ||
54 | .init_irq = ti8168_evm_init_irq, | ||
55 | .timer = &omap_timer, | ||
56 | .init_machine = ti8168_evm_init, | ||
57 | MACHINE_END | ||