diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-04-15 11:30:43 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-01 15:44:31 -0500 |
commit | 377524dc4d77f50e19392d619f531cc3c9435d1b (patch) | |
tree | fad638c69ec04ebefe07af9ed6ad95c0dd5fb918 /arch/arm/mach-mmp | |
parent | b501fd7b1c0f10d3967d3abbd6c9d091b3384999 (diff) |
ARM: mmp: move into ARCH_MULTIPLATFORM
With all dependencies taken care of, this enables building
the Marvell mmp platform as part of ARCH_MULTIPLATFORM, along
with other ARMv5 and ARMv7 platforms.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'arch/arm/mach-mmp')
-rw-r--r-- | arch/arm/mach-mmp/Kconfig | 34 | ||||
-rw-r--r-- | arch/arm/mach-mmp/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-mmp/include/mach/uncompress.h | 45 |
3 files changed, 27 insertions, 53 deletions
diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index fdbfadf00c84..01c57d369462 100644 --- a/arch/arm/mach-mmp/Kconfig +++ b/arch/arm/mach-mmp/Kconfig | |||
@@ -1,9 +1,22 @@ | |||
1 | menuconfig ARCH_MMP | ||
2 | bool "Marvell PXA168/910/MMP2" | ||
3 | depends on ARCH_MULTI_V5 || ARCH_MULTI_V7 | ||
4 | select ARCH_REQUIRE_GPIOLIB | ||
5 | select GPIO_PXA | ||
6 | select PINCTRL | ||
7 | select PLAT_PXA | ||
8 | help | ||
9 | Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line. | ||
10 | |||
1 | if ARCH_MMP | 11 | if ARCH_MMP |
2 | 12 | ||
3 | menu "Marvell PXA168/910/MMP2 Implmentations" | 13 | menu "Marvell PXA168/910/MMP2 Implementations" |
14 | |||
15 | if ATAGS | ||
4 | 16 | ||
5 | config MACH_ASPENITE | 17 | config MACH_ASPENITE |
6 | bool "Marvell's PXA168 Aspenite Development Board" | 18 | bool "Marvell's PXA168 Aspenite Development Board" |
19 | depends on ARCH_MULTI_V5 | ||
7 | select CPU_PXA168 | 20 | select CPU_PXA168 |
8 | help | 21 | help |
9 | Say 'Y' here if you want to support the Marvell PXA168-based | 22 | Say 'Y' here if you want to support the Marvell PXA168-based |
@@ -11,6 +24,7 @@ config MACH_ASPENITE | |||
11 | 24 | ||
12 | config MACH_ZYLONITE2 | 25 | config MACH_ZYLONITE2 |
13 | bool "Marvell's PXA168 Zylonite2 Development Board" | 26 | bool "Marvell's PXA168 Zylonite2 Development Board" |
27 | depends on ARCH_MULTI_V5 | ||
14 | select CPU_PXA168 | 28 | select CPU_PXA168 |
15 | help | 29 | help |
16 | Say 'Y' here if you want to support the Marvell PXA168-based | 30 | Say 'Y' here if you want to support the Marvell PXA168-based |
@@ -18,6 +32,7 @@ config MACH_ZYLONITE2 | |||
18 | 32 | ||
19 | config MACH_AVENGERS_LITE | 33 | config MACH_AVENGERS_LITE |
20 | bool "Marvell's PXA168 Avengers Lite Development Board" | 34 | bool "Marvell's PXA168 Avengers Lite Development Board" |
35 | depends on ARCH_MULTI_V5 | ||
21 | select CPU_PXA168 | 36 | select CPU_PXA168 |
22 | help | 37 | help |
23 | Say 'Y' here if you want to support the Marvell PXA168-based | 38 | Say 'Y' here if you want to support the Marvell PXA168-based |
@@ -25,6 +40,7 @@ config MACH_AVENGERS_LITE | |||
25 | 40 | ||
26 | config MACH_TAVOREVB | 41 | config MACH_TAVOREVB |
27 | bool "Marvell's PXA910 TavorEVB Development Board" | 42 | bool "Marvell's PXA910 TavorEVB Development Board" |
43 | depends on ARCH_MULTI_V5 | ||
28 | select CPU_PXA910 | 44 | select CPU_PXA910 |
29 | help | 45 | help |
30 | Say 'Y' here if you want to support the Marvell PXA910-based | 46 | Say 'Y' here if you want to support the Marvell PXA910-based |
@@ -32,6 +48,7 @@ config MACH_TAVOREVB | |||
32 | 48 | ||
33 | config MACH_TTC_DKB | 49 | config MACH_TTC_DKB |
34 | bool "Marvell's PXA910 TavorEVB Development Board" | 50 | bool "Marvell's PXA910 TavorEVB Development Board" |
51 | depends on ARCH_MULTI_V5 | ||
35 | select CPU_PXA910 | 52 | select CPU_PXA910 |
36 | help | 53 | help |
37 | Say 'Y' here if you want to support the Marvell PXA910-based | 54 | Say 'Y' here if you want to support the Marvell PXA910-based |
@@ -39,7 +56,7 @@ config MACH_TTC_DKB | |||
39 | 56 | ||
40 | config MACH_BROWNSTONE | 57 | config MACH_BROWNSTONE |
41 | bool "Marvell's Brownstone Development Platform" | 58 | bool "Marvell's Brownstone Development Platform" |
42 | depends on !CPU_MOHAWK | 59 | depends on ARCH_MULTI_V7 |
43 | select CPU_MMP2 | 60 | select CPU_MMP2 |
44 | help | 61 | help |
45 | Say 'Y' here if you want to support the Marvell MMP2-based | 62 | Say 'Y' here if you want to support the Marvell MMP2-based |
@@ -50,7 +67,7 @@ config MACH_BROWNSTONE | |||
50 | 67 | ||
51 | config MACH_FLINT | 68 | config MACH_FLINT |
52 | bool "Marvell's Flint Development Platform" | 69 | bool "Marvell's Flint Development Platform" |
53 | depends on !CPU_MOHAWK | 70 | depends on ARCH_MULTI_V7 |
54 | select CPU_MMP2 | 71 | select CPU_MMP2 |
55 | help | 72 | help |
56 | Say 'Y' here if you want to support the Marvell MMP2-based | 73 | Say 'Y' here if you want to support the Marvell MMP2-based |
@@ -61,7 +78,7 @@ config MACH_FLINT | |||
61 | 78 | ||
62 | config MACH_MARVELL_JASPER | 79 | config MACH_MARVELL_JASPER |
63 | bool "Marvell's Jasper Development Platform" | 80 | bool "Marvell's Jasper Development Platform" |
64 | depends on !CPU_MOHAWK | 81 | depends on ARCH_MULTI_V7 |
65 | select CPU_MMP2 | 82 | select CPU_MMP2 |
66 | help | 83 | help |
67 | Say 'Y' here if you want to support the Marvell MMP2-base | 84 | Say 'Y' here if you want to support the Marvell MMP2-base |
@@ -72,6 +89,7 @@ config MACH_MARVELL_JASPER | |||
72 | 89 | ||
73 | config MACH_TETON_BGA | 90 | config MACH_TETON_BGA |
74 | bool "Marvell's PXA168 Teton BGA Development Board" | 91 | bool "Marvell's PXA168 Teton BGA Development Board" |
92 | depends on ARCH_MULTI_V5 | ||
75 | select CPU_PXA168 | 93 | select CPU_PXA168 |
76 | help | 94 | help |
77 | Say 'Y' here if you want to support the Marvell PXA168-based | 95 | Say 'Y' here if you want to support the Marvell PXA168-based |
@@ -79,14 +97,16 @@ config MACH_TETON_BGA | |||
79 | 97 | ||
80 | config MACH_GPLUGD | 98 | config MACH_GPLUGD |
81 | bool "Marvell's PXA168 GuruPlug Display (gplugD) Board" | 99 | bool "Marvell's PXA168 GuruPlug Display (gplugD) Board" |
100 | depends on ARCH_MULTI_V5 | ||
82 | select CPU_PXA168 | 101 | select CPU_PXA168 |
83 | help | 102 | help |
84 | Say 'Y' here if you want to support the Marvell PXA168-based | 103 | Say 'Y' here if you want to support the Marvell PXA168-based |
85 | GuruPlug Display (gplugD) Board | 104 | GuruPlug Display (gplugD) Board |
105 | endif | ||
86 | 106 | ||
87 | config MACH_MMP_DT | 107 | config MACH_MMP_DT |
88 | bool "Support MMP (ARMv5) platforms from device tree" | 108 | bool "Support MMP (ARMv5) platforms from device tree" |
89 | select USE_OF | 109 | depends on ARCH_MULTI_V5 |
90 | select PINCTRL | 110 | select PINCTRL |
91 | select PINCTRL_SINGLE | 111 | select PINCTRL_SINGLE |
92 | select COMMON_CLK | 112 | select COMMON_CLK |
@@ -99,11 +119,9 @@ config MACH_MMP_DT | |||
99 | 119 | ||
100 | config MACH_MMP2_DT | 120 | config MACH_MMP2_DT |
101 | bool "Support MMP2 (ARMv7) platforms from device tree" | 121 | bool "Support MMP2 (ARMv7) platforms from device tree" |
102 | depends on !CPU_MOHAWK | 122 | depends on ARCH_MULTI_V7 |
103 | select USE_OF | ||
104 | select PINCTRL | 123 | select PINCTRL |
105 | select PINCTRL_SINGLE | 124 | select PINCTRL_SINGLE |
106 | select COMMON_CLK | ||
107 | select ARCH_HAS_RESET_CONTROLLER | 125 | select ARCH_HAS_RESET_CONTROLLER |
108 | select CPU_PJ4 | 126 | select CPU_PJ4 |
109 | help | 127 | help |
diff --git a/arch/arm/mach-mmp/Makefile b/arch/arm/mach-mmp/Makefile index 98f0f6388e44..7677ad5414e9 100644 --- a/arch/arm/mach-mmp/Makefile +++ b/arch/arm/mach-mmp/Makefile | |||
@@ -1,6 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Makefile for Marvell's PXA168 processors line | 2 | # Makefile for Marvell's PXA168 processors line |
3 | # | 3 | # |
4 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/plat-pxa/include | ||
4 | 5 | ||
5 | obj-y += common.o devices.o time.o | 6 | obj-y += common.o devices.o time.o |
6 | 7 | ||
diff --git a/arch/arm/mach-mmp/include/mach/uncompress.h b/arch/arm/mach-mmp/include/mach/uncompress.h deleted file mode 100644 index 8890fa8fa771..000000000000 --- a/arch/arm/mach-mmp/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-mmp/include/mach/uncompress.h | ||
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/serial_reg.h> | ||
10 | #include <mach/addr-map.h> | ||
11 | #include <asm/mach-types.h> | ||
12 | |||
13 | #define UART1_BASE (APB_PHYS_BASE + 0x36000) | ||
14 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) | ||
15 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) | ||
16 | |||
17 | volatile unsigned long *UART; | ||
18 | |||
19 | static inline void putc(char c) | ||
20 | { | ||
21 | /* UART enabled? */ | ||
22 | if (!(UART[UART_IER] & UART_IER_UUE)) | ||
23 | return; | ||
24 | |||
25 | while (!(UART[UART_LSR] & UART_LSR_THRE)) | ||
26 | barrier(); | ||
27 | |||
28 | UART[UART_TX] = c; | ||
29 | } | ||
30 | |||
31 | /* | ||
32 | * This does not append a newline | ||
33 | */ | ||
34 | static inline void flush(void) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | static inline void arch_decomp_setup(void) | ||
39 | { | ||
40 | /* default to UART2 */ | ||
41 | UART = (unsigned long *)UART2_BASE; | ||
42 | |||
43 | if (machine_is_avengers_lite()) | ||
44 | UART = (unsigned long *)UART3_BASE; | ||
45 | } | ||