aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2012-11-23 23:08:49 -0500
committerJason Cooper <jason@lakedaemon.net>2012-11-23 23:08:49 -0500
commit56580bb422e5f542da19c057f348dd39634138e7 (patch)
treeae02ad21b38d26b1675977a1d19e5da6fb69c52d /arch/arm/mach-mvebu
parent4e76b1b2329b4a19adfacd187bc2920f68126a95 (diff)
parent73d9cdca1ced6ab32be363b58699039bd82b062a (diff)
Merge branch 'mvebu-misc-fixes' of git://github.com/MISL-EBU-System-SW/mainline-public into mvebu/everything
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r--arch/arm/mach-mvebu/addr-map.c2
-rw-r--r--arch/arm/mach-mvebu/armada-370-xp.c9
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-mvebu/addr-map.c b/arch/arm/mach-mvebu/addr-map.c
index 595f6b722a8f..ab9b3bd4fef5 100644
--- a/arch/arm/mach-mvebu/addr-map.c
+++ b/arch/arm/mach-mvebu/addr-map.c
@@ -78,7 +78,7 @@ armada_cfg_base(const struct orion_addr_map_cfg *cfg, int win)
78 if (win < 8) 78 if (win < 8)
79 offset = (win << 4); 79 offset = (win << 4);
80 else 80 else
81 offset = ARMADA_WINDOW_8_PLUS_OFFSET + (win << 3); 81 offset = ARMADA_WINDOW_8_PLUS_OFFSET + ((win - 8) << 3);
82 82
83 return cfg->bridge_virt_base + offset; 83 return cfg->bridge_virt_base + offset;
84} 84}
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
index a9cf335c7cb0..7434b5e36197 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.c
+++ b/arch/arm/mach-mvebu/armada-370-xp.c
@@ -66,13 +66,12 @@ static void __init armada_370_xp_dt_init(void)
66 coherency_init(); 66 coherency_init();
67} 67}
68 68
69static const char * const armada_370_xp_dt_board_dt_compat[] = { 69static const char * const armada_370_xp_dt_compat[] = {
70 "marvell,a370-db", 70 "marvell,armada-370-xp",
71 "marvell,axp-db",
72 NULL, 71 NULL,
73}; 72};
74 73
75DT_MACHINE_START(ARMADA_XP_DT, "Marvell Aramada 370/XP (Device Tree)") 74DT_MACHINE_START(ARMADA_XP_DT, "Marvell Armada 370/XP (Device Tree)")
76 .smp = smp_ops(armada_xp_smp_ops), 75 .smp = smp_ops(armada_xp_smp_ops),
77 .init_machine = armada_370_xp_dt_init, 76 .init_machine = armada_370_xp_dt_init,
78 .map_io = armada_370_xp_map_io, 77 .map_io = armada_370_xp_map_io,
@@ -81,5 +80,5 @@ DT_MACHINE_START(ARMADA_XP_DT, "Marvell Aramada 370/XP (Device Tree)")
81 .handle_irq = armada_370_xp_handle_irq, 80 .handle_irq = armada_370_xp_handle_irq,
82 .timer = &armada_370_xp_timer, 81 .timer = &armada_370_xp_timer,
83 .restart = mvebu_restart, 82 .restart = mvebu_restart,
84 .dt_compat = armada_370_xp_dt_board_dt_compat, 83 .dt_compat = armada_370_xp_dt_compat,
85MACHINE_END 84MACHINE_END