brcm2708: properly detect the Raspberry Pi Zero
[librecmc/librecmc.git] / target / linux / brcm2708 / base-files / lib / brcm2708.sh
index 13c1aa953bba90b1646f6474c76d4f38c94683d9..ab7a23da966631160003308d183c4b80edd0e319 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2015 OpenWrt.org
+# Copyright (C) 2015-2016 OpenWrt.org
 
 ifname=""
 
@@ -11,15 +11,22 @@ brcm2708_detect() {
        "Raspberry Pi Model B Rev"*)
                board_name="rpi-b"
                ;;
+       "Raspberry Pi Model B Plus Rev"* |\
        "Raspberry Pi Model B+ Rev"*)
                board_name="rpi-b-plus"
                ;;
        "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"
                ;;
+       "Raspberry Pi 3 Model B Rev"*)
+               board_name="rpi-3-b"
+               ;;
        *)
                board_name="unknown"
                ;;