diff options
author | Tom Rini <trini@konsulko.com> | 2022-08-02 07:33:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-20 21:18:15 -0400 |
commit | 6dcca22f77c3805609b53786f8abce58f8aba9c2 (patch) | |
tree | 3ba7eef4409a3ccb3e9b97c2ff29667b5be0cc67 /board/freescale/ls1021aiot | |
parent | c39d789f49c3765d9e328f38d9bb00dbce07be0d (diff) | |
download | u-boot-6dcca22f77c3805609b53786f8abce58f8aba9c2.tar.gz u-boot-6dcca22f77c3805609b53786f8abce58f8aba9c2.tar.bz2 u-boot-6dcca22f77c3805609b53786f8abce58f8aba9c2.zip |
ls1021aqds/ls1021aiot: Remove legacy non-DM_ETH code
Now that we are about to enable DM_ETH by default, remove legacy code.
Cc: Alison Wang <alison.wang@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/freescale/ls1021aiot')
-rw-r--r-- | board/freescale/ls1021aiot/ls1021aiot.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/board/freescale/ls1021aiot/ls1021aiot.c b/board/freescale/ls1021aiot/ls1021aiot.c index 5ab03b3340..3ed6100b7c 100644 --- a/board/freescale/ls1021aiot/ls1021aiot.c +++ b/board/freescale/ls1021aiot/ls1021aiot.c @@ -109,44 +109,6 @@ int dram_init(void) return 0; } -#ifdef CONFIG_TSEC_ENET -int board_eth_init(struct bd_info *bis) -{ - struct fsl_pq_mdio_info mdio_info; - struct tsec_info_struct tsec_info[4]; - int num = 0; - -#ifdef CONFIG_TSEC1 - SET_STD_TSEC_INFO(tsec_info[num], 1); - if (is_serdes_configured(SGMII_TSEC1)) { - puts("eTSEC1 is in sgmii mode.\n"); - tsec_info[num].flags |= TSEC_SGMII; - } - num++; -#endif -#ifdef CONFIG_TSEC2 - SET_STD_TSEC_INFO(tsec_info[num], 2); - if (is_serdes_configured(SGMII_TSEC2)) { - puts("eTSEC2 is in sgmii mode.\n"); - tsec_info[num].flags |= TSEC_SGMII; - } - num++; -#endif - if (!num) { - printf("No TSECs initialized\n"); - return 0; - } - - mdio_info.regs = (struct tsec_mii_mng *)CONFIG_SYS_MDIO_BASE_ADDR; - mdio_info.name = DEFAULT_MII_NAME; - fsl_pq_mdio_init(bis, &mdio_info); - - tsec_eth_init(bis, tsec_info, num); - - return pci_eth_init(bis); -} -#endif - int board_early_init_f(void) { struct ccsr_scfg *scfg = (struct ccsr_scfg *)CONFIG_SYS_FSL_SCFG_ADDR; |