blob: eb7d1290813476608d0fc17e69b0ac2f31f68265 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +04002/*
3 * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +04004 */
5
Simon Glass9a3b4ce2019-12-28 10:45:01 -07006#include <cpu_func.h>
Simon Glass90526e92020-05-10 11:39:56 -06007#include <net.h>
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +04008#include <netdev.h>
9#include <asm/io.h>
10
Harald Seiler35b65dd2020-12-15 16:47:52 +010011void reset_cpu(void)
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +040012{
13#define CRM_SWRESET 0xff101044
14 writel(0x1, (void *)CRM_SWRESET);
15}
16
Tom Rini28388f42023-12-14 13:16:44 -050017/*
18 * Ethernet configuration
19 */
20#define ETH0_BASE_ADDRESS 0xFE100000
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090021int board_eth_init(struct bd_info *bis)
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +040022{
23 if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
24 return 1;
25
26 return 0;
27}