summaryrefslogtreecommitdiff
path: root/target/linux/brcm2708/base-files
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-03-05 21:16:07 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2017-03-09 08:47:41 +0100
commit4a405ac8f956b725de037744d62497f93bba6080 (patch)
treee558375debf43301fec40beddad072de25d3ec5f /target/linux/brcm2708/base-files
parente091e8951d2672d472deba8079d6569f3fec8566 (diff)
downloadmtk-20170518-4a405ac8f956b725de037744d62497f93bba6080.zip
mtk-20170518-4a405ac8f956b725de037744d62497f93bba6080.tar.gz
mtk-20170518-4a405ac8f956b725de037744d62497f93bba6080.tar.bz2
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>
Diffstat (limited to 'target/linux/brcm2708/base-files')
-rwxr-xr-xtarget/linux/brcm2708/base-files/etc/board.d/02_network3
-rw-r--r--target/linux/brcm2708/base-files/etc/diag.sh3
-rw-r--r--target/linux/brcm2708/base-files/lib/brcm2708.sh3
3 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/brcm2708/base-files/etc/board.d/02_network b/target/linux/brcm2708/base-files/etc/board.d/02_network
index 21e86f4..9486a6a 100755
--- a/target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/target/linux/brcm2708/base-files/etc/board.d/02_network
@@ -18,6 +18,9 @@ rpi-b |\
rpi-b-plus)
ucidef_set_interface_lan "eth0"
;;
+rpi-zero-w)
+ ucidef_set_interface_lan "wlan0"
+ ;;
esac
board_config_flush
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh
index 010a623..36c5cd7 100644
--- a/target/linux/brcm2708/base-files/etc/diag.sh
+++ b/target/linux/brcm2708/base-files/etc/diag.sh
@@ -13,7 +13,8 @@ set_state() {
;;
rpi-b |\
rpi-cm |\
- rpi-zero)
+ rpi-zero |\
+ rpi-zero-w)
status_led="led0"
;;
esac
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index cebec64..81f123f 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -28,6 +28,9 @@ brcm2708_detect() {
"Raspberry Pi Zero Rev"*)
board_name="rpi-zero"
;;
+ "Raspberry Pi Zero W Rev"*)
+ board_name="rpi-zero-w"
+ ;;
*)
board_name="unknown"
;;