brcm2708: add support for the new Raspberry Pi Zero W

Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Stijn Tintel 2017-03-05 21:16:07 +01:00 committed by Álvaro Fernández Rojas
parent e091e8951d
commit 4a405ac8f9
4 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -13,7 +13,8 @@ set_state() {
;;
rpi-b |\
rpi-cm |\
rpi-zero)
rpi-zero |\
rpi-zero-w)
status_led="led0"
;;
esac

View File

@ -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"
;;

View File

@ -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,9 @@ 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
DEVICE_PACKAGES := brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini
endef
ifeq ($(SUBTARGET),bcm2708)
TARGET_DEVICES += rpi