ASoC: rsnd: don't overwrite io on rsnd_cmd_init()
[linux-2.6/btrfs-unstable.git] / arch / arm / mach-bcm / bcm_5301x.c
blob5478fe6bcce60200b67537a93209225741fa98ed
1 /*
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.
7 */
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,
19 struct pt_regs *regs)
21 if ((fsr == 0x1406 || fsr == 0x1c06) && first_fault) {
22 first_fault = false;
25 * These faults with codes 0x1406 (BCM4709) or 0x1c06 happens
26 * for no good reason, possibly left over from the CFE boot
27 * loader.
29 pr_warn("External imprecise Data abort at addr=%#lx, fsr=%#x ignored.\n",
30 addr, fsr);
32 /* Returning non-zero causes fault display and panic */
33 return 0;
36 /* Others should cause a fault */
37 return 1;
40 static void __init bcm5301x_init_early(void)
42 /* Install our hook */
43 hook_fault_code(16 + 6, bcm5301x_abort_handler, SIGBUS, BUS_OBJERR,
44 "imprecise external abort");
47 static const char *const bcm5301x_dt_compat[] __initconst = {
48 "brcm,bcm4708",
49 NULL,
52 DT_MACHINE_START(BCM5301X, "BCM5301X")
53 .l2c_aux_val = 0,
54 .l2c_aux_mask = ~0,
55 .init_early = bcm5301x_init_early,
56 .dt_compat = bcm5301x_dt_compat,
57 MACHINE_END