brcm63xx: add DT support for DSL-2740B/DSL-2741B rev F1
authorJonas Gorski <jogo@openwrt.org>
Mon, 1 Dec 2014 00:51:12 +0000 (00:51 +0000)
committerJonas Gorski <jogo@openwrt.org>
Mon, 1 Dec 2014 00:51:12 +0000 (00:51 +0000)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 43451

target/linux/brcm63xx/dts/dsl-274xb-f.dts [new file with mode: 0644]
target/linux/brcm63xx/image/Makefile
target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
target/linux/brcm63xx/patches-3.14/531-board_AR-5387un.patch
target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
target/linux/brcm63xx/profiles/d-link.mk

diff --git a/target/linux/brcm63xx/dts/dsl-274xb-f.dts b/target/linux/brcm63xx/dts/dsl-274xb-f.dts
new file mode 100644 (file)
index 0000000..a17f988
--- /dev/null
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+/include/ "bcm6328.dtsi"
+
+/ {
+       model = "D-Link DSL-2740B/DSL-2741B rev F1";
+       compatible = "d-link,dsl-274xb-f", "brcm,bcm6328";
+};
index 26063e9615444d9381db80488951e2a92441a56d..39dfb0a5167aa6f995cde3afef95be723bffa469 100755 (executable)
@@ -210,9 +210,6 @@ define Image/Build
        $(call Image/Build/CFE,$(1),D-4P-W,6348,DSL2640B-B2)
        # D-Link DSL-2650U
        $(call Image/Build/CFE,$(1),96358VW2,6358,DSL2650U)
-       # D-Link DSL-2740B/DSL-2741B, rev F1
-       $(call Image/Build/CFE,$(1),AW4339U,6328,DSL274XB-F1-EU,,--signature2="4.06.01.EUF1" --pad 4)
-       $(call Image/Build/CFE,$(1),AW4339U,6328,DSL274XB-F1-AU,,--signature2="4.06.01.AUF1" --pad 4)
 
        # TP-Link 8900GB
        $(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 'PRID\x89\x10\x00\x02'))
@@ -295,6 +292,9 @@ $(eval $(call ImageDTB,CFEDTB,WAP5813n,wap-5813n,96369R-1231N,6368,WAP-5813n,--p
 $(eval $(call ImageDTB,CFEDTB,DSL274XB_C,dsl-274xb-c,96358GW,6358,DSL274XB-C2))
 # D-Link DSL-2740B/DSL-2741B, rev C3
 $(eval $(call ImageDTB,CFEDTB,DSL274XB_C,dsl-274xb-c,AW4139,6358,DSL274XB-C3))
+# D-Link DSL-2740B/DSL-2741B, rev F1
+$(eval $(call ImageDTB,CFEDTB,DSL274XB_F,dsl-274xb-f,AW4339U,6328,DSL274XB-F1-EU,--signature2 "4.06.01.EUF1" --pad 4))
+$(eval $(call ImageDTB,CFEDTB,DSL274XB_F,dsl-274xb-f,AW4339U,6328,DSL274XB-F1-AU,--signature2 "4.06.01.AUF1" --pad 4))
 # D-Link DVA-G3810BN/TL
 $(eval $(call ImageDTB,CFEDTB,DVAG3810BN,dva-g3810bn_tl,96358VW,6358,DVAG3810BN))
 # Davolink DV-201AMR
index 97c42dfdff25b8c564364f5745776311d3a40ae7..9dc48c529841e748c6cf4f5c896a68791cea24f1 100644 (file)
@@ -130,3 +130,11 @@ Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
        &board_96338gw,
+@@ -2742,6 +2870,7 @@ static struct of_device_id const bcm963x
+ #ifdef CONFIG_BCM63XX_CPU_6328
+       { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
+       { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
++      { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_6338
+       { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
index 1e5f9c298f1a535376471fc98b0443a553fae776..82d6c807a546ed144e6fe230709df20fe83bd5a8 100644 (file)
        { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
        { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
 +      { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
+       { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
-       { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
index a974aa34ceb44d6f0d40cd80b236b8283d70143b..c5da9173cbbbc2735f9994d1a313921122c53335 100644 (file)
@@ -144,9 +144,9 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
  #ifdef CONFIG_BCM63XX_CPU_6338
        &board_96338gw,
 @@ -3576,6 +3693,7 @@ static struct of_device_id const bcm963x
-       { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
        { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
        { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
+       { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
 +      { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
index f2eedd6637b43dce584078d4d6a84d70edf7e997..69c2fc8639a9ee41349290944164f9ca10b37794 100644 (file)
@@ -14,6 +14,15 @@ define Profile/DSL274XB_C/Description
 endef
 $(eval $(call Profile,DSL274XB_C))
 
+define Profile/DSL274XB_F
+  NAME:=D-Link DSL-2740B/DSL-2741B rev F1
+  PACKAGES:=kmod-ath9k wpad-mini
+endef
+define Profile/DSL274XB_F/Description
+  Package set optimized for DSL-2740B/DSL-2741B rev F1.
+endef
+$(eval $(call Profile,DSL274XB_F))
+
 define Profile/DVAG3810BN
   NAME:=D-Link DVA-G3810BN/TL
   PACKAGES:=kmod-b43 wpad-mini \