2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2015-05-28 09:23:54 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-06-28 05:33:59 +00:00
|
|
|
#include <exports.h>
|
2017-05-24 16:40:21 +00:00
|
|
|
#include <fsl-mc/fsl_mc.h>
|
2015-05-28 09:23:54 +00:00
|
|
|
|
2015-06-28 05:33:59 +00:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
2020-06-26 06:13:33 +00:00
|
|
|
int board_eth_init(struct bd_info *bis)
|
2015-05-28 09:23:54 +00:00
|
|
|
{
|
|
|
|
|
2015-06-28 05:33:59 +00:00
|
|
|
#ifdef CONFIG_PHY_AQUANTIA
|
|
|
|
/*
|
|
|
|
* Export functions to be used by AQ firmware
|
|
|
|
* upload application
|
|
|
|
*/
|
|
|
|
gd->jt->strcpy = strcpy;
|
|
|
|
gd->jt->mdelay = mdelay;
|
|
|
|
gd->jt->mdio_get_current_dev = mdio_get_current_dev;
|
|
|
|
gd->jt->phy_find_by_mask = phy_find_by_mask;
|
|
|
|
gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
|
|
|
|
gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
|
|
|
|
#endif
|
2020-03-18 14:47:40 +00:00
|
|
|
|
|
|
|
return 0;
|
2015-05-28 09:23:54 +00:00
|
|
|
}
|
2017-05-24 16:40:21 +00:00
|
|
|
|
|
|
|
#if defined(CONFIG_RESET_PHY_R)
|
|
|
|
void reset_phy(void)
|
|
|
|
{
|
|
|
|
mc_env_boot();
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_RESET_PHY_R */
|