aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2016-06-21 17:49:43 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2016-06-21 20:17:38 +0200
commit63cb2fb88d3c4f919a00743b1fdbed1cf977d935 (patch)
tree0483439dd4b33598fda1440686da1a9db37458f5 /target/linux/brcm2708/base-files
parenta95d64a2697d2ab1274f0128a9d536f1b01b14fb (diff)
downloadupstream-63cb2fb88d3c4f919a00743b1fdbed1cf977d935.tar.gz
upstream-63cb2fb88d3c4f919a00743b1fdbed1cf977d935.tar.bz2
upstream-63cb2fb88d3c4f919a00743b1fdbed1cf977d935.zip
brcm2708: properly detect the Raspberry Pi Zero
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/base-files')
-rw-r--r--target/linux/brcm2708/base-files/etc/diag.sh3
-rw-r--r--target/linux/brcm2708/base-files/lib/brcm2708.sh3
2 files changed, 5 insertions, 1 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"
;;