From 6c7e559864d6f3fb6c8702b51b8a55ff2d5245c7 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 6 Mar 2023 15:53:42 +0100 Subject: 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 Signed-off-by: Marek Vasut --- net/eth-uclass.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'net') 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; -- cgit v1.2.3