mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 17:47:00 +00:00
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:
parent
e091e8951d
commit
4a405ac8f9
@ -18,6 +18,9 @@ rpi-b |\
|
|||||||
rpi-b-plus)
|
rpi-b-plus)
|
||||||
ucidef_set_interface_lan "eth0"
|
ucidef_set_interface_lan "eth0"
|
||||||
;;
|
;;
|
||||||
|
rpi-zero-w)
|
||||||
|
ucidef_set_interface_lan "wlan0"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
board_config_flush
|
board_config_flush
|
||||||
|
@ -13,7 +13,8 @@ set_state() {
|
|||||||
;;
|
;;
|
||||||
rpi-b |\
|
rpi-b |\
|
||||||
rpi-cm |\
|
rpi-cm |\
|
||||||
rpi-zero)
|
rpi-zero |\
|
||||||
|
rpi-zero-w)
|
||||||
status_led="led0"
|
status_led="led0"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -28,6 +28,9 @@ brcm2708_detect() {
|
|||||||
"Raspberry Pi Zero Rev"*)
|
"Raspberry Pi Zero Rev"*)
|
||||||
board_name="rpi-zero"
|
board_name="rpi-zero"
|
||||||
;;
|
;;
|
||||||
|
"Raspberry Pi Zero W Rev"*)
|
||||||
|
board_name="rpi-zero-w"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
board_name="unknown"
|
board_name="unknown"
|
||||||
;;
|
;;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2012-2015 OpenWrt.org
|
# 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.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -56,8 +56,9 @@ define Device/Default
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Device/rpi
|
define Device/rpi
|
||||||
DEVICE_TITLE := Raspberry Pi B/B+/CM/Zero
|
DEVICE_TITLE := Raspberry Pi B/B+/CM/Zero/ZeroW
|
||||||
DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm
|
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
|
endef
|
||||||
ifeq ($(SUBTARGET),bcm2708)
|
ifeq ($(SUBTARGET),bcm2708)
|
||||||
TARGET_DEVICES += rpi
|
TARGET_DEVICES += rpi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user