Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | ee4c349 | 2012-08-06 07:26:09 +0900 | [diff] [blame] | 2 | /* |
Marek Vasut | 1f68658 | 2024-02-27 17:05:57 +0100 | [diff] [blame] | 3 | * Renesas EtherMAC initialization. |
Nobuhiro Iwamatsu | ee4c349 | 2012-08-06 07:26:09 +0900 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2012 Renesas Solutions Corp. |
| 6 | * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> |
Nobuhiro Iwamatsu | ee4c349 | 2012-08-06 07:26:09 +0900 | [diff] [blame] | 7 | */ |
| 8 | |
Simon Glass | 274e0b0 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 9 | #include <net.h> |
Masahiro Yamada | 56a931c | 2016-09-21 11:28:55 +0900 | [diff] [blame] | 10 | #include <linux/errno.h> |
Nobuhiro Iwamatsu | ee4c349 | 2012-08-06 07:26:09 +0900 | [diff] [blame] | 11 | #include <netdev.h> |
| 12 | |
Masahiro Yamada | f7ed78b | 2020-06-26 15:13:33 +0900 | [diff] [blame] | 13 | int cpu_eth_init(struct bd_info *bis) |
Nobuhiro Iwamatsu | ee4c349 | 2012-08-06 07:26:09 +0900 | [diff] [blame] | 14 | { |
| 15 | int ret = -ENODEV; |
| 16 | #ifdef CONFIG_SH_ETHER |
| 17 | ret = sh_eth_initialize(bis); |
| 18 | #endif |
| 19 | return ret; |
| 20 | } |