diff options
author | Tim Harvey <tharvey@gateworks.com> | 2024-06-20 15:24:44 -0700 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2024-06-24 09:23:06 -0300 |
commit | 6888c934e70c4855a1e1fd6f78bd2e1c0e9ecea1 (patch) | |
tree | 92409fffde79e26e604cc16007753acc280ac6f5 /board | |
parent | 8ffd7fb0df6953d8baacef4706f50ca002c519e7 (diff) | |
download | u-boot-6888c934e70c4855a1e1fd6f78bd2e1c0e9ecea1.tar.gz u-boot-6888c934e70c4855a1e1fd6f78bd2e1c0e9ecea1.tar.bz2 u-boot-6888c934e70c4855a1e1fd6f78bd2e1c0e9ecea1.zip |
board: gateworks: venice: Simplify Ethernet initialization
With DM enabled, there is no need for board code to initialize
the Ethernet interfaces.
Specifically board_interface_eth_init will handle the configuration of
GPR1.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/gateworks/venice/venice.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index 3080ff20cb..d4c2212149 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -45,22 +45,6 @@ int board_fit_config_name_match(const char *path) return -1; } -static int __maybe_unused setup_fec(void) -{ - struct iomuxc_gpr_base_regs *gpr = - (struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR; - -#ifndef CONFIG_IMX8MP - /* Use 125M anatop REF_CLK1 for ENET1, not from external */ - clrsetbits_le32(&gpr->gpr[1], 0x2000, 0); -#else - /* Enable RGMII TX clk output */ - setbits_le32(&gpr->gpr[1], BIT(22)); -#endif - - return 0; -} - #if (IS_ENABLED(CONFIG_NET)) int board_phy_config(struct phy_device *phydev) { @@ -91,9 +75,6 @@ int board_init(void) { venice_eeprom_init(1); - if (IS_ENABLED(CONFIG_FEC_MXC)) - setup_fec(); - return 0; } |