2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2012-08-05 22:26:09 +00:00
|
|
|
/*
|
|
|
|
* RMOBILE EtherMAC initialization.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Renesas Solutions Corp.
|
|
|
|
* Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2020-05-10 17:39:56 +00:00
|
|
|
#include <net.h>
|
2016-09-21 02:28:55 +00:00
|
|
|
#include <linux/errno.h>
|
2012-08-05 22:26:09 +00:00
|
|
|
#include <netdev.h>
|
|
|
|
|
2020-06-26 06:13:33 +00:00
|
|
|
int cpu_eth_init(struct bd_info *bis)
|
2012-08-05 22:26:09 +00:00
|
|
|
{
|
|
|
|
int ret = -ENODEV;
|
|
|
|
#ifdef CONFIG_SH_ETHER
|
|
|
|
ret = sh_eth_initialize(bis);
|
|
|
|
#endif
|
|
|
|
return ret;
|
|
|
|
}
|