Simon Glass | 818f91e | 2016-01-17 14:51:57 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * (C) Copyright 2001-2015 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * Joe Hershberger, National Instruments |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <miiphy.h> |
| 11 | #include "eth_internal.h" |
| 12 | |
| 13 | void eth_common_init(void) |
| 14 | { |
| 15 | bootstage_mark(BOOTSTAGE_ID_NET_ETH_START); |
| 16 | #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) || defined(CONFIG_PHYLIB) |
| 17 | miiphy_init(); |
| 18 | #endif |
| 19 | |
| 20 | #ifdef CONFIG_PHYLIB |
| 21 | phy_init(); |
| 22 | #endif |
| 23 | } |