046-0005-ARM-BCM5301X-Specify-all-RAM-by-including-an-extra-b.patch 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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
  5. block
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. The first 128 MiB of RAM can be accessed using an alias at address 0x0.
  10. In theory we could access whole RAM using 0x80000000 - 0xbfffffff range
  11. (up to 1 GiB) but it doesn't seem to work on Northstar. For some reason
  12. (hardware setup left by the bootloader maybe?) 0x80000000 - 0x87ffffff
  13. range can't be used. I reproduced this problem on:
  14. 1) Buffalo WZR-600DHP2 (BCM47081)
  15. 2) Netgear R6250 (BCM4708)
  16. 3) D-Link DIR-885L (BCM47094)
  17. So it seems we're forced to access first 128 MiB using alias at 0x0 and
  18. the rest using real base address + 128 MiB offset which is 0x88000000.
  19. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  20. Acked-by: Jon Mason <jon.mason@broadcom.com>
  21. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  22. ---
  23. arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 3 ++-
  24. arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts | 3 ++-
  25. arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 3 ++-
  26. arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 3 ++-
  27. arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 3 ++-
  28. arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 3 ++-
  29. arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 3 ++-
  30. arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 3 ++-
  31. arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 3 ++-
  32. arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 3 ++-
  33. arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 3 ++-
  34. arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 3 ++-
  35. arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 3 ++-
  36. arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 3 ++-
  37. arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 3 ++-
  38. arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 3 ++-
  39. 16 files changed, 32 insertions(+), 16 deletions(-)
  40. --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
  41. +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
  42. @@ -21,7 +21,8 @@
  43. };
  44. memory {
  45. - reg = <0x00000000 0x08000000>;
  46. + reg = <0x00000000 0x08000000
  47. + 0x88000000 0x08000000>;
  48. };
  49. leds {
  50. --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
  51. +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
  52. @@ -21,7 +21,8 @@
  53. };
  54. memory {
  55. - reg = <0x00000000 0x08000000>;
  56. + reg = <0x00000000 0x08000000
  57. + 0x88000000 0x08000000>;
  58. };
  59. leds {
  60. --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  61. +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  62. @@ -21,7 +21,8 @@
  63. };
  64. memory {
  65. - reg = <0x00000000 0x08000000>;
  66. + reg = <0x00000000 0x08000000
  67. + 0x88000000 0x18000000>;
  68. };
  69. spi {
  70. --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  71. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  72. @@ -21,7 +21,8 @@
  73. };
  74. memory {
  75. - reg = <0x00000000 0x08000000>;
  76. + reg = <0x00000000 0x08000000
  77. + 0x88000000 0x08000000>;
  78. };
  79. leds {
  80. --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
  81. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
  82. @@ -21,7 +21,8 @@
  83. };
  84. memory {
  85. - reg = <0x00000000 0x08000000>;
  86. + reg = <0x00000000 0x08000000
  87. + 0x88000000 0x08000000>;
  88. };
  89. leds {
  90. --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  91. +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  92. @@ -21,7 +21,8 @@
  93. };
  94. memory {
  95. - reg = <0x00000000 0x08000000>;
  96. + reg = <0x00000000 0x08000000
  97. + 0x88000000 0x08000000>;
  98. };
  99. leds {
  100. --- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
  101. +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
  102. @@ -21,7 +21,8 @@
  103. };
  104. memory {
  105. - reg = <0x00000000 0x08000000>;
  106. + reg = <0x00000000 0x08000000
  107. + 0x88000000 0x08000000>;
  108. };
  109. leds {
  110. --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
  111. +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
  112. @@ -21,7 +21,8 @@
  113. };
  114. memory {
  115. - reg = <0x00000000 0x08000000>;
  116. + reg = <0x00000000 0x08000000
  117. + 0x88000000 0x08000000>;
  118. };
  119. spi {
  120. --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
  121. +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
  122. @@ -21,7 +21,8 @@
  123. };
  124. memory {
  125. - reg = <0x00000000 0x08000000>;
  126. + reg = <0x00000000 0x08000000
  127. + 0x88000000 0x08000000>;
  128. };
  129. gpio-keys {
  130. --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
  131. +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
  132. @@ -21,7 +21,8 @@
  133. };
  134. memory {
  135. - reg = <0x00000000 0x08000000>;
  136. + reg = <0x00000000 0x08000000
  137. + 0x88000000 0x08000000>;
  138. };
  139. leds {
  140. --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  141. +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  142. @@ -21,7 +21,8 @@
  143. };
  144. memory {
  145. - reg = <0x00000000 0x08000000>;
  146. + reg = <0x00000000 0x08000000
  147. + 0x88000000 0x18000000>;
  148. };
  149. leds {
  150. --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
  151. +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
  152. @@ -21,7 +21,8 @@
  153. };
  154. memory {
  155. - reg = <0x00000000 0x08000000>;
  156. + reg = <0x00000000 0x08000000
  157. + 0x88000000 0x08000000>;
  158. };
  159. leds {
  160. --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  161. +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  162. @@ -21,7 +21,8 @@
  163. };
  164. memory {
  165. - reg = <0x00000000 0x08000000>;
  166. + reg = <0x00000000 0x08000000
  167. + 0x88000000 0x08000000>;
  168. };
  169. leds {
  170. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  171. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  172. @@ -21,7 +21,8 @@
  173. };
  174. memory {
  175. - reg = <0x00000000 0x08000000>;
  176. + reg = <0x00000000 0x08000000
  177. + 0x88000000 0x08000000>;
  178. };
  179. nand: nand@18028000 {
  180. --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
  181. +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
  182. @@ -18,7 +18,8 @@
  183. };
  184. memory {
  185. - reg = <0x00000000 0x08000000>;
  186. + reg = <0x00000000 0x08000000
  187. + 0x88000000 0x08000000>;
  188. };
  189. leds {
  190. --- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
  191. +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
  192. @@ -18,7 +18,8 @@
  193. };
  194. memory {
  195. - reg = <0x00000000 0x08000000>;
  196. + reg = <0x00000000 0x08000000
  197. + 0x88000000 0x18000000>;
  198. };
  199. leds {