1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * RMOBILE EtherMAC initialization. 4 * 5 * Copyright (C) 2012 Renesas Solutions Corp. 6 * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> 7 */ 8 9 #include <common.h> 10 #include <net.h> 11 #include <linux/errno.h> 12 #include <netdev.h> 13 cpu_eth_init(struct bd_info * bis)14int cpu_eth_init(struct bd_info *bis) 15 { 16 int ret = -ENODEV; 17 #ifdef CONFIG_SH_ETHER 18 ret = sh_eth_initialize(bis); 19 #endif 20 return ret; 21 } 22