blob: cb9bce0cf23b907179dc5d63ffc958af4d9dba8a [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu2d610842012-08-06 07:26:09 +09002/*
3 * RMOBILE EtherMAC initialization.
4 *
5 * Copyright (C) 2012 Renesas Solutions Corp.
6 * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Nobuhiro Iwamatsu2d610842012-08-06 07:26:09 +09007 */
8
9#include <common.h>
Simon Glass90526e92020-05-10 11:39:56 -060010#include <net.h>
Masahiro Yamada1221ce42016-09-21 11:28:55 +090011#include <linux/errno.h>
Nobuhiro Iwamatsu2d610842012-08-06 07:26:09 +090012#include <netdev.h>
13
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090014int cpu_eth_init(struct bd_info *bis)
Nobuhiro Iwamatsu2d610842012-08-06 07:26:09 +090015{
16 int ret = -ENODEV;
17#ifdef CONFIG_SH_ETHER
18 ret = sh_eth_initialize(bis);
19#endif
20 return ret;
21}