openwrt/target/linux/imx6/base-files/etc/uci-defaults/02_network
Luka Perkov fa8e8d262e imx6: kernel: add GW5520 support
The GW5520 is a small form-factor single-board computer with the following
features:
 * 70x100mm form-factor
 * IMX6DL 800MHz SoC (IMX6Q optional)
 * 512MB 32bit DDR3 SDRAM (up to 2GB optional)
 * 256MB NAND FLASH (up to 2GB optional)
 * Gateworks System Controller
 * 2x front-panel Intel i210 GbE adapters with passive PoE support
 * 2x MiniPCIe sockets with USB support
 * 2x front-panel USB
 * 1x rear-panel full-size HDMI connector
 * 1x front-panel bi-color user LED
 * 1x front-panel user pushbutton
 * 1x rear-panel barrel jack for power
 * 1x Application connector with:
  * 2x TTL level UARTs
  * 10x TTL level Digital IO

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42148
2014-08-11 20:35:13 +00:00

35 lines
461 B
Bash

#!/bin/sh
#
# Copyright (C) 2013 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
touch /etc/config/network
. /lib/functions/uci-defaults.sh
. /lib/imx6.sh
board=$(imx6_board_name)
ucidef_set_interface_loopback
case "$board" in
"gw51xx" |\
"gw52xx")
ucidef_set_interface_lan 'eth0'
;;
"gw53xx" |\
"gw54xx" |\
"gw552x")
ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
;;
"wandboard")
ucidef_set_interface_wan 'eth0'
;;
esac
uci commit network
exit 0