1 From 94afd3b99c65072b76edd25f73bad89587b83261 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 7 Dec 2016 08:56:54 +0100
4 Subject: [PATCH 5/6] ARM: BCM5301X: Specify all RAM by including an extra
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 The first 128 MiB of RAM can be accessed using an alias at address 0x0.
12 In theory we could access whole RAM using 0x80000000 - 0xbfffffff range
13 (up to 1 GiB) but it doesn't seem to work on Northstar. For some reason
14 (hardware setup left by the bootloader maybe?) 0x80000000 - 0x87ffffff
15 range can't be used. I reproduced this problem on:
16 1) Buffalo WZR-600DHP2 (BCM47081)
17 2) Netgear R6250 (BCM4708)
18 3) D-Link DIR-885L (BCM47094)
20 So it seems we're forced to access first 128 MiB using alias at 0x0 and
21 the rest using real base address + 128 MiB offset which is 0x88000000.
23 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
24 Acked-by: Jon Mason <jon.mason@broadcom.com>
25 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
27 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 3 ++-
28 arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts | 3 ++-
29 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 3 ++-
30 arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 3 ++-
31 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 3 ++-
32 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 3 ++-
33 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 3 ++-
34 arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 3 ++-
35 arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 3 ++-
36 arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 3 ++-
37 arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 3 ++-
38 arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 3 ++-
39 arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 3 ++-
40 arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 3 ++-
41 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 3 ++-
42 arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 3 ++-
43 16 files changed, 32 insertions(+), 16 deletions(-)
45 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
46 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
51 - reg = <0x00000000 0x08000000>;
52 + reg = <0x00000000 0x08000000
53 + 0x88000000 0x08000000>;
57 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
58 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
63 - reg = <0x00000000 0x08000000>;
64 + reg = <0x00000000 0x08000000
65 + 0x88000000 0x08000000>;
69 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
70 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
75 - reg = <0x00000000 0x08000000>;
76 + reg = <0x00000000 0x08000000
77 + 0x88000000 0x18000000>;
81 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
82 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
87 - reg = <0x00000000 0x08000000>;
88 + reg = <0x00000000 0x08000000
89 + 0x88000000 0x08000000>;
93 --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
94 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
99 - reg = <0x00000000 0x08000000>;
100 + reg = <0x00000000 0x08000000
101 + 0x88000000 0x08000000>;
105 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
106 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
111 - reg = <0x00000000 0x08000000>;
112 + reg = <0x00000000 0x08000000
113 + 0x88000000 0x08000000>;
117 --- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
118 +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
123 - reg = <0x00000000 0x08000000>;
124 + reg = <0x00000000 0x08000000
125 + 0x88000000 0x08000000>;
129 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
130 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
135 - reg = <0x00000000 0x08000000>;
136 + reg = <0x00000000 0x08000000
137 + 0x88000000 0x08000000>;
141 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
142 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
147 - reg = <0x00000000 0x08000000>;
148 + reg = <0x00000000 0x08000000
149 + 0x88000000 0x08000000>;
153 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
154 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
159 - reg = <0x00000000 0x08000000>;
160 + reg = <0x00000000 0x08000000
161 + 0x88000000 0x08000000>;
165 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
166 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
171 - reg = <0x00000000 0x08000000>;
172 + reg = <0x00000000 0x08000000
173 + 0x88000000 0x18000000>;
177 --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
178 +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
183 - reg = <0x00000000 0x08000000>;
184 + reg = <0x00000000 0x08000000
185 + 0x88000000 0x08000000>;
189 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
190 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
195 - reg = <0x00000000 0x08000000>;
196 + reg = <0x00000000 0x08000000
197 + 0x88000000 0x08000000>;
201 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
202 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
207 - reg = <0x00000000 0x08000000>;
208 + reg = <0x00000000 0x08000000
209 + 0x88000000 0x08000000>;
212 nand: nand@18028000 {
213 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
214 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
219 - reg = <0x00000000 0x08000000>;
220 + reg = <0x00000000 0x08000000
221 + 0x88000000 0x08000000>;
225 --- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
226 +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
231 - reg = <0x00000000 0x08000000>;
232 + reg = <0x00000000 0x08000000
233 + 0x88000000 0x18000000>;