From 40350a5dafbdd73b3d2e88353e503c8651c18de2 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Mon, 1 Dec 2014 00:51:04 +0000 Subject: [PATCH] brcm63xx: add DT support for F@ST2704V2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas SVN-Revision: 43449 --- target/linux/brcm63xx/dts/fast2704v2.dts | 8 ++++++++ target/linux/brcm63xx/image/Makefile | 5 ++--- .../brcm63xx/patches-3.14/536-board_fast2704.patch | 8 ++++++++ target/linux/brcm63xx/profiles/sagem.mk | 10 ++++++++++ 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 target/linux/brcm63xx/dts/fast2704v2.dts diff --git a/target/linux/brcm63xx/dts/fast2704v2.dts b/target/linux/brcm63xx/dts/fast2704v2.dts new file mode 100644 index 00000000000..f001b77d4dc --- /dev/null +++ b/target/linux/brcm63xx/dts/fast2704v2.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +/include/ "bcm6328.dtsi" + +/ { + model = "Sagem F@ST2704V2"; + compatible = "sagem,f@st2704v2", "brcm,bcm6328"; +}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 21e3825fcaf..14d07309f7e 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -220,9 +220,6 @@ define Image/Build # TP-Link 8900GB $(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 'PRID\x89\x10\x00\x02')) - # Sagem F@ST2704V2 - $(call Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2-cfe) - $(call Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2,OpenWRT-$(REVISION)) # Inventel Livebox $(call Image/Build/RedBoot,livebox) @@ -324,6 +321,8 @@ $(eval $(call ImageDTB,CFEDTB,A226M,a226m-fwb,DWV-S0,6358,A226M-FWB,--block-size $(eval $(call ImageDTB,CFEDTB,FAST2404,fast2404,F@ST2404,6348,F@ST2404)) # Sagem F@ST2604 $(eval $(call ImageDTB,CFEDTB,FAST2604,fast2604,F@ST2604,6348,F@ST2604)) +# Sagem F@ST2704V2 +$(eval $(call ImageDTB,CFEDTB,FAST2704V2,fast2704v2,F@ST2704V2,6328,F@ST2704V2)) # T-Com Speedport W 303V Typ B $(eval $(call ImageDTB,SPW303VCFEDTB,SPW303V,spw303v,96358-502V,6358,SPW303V,--pad 4)) # T-Com Speedport W 500V diff --git a/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch b/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch index c647396c477..a974aa34ceb 100644 --- a/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch +++ b/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch @@ -143,3 +143,11 @@ Signed-off-by: Marcin Jurkowski #endif #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 = "sagem,f@st2704v2", .data = &board_FAST2704V2, }, + #endif + #ifdef CONFIG_BCM63XX_CPU_6338 + { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, }, diff --git a/target/linux/brcm63xx/profiles/sagem.mk b/target/linux/brcm63xx/profiles/sagem.mk index 17686d3b83c..80ae8932f14 100644 --- a/target/linux/brcm63xx/profiles/sagem.mk +++ b/target/linux/brcm63xx/profiles/sagem.mk @@ -22,3 +22,13 @@ define Profile/FAST2604/Description Package set optimized for F@ST2604. endef $(eval $(call Profile,FAST2604)) + +define Profile/FAST2704V2 + NAME:=Sagem F@ST2704V2 + PACKAGES:=kmod-b43 wpad-mini\ + kmod-usb2 kmod-usb-ohci +endef +define Profile/FAST2704V2/Description + Package set optimized for F@ST2704V2. +endef +$(eval $(call Profile,FAST2704V2)) -- 2.30.2