zynq: fix detection of the zybo board
authorLuis Araneda <luaraneda@gmail.com>
Sun, 13 May 2018 19:55:00 +0000 (15:55 -0400)
committerJohn Crispin <john@phrozen.org>
Thu, 7 Jun 2018 07:00:49 +0000 (09:00 +0200)
The board_name was being tested for "xlnx,zynq-zybo",
but the .dts compatible string is "digilent,zynq-zybo"

Also, sorted the boards alphabetically, and added an
error message for unsupported boards

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
target/linux/zynq/base-files/etc/board.d/02_network

index ff90763..90731b6 100755 (executable)
@@ -6,9 +6,14 @@
 board_config_update
 
 case "$(board_name)" in
-       xlnx,zynq-zc702|xlnx,zynq-zed|xlnx,zynq-zybo)
-               ucidef_set_interface_lan 'eth0'
-               ;;
+digilent,zynq-zybo | \
+xlnx,zynq-zc702 | \
+xlnx,zynq-zed)
+       ucidef_set_interface_lan 'eth0'
+       ;;
+*)
+       echo "Unsupported hardware. Network interfaces not intialized"
+       ;;
 esac
 
 board_config_flush