diff options
author | Marek Vasut <marex@denx.de> | 2023-03-06 15:53:42 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2023-03-30 13:47:03 +0200 |
commit | 6c7e559864d6f3fb6c8702b51b8a55ff2d5245c7 (patch) | |
tree | 8ee52135ca515b60db48b62f9329c53d185caa5d /net | |
parent | ecb1c37a7b64e239ee4da2d7f832ce498f439b73 (diff) | |
download | u-boot-6c7e559864d6f3fb6c8702b51b8a55ff2d5245c7.tar.gz u-boot-6c7e559864d6f3fb6c8702b51b8a55ff2d5245c7.tar.bz2 u-boot-6c7e559864d6f3fb6c8702b51b8a55ff2d5245c7.zip |
net: Pull board_interface_eth_init() into common code
Move the board_interface_eth_init() into common ethernet uclass code,
since this function could be shared by multiple drivers.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth-uclass.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index b01a910938..c393600fab 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -49,6 +49,13 @@ struct eth_uclass_priv { /* eth_errno - This stores the most recent failure code from DM functions */ static int eth_errno; +/* board-specific Ethernet Interface initializations. */ +__weak int board_interface_eth_init(struct udevice *dev, + phy_interface_t interface_type) +{ + return 0; +} + static struct eth_uclass_priv *eth_get_uclass_priv(void) { struct uclass *uc; |