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