summaryrefslogtreecommitdiffstats
path: root/board/gateworks/gw_ventana/gw_ventana.c
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2016-05-24 11:03:58 -0700
committerStefano Babic <sbabic@denx.de>2016-05-31 17:26:12 +0200
commit385575bcb6013e8151fd98d80b8dc2b5bd732cfb (patch)
treedfa216f25482808188265588cc50ecca022242b1 /board/gateworks/gw_ventana/gw_ventana.c
parentfe63fcb6cafc1d5597b747dd673bf092f116b6d6 (diff)
downloadtalos-obmc-uboot-385575bcb6013e8151fd98d80b8dc2b5bd732cfb.tar.gz
talos-obmc-uboot-385575bcb6013e8151fd98d80b8dc2b5bd732cfb.zip
imx: ventana: add GW553x support
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana/gw_ventana.c')
-rw-r--r--board/gateworks/gw_ventana/gw_ventana.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index feb2df8fa1..15e4bf129a 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -267,7 +267,9 @@ int board_phy_config(struct phy_device *phydev)
int board_eth_init(bd_t *bis)
{
#ifdef CONFIG_FEC_MXC
- if (board_type != GW551x && board_type != GW552x) {
+ struct ventana_board_info *info = &ventana_info;
+
+ if (test_bit(EECONFIG_ETH0, info->config)) {
setup_iomux_enet(GP_PHY_RST);
cpu_eth_init(bis);
}
@@ -699,7 +701,9 @@ int misc_init_r(void)
setenv("model_base", str);
sprintf(fdt, "%s-%s.dtb", cputype, str);
setenv("fdt_file1", fdt);
- if (board_type != GW551x && board_type != GW552x)
+ if (board_type != GW551x &&
+ board_type != GW552x &&
+ board_type != GW553x)
str[4] = 'x';
str[5] = 'x';
str[6] = 0;
OpenPOWER on IntegriCloud