summaryrefslogtreecommitdiffstats
path: root/board/ti/ks2_evm/board.c
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2018-10-31 16:21:41 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2018-11-05 10:42:00 -0600
commitaf0cf2178b043983a29f51e61e28feac4cf3b1d0 (patch)
tree45def9cfef79c51230160edbc5b49ba53fc7c7ce /board/ti/ks2_evm/board.c
parent6a256a8ed4cc6d330c4be2c32a6fbfee2fa4f641 (diff)
downloadu-boot-af0cf2178b043983a29f51e61e28feac4cf3b1d0.tar.gz
u-boot-af0cf2178b043983a29f51e61e28feac4cf3b1d0.tar.xz
u-boot-af0cf2178b043983a29f51e61e28feac4cf3b1d0.zip
drivers: net: keystone_net: drop non dm code
Networking support for all TI K2 boards converted to use DM model and CONFIG_DM_ETH enabled in all corresponding defconfig files, hence drop unused non DM K2 networking code. Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Diffstat (limited to 'board/ti/ks2_evm/board.c')
-rw-r--r--board/ti/ks2_evm/board.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index d81c8e621f..72709c0e41 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -66,59 +66,6 @@ int board_init(void)
return 0;
}
-#ifdef CONFIG_DRIVER_TI_KEYSTONE_NET
-#ifndef CONFIG_DM_ETH
-int get_eth_env_param(char *env_name)
-{
- char *env;
- int res = -1;
-
- env = env_get(env_name);
- if (env)
- res = simple_strtol(env, NULL, 0);
-
- return res;
-}
-
-int board_eth_init(bd_t *bis)
-{
- int j;
- int res;
- int port_num;
- char link_type_name[32];
-
- if (cpu_is_k2g())
- writel(KS2_ETHERNET_RGMII, KS2_ETHERNET_CFG);
-
- /* By default, select PA PLL clock as PA clock source */
-#ifndef CONFIG_SOC_K2G
- if (psc_enable_module(KS2_LPSC_PA))
- return -1;
-#endif
- if (psc_enable_module(KS2_LPSC_CPGMAC))
- return -1;
- if (psc_enable_module(KS2_LPSC_CRYPTO))
- return -1;
-
- if (cpu_is_k2e() || cpu_is_k2l())
- pll_pa_clk_sel();
-
- port_num = get_num_eth_ports();
-
- for (j = 0; j < port_num; j++) {
- sprintf(link_type_name, "sgmii%d_link_type", j);
- res = get_eth_env_param(link_type_name);
- if (res >= 0)
- eth_priv_cfg[j].sgmii_link_type = res;
-
- keystone2_emac_initialize(&eth_priv_cfg[j]);
- }
-
- return 0;
-}
-#endif
-#endif
-
#ifdef CONFIG_SPL_BUILD
void spl_board_init(void)
{