Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Alexey Brodkin | 9aea028 | 2014-05-21 14:39:32 +0400 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems |
Alexey Brodkin | 9aea028 | 2014-05-21 14:39:32 +0400 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | afb0215 | 2019-12-28 10:45:01 -0700 | [diff] [blame] | 7 | #include <cpu_func.h> |
Simon Glass | 274e0b0 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 8 | #include <net.h> |
Alexey Brodkin | 9aea028 | 2014-05-21 14:39:32 +0400 | [diff] [blame] | 9 | #include <netdev.h> |
| 10 | #include <asm/io.h> |
| 11 | |
| 12 | void reset_cpu(ulong addr) |
| 13 | { |
| 14 | #define CRM_SWRESET 0xff101044 |
| 15 | writel(0x1, (void *)CRM_SWRESET); |
| 16 | } |
| 17 | |
Masahiro Yamada | f7ed78b | 2020-06-26 15:13:33 +0900 | [diff] [blame] | 18 | int board_eth_init(struct bd_info *bis) |
Alexey Brodkin | 9aea028 | 2014-05-21 14:39:32 +0400 | [diff] [blame] | 19 | { |
| 20 | if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0) |
| 21 | return 1; |
| 22 | |
| 23 | return 0; |
| 24 | } |