[source] brcm2708: add support for the new Raspberry Pi Zero W

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 8 00:59:53 PST 2017


noltari pushed a commit to source.git, branch brcm2708-17.01:
https://git.lede-project.org/6685eb2c1378d6850f0982d46731338775675e48

commit 6685eb2c1378d6850f0982d46731338775675e48
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Sun Mar 5 21:16:07 2017 +0100

    brcm2708: add support for the new Raspberry Pi Zero W
    
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 target/linux/brcm2708/base-files/etc/board.d/02_network | 3 +++
 target/linux/brcm2708/base-files/etc/diag.sh            | 3 ++-
 target/linux/brcm2708/base-files/lib/brcm2708.sh        | 3 +++
 target/linux/brcm2708/image/Makefile                    | 6 +++---
 4 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/target/linux/brcm2708/base-files/etc/board.d/02_network b/target/linux/brcm2708/base-files/etc/board.d/02_network
index 21e86f4..9486a6a 100755
--- a/target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/target/linux/brcm2708/base-files/etc/board.d/02_network
@@ -18,6 +18,9 @@ rpi-b |\
 rpi-b-plus)
 	ucidef_set_interface_lan "eth0"
 	;;
+rpi-zero-w)
+	ucidef_set_interface_lan "wlan0"
+	;;
 esac
 
 board_config_flush
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh
index 010a623..36c5cd7 100644
--- a/target/linux/brcm2708/base-files/etc/diag.sh
+++ b/target/linux/brcm2708/base-files/etc/diag.sh
@@ -13,7 +13,8 @@ set_state() {
 		;;
 	rpi-b |\
 	rpi-cm |\
-	rpi-zero)
+	rpi-zero |\
+	rpi-zero-w)
 		status_led="led0"
 		;;
 	esac
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index cebec64..81f123f 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -28,6 +28,9 @@ brcm2708_detect() {
 	"Raspberry Pi Zero Rev"*)
 		board_name="rpi-zero"
 		;;
+	"Raspberry Pi Zero W Rev"*)
+		board_name="rpi-zero-w"
+		;;
 	*)
 		board_name="unknown"
 		;;
diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile
index d0222df..f7d0087 100644
--- a/target/linux/brcm2708/image/Makefile
+++ b/target/linux/brcm2708/image/Makefile
@@ -1,6 +1,6 @@
 # 
 # Copyright (C) 2012-2015 OpenWrt.org
-# Copyright (C) 2016 LEDE project
+# Copyright (C) 2016-2017 LEDE project
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -56,8 +56,8 @@ define Device/Default
 endef
 
 define Device/rpi
-  DEVICE_TITLE := Raspberry Pi B/B+/CM/Zero
-  DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm
+  DEVICE_TITLE := Raspberry Pi B/B+/CM/Zero/ZeroW
+  DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm bcm2708-rpi-0-w
 endef
 ifeq ($(SUBTARGET),bcm2708)
   TARGET_DEVICES += rpi



More information about the lede-commits mailing list