aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-06-05 03:04:57 -0400
committerJason Cooper <jason@lakedaemon.net>2013-06-13 13:48:33 -0400
commit488275beda149fe5cffdf5aa457344aa619d54f1 (patch)
treee8e417eda190587013020360fb410bad4c67ce9e
parent3e0a8f239607e6f7608c3e7797e9c304700f5b72 (diff)
arm: mvebu: remove hardcoded static I/O mapping
Now that we have removed the need of the static I/O mapping for early initialization reasons, and fixed the registers area length that were broken, we can get rid of the static I/O mapping. Only the earlyprintk mapping needs to be set up, using the debug_ll_io_init() helper function. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/mach-mvebu/armada-370-xp.c11
-rw-r--r--arch/arm/mach-mvebu/armada-370-xp.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
index 75ebf567f96c..c1c0556fd250 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.c
+++ b/arch/arm/mach-mvebu/armada-370-xp.c
@@ -28,18 +28,9 @@
28#include "common.h" 28#include "common.h"
29#include "coherency.h" 29#include "coherency.h"
30 30
31static struct map_desc armada_370_xp_io_desc[] __initdata = {
32 {
33 .virtual = (unsigned long) ARMADA_370_XP_REGS_VIRT_BASE,
34 .pfn = __phys_to_pfn(ARMADA_370_XP_REGS_PHYS_BASE),
35 .length = ARMADA_370_XP_REGS_SIZE,
36 .type = MT_DEVICE,
37 },
38};
39
40static void __init armada_370_xp_map_io(void) 31static void __init armada_370_xp_map_io(void)
41{ 32{
42 iotable_init(armada_370_xp_io_desc, ARRAY_SIZE(armada_370_xp_io_desc)); 33 debug_ll_io_init();
43} 34}
44 35
45static void __init armada_370_xp_timer_and_clk_init(void) 36static void __init armada_370_xp_timer_and_clk_init(void)
diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h
index 2070e1b4f342..585e14710c8b 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.h
+++ b/arch/arm/mach-mvebu/armada-370-xp.h
@@ -16,8 +16,6 @@
16#define __MACH_ARMADA_370_XP_H 16#define __MACH_ARMADA_370_XP_H
17 17
18#define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 18#define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000
19#define ARMADA_370_XP_REGS_VIRT_BASE IOMEM(0xfec00000)
20#define ARMADA_370_XP_REGS_SIZE SZ_1M
21 19
22/* These defines can go away once mvebu-mbus has a DT binding */ 20/* These defines can go away once mvebu-mbus has a DT binding */
23#define ARMADA_370_XP_MBUS_WINS_BASE (ARMADA_370_XP_REGS_PHYS_BASE + 0x20000) 21#define ARMADA_370_XP_MBUS_WINS_BASE (ARMADA_370_XP_REGS_PHYS_BASE + 0x20000)