blob: 47eb64dd1f80223d65b9cdceb51ec637a65f262e [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>
Simon Glass274e0b02020-05-10 11:39:56 -06008#include <net.h>
Alexey Brodkin9aea0282014-05-21 14:39:32 +04009#include <netdev.h>
10#include <asm/io.h>
11
12void reset_cpu(ulong addr)
13{
14#define CRM_SWRESET 0xff101044
15 writel(0x1, (void *)CRM_SWRESET);
16}
17
18int board_eth_init(bd_t *bis)
19{
20 if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
21 return 1;
22
23 return 0;
24}