blob: e3fbbbaa8aab1d26c427e432f4806b22bf569527 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Alexey Brodkin9aea0282014-05-21 14:39:32 +04002/*
3 * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems
Alexey Brodkin9aea0282014-05-21 14:39:32 +04004 */
5
6#include <common.h>
Simon Glassafb02152019-12-28 10:45:01 -07007#include <cpu_func.h>
Alexey Brodkin9aea0282014-05-21 14:39:32 +04008#include <netdev.h>
9#include <asm/io.h>
10
11void reset_cpu(ulong addr)
12{
13#define CRM_SWRESET 0xff101044
14 writel(0x1, (void *)CRM_SWRESET);
15}
16
17int board_eth_init(bd_t *bis)
18{
19 if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
20 return 1;
21
22 return 0;
23}