bcm53xx: add support for SmartRG SR400ac
authorRafał Miłecki <zajec5@gmail.com>
Wed, 13 May 2015 20:01:15 +0000 (20:01 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Wed, 13 May 2015 20:01:15 +0000 (20:01 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45686

target/linux/bcm53xx/image/Makefile
target/linux/bcm53xx/patches-3.18/303-ARM-BCM5310X-Enable-earlyprintk-on-tested-devices.patch
target/linux/bcm53xx/patches-3.18/306-ARM-BCM5301X-Specify-RAM-on-devices-by-including-HIG.patch
target/linux/bcm53xx/patches-3.18/351-ARM-BCM5301X-Enable-ChipCommon-UART-serial-console.patch

index b299f38949ff7b9bf8162e6706f252de3ec9413d..4b61e1330b2bab476e557c05bb6e764024bd1c3d 100644 (file)
@@ -95,10 +95,16 @@ define Device/netgear-r8000
   BOARD_ID := U12H315T00_NETGEAR
 endef
 
+define Device/smartrg-sr400ac
+  IMAGES := trx
+  IMAGE/trx := trx-serial
+endef
+
 TARGET_DEVICES += \
        asus-rt-ac56u asus-rt-ac68u asus-rt-ac87u asus-rt-n18u \
-       netgear-r6250 netgear-r6300-v2 netgear-r8000 \
        buffalo-wzr-1750dhp buffalo-wzr-600dhp2 buffalo-wzr-900dhp \
-       buffalo-wxr-1900dhp
+       buffalo-wxr-1900dhp \
+       netgear-r6250 netgear-r6300-v2 netgear-r8000 \
+       smartrg-sr400ac
 
 $(eval $(call BuildImage))
index 2153452dd4f79efe2420bd8e700730df362ed28e..5a0e008cbbf6137f061014276d987d9a5088c8e4 100644 (file)
@@ -123,4 +123,15 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 +              bootargs = "console=ttyS0,115200 earlyprintk";
        };
  
+       memory {
+--- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
++++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
+@@ -16,7 +16,7 @@
+       model = "SmartRG SR400ac";
+       chosen {
+-              bootargs = "console=ttyS0,115200";
++              bootargs = "console=ttyS0,115200 earlyprintk";
+       };
        memory {
index f7bdf6556388ee2a3d1589a0e955abded1886b27..af6c27d022362e6f88008370bd7383983aefafe4 100644 (file)
@@ -134,4 +134,16 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 +                     0x88000000 0x18000000>;
        };
  
+       leds {
+--- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
++++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
+@@ -20,7 +20,8 @@
+       };
+       memory {
+-              reg = <0x00000000 0x08000000>;
++              reg = <0x00000000 0x08000000
++                     0x88000000 0x08000000>;
+       };
        leds {
index b50b5ac1a697b9b0e3effd4fe77e601f398b22f0..00e64097f90e0f1af4bb80b3b126b8814dbd3c77 100644 (file)
@@ -208,3 +208,22 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
        clocks {
                clk_periph: periph {
                        clock-frequency = <500000000>;
+--- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
++++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
+@@ -24,6 +24,16 @@
+                      0x88000000 0x08000000>;
+       };
++      chipcommonA {
++              uart0: serial@0300 {
++                      status = "okay";
++              };
++
++              uart1: serial@0400 {
++                      status = "okay";
++              };
++      };
++
+       leds {
+               compatible = "gpio-leds";