blob: 03bca8851ae1661b8f21bfe8f1aed5f4c07ae51a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsuee4c3492012-08-06 07:26:09 +09002/*
Marek Vasut1f686582024-02-27 17:05:57 +01003 * Renesas EtherMAC initialization.
Nobuhiro Iwamatsuee4c3492012-08-06 07:26:09 +09004 *
5 * Copyright (C) 2012 Renesas Solutions Corp.
6 * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Nobuhiro Iwamatsuee4c3492012-08-06 07:26:09 +09007 */
8
Simon Glass274e0b02020-05-10 11:39:56 -06009#include <net.h>
Masahiro Yamada56a931c2016-09-21 11:28:55 +090010#include <linux/errno.h>
Nobuhiro Iwamatsuee4c3492012-08-06 07:26:09 +090011#include <netdev.h>
12
Masahiro Yamadaf7ed78b2020-06-26 15:13:33 +090013int cpu_eth_init(struct bd_info *bis)
Nobuhiro Iwamatsuee4c3492012-08-06 07:26:09 +090014{
15 int ret = -ENODEV;
16#ifdef CONFIG_SH_ETHER
17 ret = sh_eth_initialize(bis);
18#endif
19 return ret;
20}