2 * Broadcom BCM470X / BCM5301X ARM platform code.
4 * Copyright 2013 Hauke Mehrtens <hauke@hauke-m.de>
6 * Licensed under the GNU/GPL. See COPYING for details.
8 #include <linux/of_platform.h>
9 #include <asm/hardware/cache-l2x0.h>
11 #include <asm/mach/arch.h>
12 #include <asm/siginfo.h>
13 #include <asm/signal.h>
16 static bool first_fault = true;
18 static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr,
21 if (fsr == 0x1c06 && first_fault) {
25 * These faults with code 0x1c06 happens for no good reason,
26 * possibly left over from the CFE boot loader.
28 pr_warn("External imprecise Data abort at addr=%#lx, fsr=%#x ignored.\n",
31 /* Returning non-zero causes fault display and panic */
35 /* Others should cause a fault */
39 static void __init bcm5301x_init_early(void)
41 /* Install our hook */
42 hook_fault_code(16 + 6, bcm5301x_abort_handler, SIGBUS, BUS_OBJERR,
43 "imprecise external abort");
46 static const char __initconst *bcm5301x_dt_compat[] = {
51 DT_MACHINE_START(BCM5301X, "BCM5301X")
54 .init_early = bcm5301x_init_early,
55 .dt_compat = bcm5301x_dt_compat,