Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Alexey Brodkin | 7f6a6db | 2014-05-21 14:39:32 +0400 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems |
Alexey Brodkin | 7f6a6db | 2014-05-21 14:39:32 +0400 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <netdev.h> |
| 8 | #include <asm/io.h> |
| 9 | |
| 10 | void reset_cpu(ulong addr) |
| 11 | { |
| 12 | #define CRM_SWRESET 0xff101044 |
| 13 | writel(0x1, (void *)CRM_SWRESET); |
| 14 | } |
| 15 | |
| 16 | int board_eth_init(bd_t *bis) |
| 17 | { |
| 18 | if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0) |
| 19 | return 1; |
| 20 | |
| 21 | return 0; |
| 22 | } |