xref: /openbmc/u-boot/arch/arm/mach-rmobile/emac.c (revision ae485b54)
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 <linux/errno.h>
11 #include <netdev.h>
12 
13 int cpu_eth_init(bd_t *bis)
14 {
15 	int ret = -ENODEV;
16 #ifdef CONFIG_SH_ETHER
17 	ret = sh_eth_initialize(bis);
18 #endif
19 	return ret;
20 }
21