|
@@ -23,6 +23,7 @@
|
|
|
#include <linux/mbus.h>
|
|
|
#include <linux/signal.h>
|
|
|
#include <linux/slab.h>
|
|
|
+#include <linux/irqchip.h>
|
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
|
#include <asm/mach/arch.h>
|
|
|
#include <asm/mach/map.h>
|
|
@@ -71,17 +72,23 @@ static int armada_375_external_abort_wa(unsigned long addr, unsigned int fsr,
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
-static void __init mvebu_timer_and_clk_init(void)
|
|
|
+static void __init mvebu_init_irq(void)
|
|
|
{
|
|
|
- of_clk_init(NULL);
|
|
|
- clocksource_of_init();
|
|
|
+ irqchip_init();
|
|
|
mvebu_scu_enable();
|
|
|
coherency_init();
|
|
|
BUG_ON(mvebu_mbus_dt_init(coherency_available()));
|
|
|
+}
|
|
|
+
|
|
|
+static void __init external_abort_quirk(void)
|
|
|
+{
|
|
|
+ u32 dev, rev;
|
|
|
|
|
|
- if (of_machine_is_compatible("marvell,armada375"))
|
|
|
- hook_fault_code(16 + 6, armada_375_external_abort_wa, SIGBUS, 0,
|
|
|
- "imprecise external abort");
|
|
|
+ if (mvebu_get_soc_id(&dev, &rev) == 0 && rev > ARMADA_375_Z1_REV)
|
|
|
+ return;
|
|
|
+
|
|
|
+ hook_fault_code(16 + 6, armada_375_external_abort_wa, SIGBUS, 0,
|
|
|
+ "imprecise external abort");
|
|
|
}
|
|
|
|
|
|
static void __init i2c_quirk(void)
|
|
@@ -178,8 +185,10 @@ static void __init mvebu_dt_init(void)
|
|
|
{
|
|
|
if (of_machine_is_compatible("plathome,openblocks-ax3-4"))
|
|
|
i2c_quirk();
|
|
|
- if (of_machine_is_compatible("marvell,a375-db"))
|
|
|
+ if (of_machine_is_compatible("marvell,a375-db")) {
|
|
|
+ external_abort_quirk();
|
|
|
thermal_quirk();
|
|
|
+ }
|
|
|
|
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
|
}
|
|
@@ -194,7 +203,7 @@ DT_MACHINE_START(ARMADA_370_XP_DT, "Marvell Armada 370/XP (Device Tree)")
|
|
|
.l2c_aux_mask = ~0,
|
|
|
.smp = smp_ops(armada_xp_smp_ops),
|
|
|
.init_machine = mvebu_dt_init,
|
|
|
- .init_time = mvebu_timer_and_clk_init,
|
|
|
+ .init_irq = mvebu_init_irq,
|
|
|
.restart = mvebu_restart,
|
|
|
.dt_compat = armada_370_xp_dt_compat,
|
|
|
MACHINE_END
|
|
@@ -207,7 +216,7 @@ static const char * const armada_375_dt_compat[] = {
|
|
|
DT_MACHINE_START(ARMADA_375_DT, "Marvell Armada 375 (Device Tree)")
|
|
|
.l2c_aux_val = 0,
|
|
|
.l2c_aux_mask = ~0,
|
|
|
- .init_time = mvebu_timer_and_clk_init,
|
|
|
+ .init_irq = mvebu_init_irq,
|
|
|
.init_machine = mvebu_dt_init,
|
|
|
.restart = mvebu_restart,
|
|
|
.dt_compat = armada_375_dt_compat,
|
|
@@ -222,7 +231,7 @@ static const char * const armada_38x_dt_compat[] = {
|
|
|
DT_MACHINE_START(ARMADA_38X_DT, "Marvell Armada 380/385 (Device Tree)")
|
|
|
.l2c_aux_val = 0,
|
|
|
.l2c_aux_mask = ~0,
|
|
|
- .init_time = mvebu_timer_and_clk_init,
|
|
|
+ .init_irq = mvebu_init_irq,
|
|
|
.restart = mvebu_restart,
|
|
|
.dt_compat = armada_38x_dt_compat,
|
|
|
MACHINE_END
|