Commit | Line | Data |
---|---|---|
585cf175 TP |
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 | } |