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>
15 #define FSR_EXTERNAL (1 << 12)
16 #define FSR_READ (0 << 10)
17 #define FSR_IMPRECISE 0x0406
19 static const char *const bcm5301x_dt_compat
[] __initconst
= {
24 static int bcm5301x_abort_handler(unsigned long addr
, unsigned int fsr
,
28 * We want to ignore aborts forwarded from the PCIe bus that are
29 * expected and shouldn't really be passed by the PCIe controller.
30 * The biggest disadvantage is the same FSR code may be reported when
31 * reading non-existing APB register and we shouldn't ignore that.
33 if (fsr
== (FSR_EXTERNAL
| FSR_READ
| FSR_IMPRECISE
))
39 static void __init
bcm5301x_init_early(void)
41 hook_fault_code(16 + 6, bcm5301x_abort_handler
, SIGBUS
, BUS_OBJERR
,
42 "imprecise external abort");
45 DT_MACHINE_START(BCM5301X
, "BCM5301X")
48 .dt_compat
= bcm5301x_dt_compat
,
49 .init_early
= bcm5301x_init_early
,