mirror of https://github.com/hak5/openwrt-owl.git
brcm2708: properly detect the Raspberry Pi Zero
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>owl
parent
a95d64a269
commit
63cb2fb88d
|
@ -7,7 +7,8 @@
|
||||||
set_state() {
|
set_state() {
|
||||||
case "$(brcm2708_board_name)" in
|
case "$(brcm2708_board_name)" in
|
||||||
rpi-b |\
|
rpi-b |\
|
||||||
rpi-cm)
|
rpi-cm |\
|
||||||
|
rpi-zero)
|
||||||
status_led="led0"
|
status_led="led0"
|
||||||
;;
|
;;
|
||||||
rpi-b-plus |\
|
rpi-b-plus |\
|
||||||
|
|
|
@ -18,6 +18,9 @@ brcm2708_detect() {
|
||||||
"Raspberry Pi Compute Module Rev"*)
|
"Raspberry Pi Compute Module Rev"*)
|
||||||
board_name="rpi-cm"
|
board_name="rpi-cm"
|
||||||
;;
|
;;
|
||||||
|
"Raspberry Pi Zero Rev"*)
|
||||||
|
board_name="rpi-zero"
|
||||||
|
;;
|
||||||
"Raspberry Pi 2 Model B Rev"*)
|
"Raspberry Pi 2 Model B Rev"*)
|
||||||
board_name="rpi-2-b"
|
board_name="rpi-2-b"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -54,7 +54,7 @@ endef
|
||||||
DEVICE_VARS += DEVICE_DTS
|
DEVICE_VARS += DEVICE_DTS
|
||||||
|
|
||||||
define Device/rpi
|
define Device/rpi
|
||||||
DEVICE_TITLE := Raspberry Pi B/B+/CM
|
DEVICE_TITLE := Raspberry Pi B/B+/CM/Zero
|
||||||
DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm
|
DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm
|
||||||
endef
|
endef
|
||||||
ifeq ($(SUBTARGET),bcm2708)
|
ifeq ($(SUBTARGET),bcm2708)
|
||||||
|
|
Loading…
Reference in New Issue