From 63cb2fb88d3c4f919a00743b1fdbed1cf977d935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 21 Jun 2016 17:49:43 +0200 Subject: [PATCH] brcm2708: properly detect the Raspberry Pi Zero MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/base-files/etc/diag.sh | 3 ++- target/linux/brcm2708/base-files/lib/brcm2708.sh | 3 +++ target/linux/brcm2708/image/Makefile | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh index de21bcd8aa..2a866e4339 100644 --- a/target/linux/brcm2708/base-files/etc/diag.sh +++ b/target/linux/brcm2708/base-files/etc/diag.sh @@ -7,7 +7,8 @@ set_state() { case "$(brcm2708_board_name)" in rpi-b |\ - rpi-cm) + rpi-cm |\ + rpi-zero) status_led="led0" ;; rpi-b-plus |\ diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh index 5a59a2826d..ab7a23da96 100644 --- a/target/linux/brcm2708/base-files/lib/brcm2708.sh +++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh @@ -18,6 +18,9 @@ brcm2708_detect() { "Raspberry Pi Compute Module Rev"*) board_name="rpi-cm" ;; + "Raspberry Pi Zero Rev"*) + board_name="rpi-zero" + ;; "Raspberry Pi 2 Model B Rev"*) board_name="rpi-2-b" ;; diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index 269e0159c9..6916a2b4ae 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -54,7 +54,7 @@ endef DEVICE_VARS += DEVICE_DTS 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 endef ifeq ($(SUBTARGET),bcm2708)