diff options
-rw-r--r-- | arch/arm/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-mx5/Kconfig | 18 | ||||
-rw-r--r-- | arch/arm/mach-mx5/Makefile | 9 | ||||
-rw-r--r-- | arch/arm/mach-mx5/Makefile.boot | 3 | ||||
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 98 | ||||
-rw-r--r-- | arch/arm/plat-mxc/Kconfig | 8 |
6 files changed, 137 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index e9da08483b3c..056daf8b68a5 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -146,6 +146,7 @@ machine-$(CONFIG_ARCH_MX1) := mx1 | |||
146 | machine-$(CONFIG_ARCH_MX2) := mx2 | 146 | machine-$(CONFIG_ARCH_MX2) := mx2 |
147 | machine-$(CONFIG_ARCH_MX25) := mx25 | 147 | machine-$(CONFIG_ARCH_MX25) := mx25 |
148 | machine-$(CONFIG_ARCH_MX3) := mx3 | 148 | machine-$(CONFIG_ARCH_MX3) := mx3 |
149 | machine-$(CONFIG_ARCH_MX5) := mx5 | ||
149 | machine-$(CONFIG_ARCH_NETX) := netx | 150 | machine-$(CONFIG_ARCH_NETX) := netx |
150 | machine-$(CONFIG_ARCH_NOMADIK) := nomadik | 151 | machine-$(CONFIG_ARCH_NOMADIK) := nomadik |
151 | machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx | 152 | machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx |
diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig new file mode 100644 index 000000000000..1576d51e676c --- /dev/null +++ b/arch/arm/mach-mx5/Kconfig | |||
@@ -0,0 +1,18 @@ | |||
1 | if ARCH_MX5 | ||
2 | |||
3 | config ARCH_MX51 | ||
4 | bool | ||
5 | default y | ||
6 | select MXC_TZIC | ||
7 | select ARCH_MXC_IOMUX_V3 | ||
8 | |||
9 | comment "MX5 platforms:" | ||
10 | |||
11 | config MACH_MX51_BABBAGE | ||
12 | bool "Support MX51 BABBAGE platforms" | ||
13 | help | ||
14 | Include support for MX51 Babbage platform, also known as MX51EVK in | ||
15 | u-boot. This includes specific configurations for the board and its | ||
16 | peripherals. | ||
17 | |||
18 | endif | ||
diff --git a/arch/arm/mach-mx5/Makefile b/arch/arm/mach-mx5/Makefile new file mode 100644 index 000000000000..bf23f869ef51 --- /dev/null +++ b/arch/arm/mach-mx5/Makefile | |||
@@ -0,0 +1,9 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | |||
5 | # Object file lists. | ||
6 | obj-y := cpu.o mm.o clock-mx51.o devices.o | ||
7 | |||
8 | obj-$(CONFIG_MACH_MX51_BABBAGE) += board-mx51_babbage.o | ||
9 | |||
diff --git a/arch/arm/mach-mx5/Makefile.boot b/arch/arm/mach-mx5/Makefile.boot new file mode 100644 index 000000000000..9939a19d99a1 --- /dev/null +++ b/arch/arm/mach-mx5/Makefile.boot | |||
@@ -0,0 +1,3 @@ | |||
1 | zreladdr-y := 0x90008000 | ||
2 | params_phys-y := 0x90000100 | ||
3 | initrd_phys-y := 0x90800000 | ||
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c new file mode 100644 index 000000000000..d5ccb5f4f39c --- /dev/null +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -0,0 +1,98 @@ | |||
1 | /* | ||
2 | * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * Copyright (C) 2009-2010 Amit Kucheria <amit.kucheria@canonical.com> | ||
4 | * | ||
5 | * The code contained herein is licensed under the GNU General Public | ||
6 | * License. You may obtain a copy of the GNU General Public License | ||
7 | * Version 2 or later at the following locations: | ||
8 | * | ||
9 | * http://www.opensource.org/licenses/gpl-license.html | ||
10 | * http://www.gnu.org/copyleft/gpl.html | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/platform_device.h> | ||
15 | |||
16 | #include <mach/common.h> | ||
17 | #include <mach/hardware.h> | ||
18 | #include <mach/imx-uart.h> | ||
19 | #include <mach/iomux-mx51.h> | ||
20 | |||
21 | #include <asm/irq.h> | ||
22 | #include <asm/setup.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | |||
27 | #include "devices.h" | ||
28 | |||
29 | static struct platform_device *devices[] __initdata = { | ||
30 | &mxc_fec_device, | ||
31 | }; | ||
32 | |||
33 | static struct pad_desc mx51babbage_pads[] = { | ||
34 | /* UART1 */ | ||
35 | MX51_PAD_UART1_RXD__UART1_RXD, | ||
36 | MX51_PAD_UART1_TXD__UART1_TXD, | ||
37 | MX51_PAD_UART1_RTS__UART1_RTS, | ||
38 | MX51_PAD_UART1_CTS__UART1_CTS, | ||
39 | |||
40 | /* UART2 */ | ||
41 | MX51_PAD_UART2_RXD__UART2_RXD, | ||
42 | MX51_PAD_UART2_TXD__UART2_TXD, | ||
43 | |||
44 | /* UART3 */ | ||
45 | MX51_PAD_EIM_D25__UART3_RXD, | ||
46 | MX51_PAD_EIM_D26__UART3_TXD, | ||
47 | MX51_PAD_EIM_D27__UART3_RTS, | ||
48 | MX51_PAD_EIM_D24__UART3_CTS, | ||
49 | }; | ||
50 | |||
51 | /* Serial ports */ | ||
52 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | ||
53 | static struct imxuart_platform_data uart_pdata = { | ||
54 | .flags = IMXUART_HAVE_RTSCTS, | ||
55 | }; | ||
56 | |||
57 | static inline void mxc_init_imx_uart(void) | ||
58 | { | ||
59 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | ||
60 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | ||
61 | mxc_register_device(&mxc_uart_device2, &uart_pdata); | ||
62 | } | ||
63 | #else /* !SERIAL_IMX */ | ||
64 | static inline void mxc_init_imx_uart(void) | ||
65 | { | ||
66 | } | ||
67 | #endif /* SERIAL_IMX */ | ||
68 | |||
69 | /* | ||
70 | * Board specific initialization. | ||
71 | */ | ||
72 | static void __init mxc_board_init(void) | ||
73 | { | ||
74 | mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads, | ||
75 | ARRAY_SIZE(mx51babbage_pads)); | ||
76 | mxc_init_imx_uart(); | ||
77 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
78 | } | ||
79 | |||
80 | static void __init mx51_babbage_timer_init(void) | ||
81 | { | ||
82 | mx51_clocks_init(32768, 24000000, 22579200, 24576000); | ||
83 | } | ||
84 | |||
85 | static struct sys_timer mxc_timer = { | ||
86 | .init = mx51_babbage_timer_init, | ||
87 | }; | ||
88 | |||
89 | MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") | ||
90 | /* Maintainer: Amit Kucheria <amit.kucheria@canonical.com> */ | ||
91 | .phys_io = MX51_AIPS1_BASE_ADDR, | ||
92 | .io_pg_offst = ((MX51_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | ||
93 | .boot_params = PHYS_OFFSET + 0x100, | ||
94 | .map_io = mx51_map_io, | ||
95 | .init_irq = mx51_init_irq, | ||
96 | .init_machine = mxc_board_init, | ||
97 | .timer = &mxc_timer, | ||
98 | MACHINE_END | ||
diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig index 59558c4b9446..cea51a0ae9f7 100644 --- a/arch/arm/plat-mxc/Kconfig +++ b/arch/arm/plat-mxc/Kconfig | |||
@@ -41,6 +41,13 @@ config ARCH_MXC91231 | |||
41 | help | 41 | help |
42 | This enables support for systems based on the Freescale MXC91231 family | 42 | This enables support for systems based on the Freescale MXC91231 family |
43 | 43 | ||
44 | config ARCH_MX5 | ||
45 | bool "MX5-based" | ||
46 | select CPU_V7 | ||
47 | select COMMON_CLKDEV | ||
48 | help | ||
49 | This enables support for systems based on the Freescale i.MX51 family | ||
50 | |||
44 | endchoice | 51 | endchoice |
45 | 52 | ||
46 | source "arch/arm/mach-mx1/Kconfig" | 53 | source "arch/arm/mach-mx1/Kconfig" |
@@ -48,6 +55,7 @@ source "arch/arm/mach-mx2/Kconfig" | |||
48 | source "arch/arm/mach-mx3/Kconfig" | 55 | source "arch/arm/mach-mx3/Kconfig" |
49 | source "arch/arm/mach-mx25/Kconfig" | 56 | source "arch/arm/mach-mx25/Kconfig" |
50 | source "arch/arm/mach-mxc91231/Kconfig" | 57 | source "arch/arm/mach-mxc91231/Kconfig" |
58 | source "arch/arm/mach-mx5/Kconfig" | ||
51 | 59 | ||
52 | endmenu | 60 | endmenu |
53 | 61 | ||