bcm53xx: backport BCM5301X Netgear R6250/R8000 DT patches
[openwrt/staging/chunkeey.git] / target / linux / bcm53xx / patches-3.18 / 323-ARM-BCM5301X-Add-DT-for-Netgear-R8000.patch
1 From f3389cf7bc90d5702adcd4c100b49baf7a813bb9 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 28 Jan 2015 22:39:39 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R8000
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 ---
11 arch/arm/boot/dts/Makefile | 3 ++-
12 arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 26 ++++++++++++++++++++++++++
13 2 files changed, 28 insertions(+), 1 deletion(-)
14 create mode 100644 arch/arm/boot/dts/bcm4709-netgear-r8000.dts
15
16 --- a/arch/arm/mach-bcm/bcm_5301x.c
17 +++ b/arch/arm/mach-bcm/bcm_5301x.c
18 @@ -18,15 +18,16 @@ static bool first_fault = true;
19 static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr,
20 struct pt_regs *regs)
21 {
22 - if (fsr == 0x1c06 && first_fault) {
23 + if ((fsr == 0x1406 || fsr == 0x1c06) && first_fault) {
24 first_fault = false;
25
26 /*
27 - * These faults with code 0x1c06 happens for no good reason,
28 - * possibly left over from the CFE boot loader.
29 + * These faults with codes 0x1406 (BCM4709) or 0x1c06 happens
30 + * for no good reason, possibly left over from the CFE boot
31 + * loader.
32 */
33 pr_warn("External imprecise Data abort at addr=%#lx, fsr=%#x ignored.\n",
34 - addr, fsr);
35 + addr, fsr);
36
37 /* Returning non-zero causes fault display and panic */
38 return 0;
39 --
40 1.8.4.5
41