1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2015 Freescale Semiconductor, Inc.
4  *
5  */
6 
7 #include <exports.h>
8 #include <fsl-mc/fsl_mc.h>
9 
10 DECLARE_GLOBAL_DATA_PTR;
11 
board_eth_init(struct bd_info * bis)12 int board_eth_init(struct bd_info *bis)
13 {
14 
15 #ifdef CONFIG_PHY_AQUANTIA
16 	/*
17 	 * Export functions to be used by AQ firmware
18 	 * upload application
19 	 */
20 	gd->jt->strcpy = strcpy;
21 	gd->jt->mdelay = mdelay;
22 	gd->jt->mdio_get_current_dev = mdio_get_current_dev;
23 	gd->jt->phy_find_by_mask = phy_find_by_mask;
24 	gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
25 	gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
26 #endif
27 
28 	return 0;
29 }
30 
31 #if defined(CONFIG_RESET_PHY_R)
reset_phy(void)32 void reset_phy(void)
33 {
34 	mc_env_boot();
35 }
36 #endif /* CONFIG_RESET_PHY_R */
37