blob: 3dc9e14ef8c0e9a40cf2e69c3e71f2781d889e80 [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
Simon Glassafb02152019-12-28 10:45:01 -07006#include <cpu_func.h>
Simon Glass274e0b02020-05-10 11:39:56 -06007#include <net.h>
Alexey Brodkin9aea0282014-05-21 14:39:32 +04008#include <netdev.h>
9#include <asm/io.h>
10
Harald Seiler6f14d5f2020-12-15 16:47:52 +010011void reset_cpu(void)
Alexey Brodkin9aea0282014-05-21 14:39:32 +040012{
13#define CRM_SWRESET 0xff101044
14 writel(0x1, (void *)CRM_SWRESET);
15}
16
Masahiro Yamadaf7ed78b2020-06-26 15:13:33 +090017int board_eth_init(struct bd_info *bis)
Alexey Brodkin9aea0282014-05-21 14:39:32 +040018{
19 if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
20 return 1;
21
22 return 0;
23}