diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 8 | ||||
-rw-r--r-- | arch/arm/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion/Kconfig | 7 | ||||
-rw-r--r-- | arch/arm/mach-orion/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion/Makefile.boot | 3 | ||||
-rw-r--r-- | arch/arm/mach-orion/common.c | 53 | ||||
-rw-r--r-- | arch/arm/mach-orion/common.h | 9 |
7 files changed, 82 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index fae3f164218f..036239150ff8 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -333,6 +333,12 @@ config ARCH_MXC | |||
333 | help | 333 | help |
334 | Support for Freescale MXC/iMX-based family of processors | 334 | Support for Freescale MXC/iMX-based family of processors |
335 | 335 | ||
336 | config ARCH_ORION | ||
337 | bool "Marvell Orion" | ||
338 | depends on MMU | ||
339 | help | ||
340 | Support for Marvell Orion System on Chip family. | ||
341 | |||
336 | config ARCH_PNX4008 | 342 | config ARCH_PNX4008 |
337 | bool "Philips Nexperia PNX4008 Mobile" | 343 | bool "Philips Nexperia PNX4008 Mobile" |
338 | help | 344 | help |
@@ -441,6 +447,8 @@ source "arch/arm/mach-omap1/Kconfig" | |||
441 | 447 | ||
442 | source "arch/arm/mach-omap2/Kconfig" | 448 | source "arch/arm/mach-omap2/Kconfig" |
443 | 449 | ||
450 | source "arch/arm/mach-orion/Kconfig" | ||
451 | |||
444 | source "arch/arm/plat-s3c24xx/Kconfig" | 452 | source "arch/arm/plat-s3c24xx/Kconfig" |
445 | source "arch/arm/plat-s3c/Kconfig" | 453 | source "arch/arm/plat-s3c/Kconfig" |
446 | 454 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 35e56c99ad1d..2daa278149e0 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -139,6 +139,7 @@ endif | |||
139 | machine-$(CONFIG_ARCH_KS8695) := ks8695 | 139 | machine-$(CONFIG_ARCH_KS8695) := ks8695 |
140 | incdir-$(CONFIG_ARCH_MXC) := mxc | 140 | incdir-$(CONFIG_ARCH_MXC) := mxc |
141 | machine-$(CONFIG_ARCH_MX3) := mx3 | 141 | machine-$(CONFIG_ARCH_MX3) := mx3 |
142 | machine-$(CONFIG_ARCH_ORION) := orion | ||
142 | 143 | ||
143 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 144 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
144 | # This is what happens if you forget the IOCS16 line. | 145 | # This is what happens if you forget the IOCS16 line. |
diff --git a/arch/arm/mach-orion/Kconfig b/arch/arm/mach-orion/Kconfig new file mode 100644 index 000000000000..c2af02125ce9 --- /dev/null +++ b/arch/arm/mach-orion/Kconfig | |||
@@ -0,0 +1,7 @@ | |||
1 | if ARCH_ORION | ||
2 | |||
3 | menu "Orion Implementations" | ||
4 | |||
5 | endmenu | ||
6 | |||
7 | endif | ||
diff --git a/arch/arm/mach-orion/Makefile b/arch/arm/mach-orion/Makefile new file mode 100644 index 000000000000..69eb30187738 --- /dev/null +++ b/arch/arm/mach-orion/Makefile | |||
@@ -0,0 +1 @@ | |||
obj-y += common.o | |||
diff --git a/arch/arm/mach-orion/Makefile.boot b/arch/arm/mach-orion/Makefile.boot new file mode 100644 index 000000000000..67039c3e0c48 --- /dev/null +++ b/arch/arm/mach-orion/Makefile.boot | |||
@@ -0,0 +1,3 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
2 | params_phys-y := 0x00000100 | ||
3 | initrd_phys-y := 0x00800000 | ||
diff --git a/arch/arm/mach-orion/common.c b/arch/arm/mach-orion/common.c new file mode 100644 index 000000000000..e04f3f07cac0 --- /dev/null +++ b/arch/arm/mach-orion/common.c | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-orion/common.c | ||
3 | * | ||
4 | * Core functions for Marvell Orion System On Chip | ||
5 | * | ||
6 | * Maintainer: Tzachi Perelstein <tzachi@marvell.com> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <asm/page.h> | ||
16 | #include <asm/mach/map.h> | ||
17 | #include <asm/arch/orion.h> | ||
18 | #include "common.h" | ||
19 | |||
20 | /***************************************************************************** | ||
21 | * I/O Address Mapping | ||
22 | ****************************************************************************/ | ||
23 | static struct map_desc orion_io_desc[] __initdata = { | ||
24 | { | ||
25 | .virtual = ORION_REGS_BASE, | ||
26 | .pfn = __phys_to_pfn(ORION_REGS_BASE), | ||
27 | .length = ORION_REGS_SIZE, | ||
28 | .type = MT_DEVICE | ||
29 | }, | ||
30 | { | ||
31 | .virtual = ORION_PCIE_IO_BASE, | ||
32 | .pfn = __phys_to_pfn(ORION_PCIE_IO_BASE), | ||
33 | .length = ORION_PCIE_IO_SIZE, | ||
34 | .type = MT_DEVICE | ||
35 | }, | ||
36 | { | ||
37 | .virtual = ORION_PCI_IO_BASE, | ||
38 | .pfn = __phys_to_pfn(ORION_PCI_IO_BASE), | ||
39 | .length = ORION_PCI_IO_SIZE, | ||
40 | .type = MT_DEVICE | ||
41 | }, | ||
42 | { | ||
43 | .virtual = ORION_PCIE_WA_BASE, | ||
44 | .pfn = __phys_to_pfn(ORION_PCIE_WA_BASE), | ||
45 | .length = ORION_PCIE_WA_SIZE, | ||
46 | .type = MT_DEVICE | ||
47 | }, | ||
48 | }; | ||
49 | |||
50 | void __init orion_map_io(void) | ||
51 | { | ||
52 | iotable_init(orion_io_desc, ARRAY_SIZE(orion_io_desc)); | ||
53 | } | ||
diff --git a/arch/arm/mach-orion/common.h b/arch/arm/mach-orion/common.h new file mode 100644 index 000000000000..224b44618a72 --- /dev/null +++ b/arch/arm/mach-orion/common.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef __ARCH_ORION_COMMON_H__ | ||
2 | #define __ARCH_ORION_COMMON_H__ | ||
3 | |||
4 | /* | ||
5 | * Basic Orion init functions used early by machine-setup. | ||
6 | */ | ||
7 | void __init orion_map_io(void); | ||
8 | |||
9 | #endif /* __ARCH_ORION_COMMON_H__ */ | ||