bcm53xx: add early support for Buffalo WZR-900DHP
[openwrt.git] / target / linux / bcm53xx / patches-3.14 / 041-ARM-BCM5301X-add-early-debugging-support.patch
1 From 065802756b20d878c83290c115f212fc1631cba7 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Tue, 4 Feb 2014 00:01:44 +0100
4 Subject: [PATCH 2/3] ARM: BCM5301X: add early debugging support
5
6 This adds support for early debugging of BCM5301X SoC.
7
8 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 Acked-by: Arnd Bergmann <arnd@arndb.de>
10 Acked-by: Christian Daudt <bcm@fixthebug.org>
11 Signed-off-by: Matt Porter <mporter@linaro.org>
12 ---
13  arch/arm/Kconfig.debug |    7 +++++++
14  1 file changed, 7 insertions(+)
15
16 --- a/arch/arm/Kconfig.debug
17 +++ b/arch/arm/Kconfig.debug
18 @@ -106,6 +106,11 @@ choice
19                 depends on ARCH_BCM2835
20                 select DEBUG_UART_PL01X
21  
22 +       config DEBUG_BCM_5301X
23 +               bool "Kernel low-level debugging on BCM5301X UART1"
24 +               depends on ARCH_BCM_5301X
25 +               select DEBUG_UART_PL01X
26 +
27         config DEBUG_BCM_KONA_UART
28                 bool "Kernel low-level debugging messages via BCM KONA UART"
29                 depends on ARCH_BCM
30 @@ -1023,6 +1028,7 @@ config DEBUG_UART_PHYS
31         default 0x101f1000 if ARCH_VERSATILE
32         default 0x101fb000 if DEBUG_NOMADIK_UART
33         default 0x16000000 if ARCH_INTEGRATOR
34 +       default 0x18000300 if DEBUG_BCM_5301X
35         default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
36         default 0x20060000 if DEBUG_RK29_UART0
37         default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
38 @@ -1071,6 +1077,7 @@ config DEBUG_UART_VIRT
39         default 0xf0009000 if DEBUG_CNS3XXX
40         default 0xf01fb000 if DEBUG_NOMADIK_UART
41         default 0xf0201000 if DEBUG_BCM2835
42 +       default 0xf1000300 if DEBUG_BCM_5301X
43         default 0xf11f1000 if ARCH_VERSATILE
44         default 0xf1600000 if ARCH_INTEGRATOR
45         default 0xf1c28000 if DEBUG_SUNXI_UART0