mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	Now that DM_ETH is enabled by default, there is no point in keeping the non-DM_ETH code which initialized the ethernet interfaces. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
		
			
				
	
	
		
			37 lines
		
	
	
		
			717 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			717 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright 2015 Freescale Semiconductor, Inc.
 | |
|  *
 | |
|  */
 | |
| 
 | |
| #include <exports.h>
 | |
| #include <fsl-mc/fsl_mc.h>
 | |
| 
 | |
| DECLARE_GLOBAL_DATA_PTR;
 | |
| 
 | |
| int board_eth_init(struct bd_info *bis)
 | |
| {
 | |
| 
 | |
| #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
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| #if defined(CONFIG_RESET_PHY_R)
 | |
| void reset_phy(void)
 | |
| {
 | |
| 	mc_env_boot();
 | |
| }
 | |
| #endif /* CONFIG_RESET_PHY_R */
 |