1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems
4  */
5 
6 #include <common.h>
7 #include <cpu_func.h>
8 #include <net.h>
9 #include <netdev.h>
10 #include <asm/io.h>
11 
reset_cpu(ulong addr)12 void reset_cpu(ulong addr)
13 {
14 #define CRM_SWRESET	0xff101044
15 	writel(0x1, (void *)CRM_SWRESET);
16 }
17 
board_eth_init(struct bd_info * bis)18 int board_eth_init(struct bd_info *bis)
19 {
20 	if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
21 		return 1;
22 
23 	return 0;
24 }
25