]> git.ipfire.org Git - people/ms/u-boot.git/blame - net/eth_common.c
net: Move common init into a new eth_common.c file
[people/ms/u-boot.git] / net / eth_common.c
CommitLineData
818f91eb
SG
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
13void 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}