2018-05-06 17:58:06 -04:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-05-21 14:39:32 +04:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 Pierrick Hascoet, Abilis Systems
|
|
|
|
*/
|
|
|
|
|
2019-12-28 10:45:01 -07:00
|
|
|
#include <cpu_func.h>
|
2020-05-10 11:39:56 -06:00
|
|
|
#include <net.h>
|
2014-05-21 14:39:32 +04:00
|
|
|
#include <netdev.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
|
2020-12-15 16:47:52 +01:00
|
|
|
void reset_cpu(void)
|
2014-05-21 14:39:32 +04:00
|
|
|
{
|
|
|
|
#define CRM_SWRESET 0xff101044
|
|
|
|
writel(0x1, (void *)CRM_SWRESET);
|
|
|
|
}
|
|
|
|
|
2023-12-14 13:16:44 -05:00
|
|
|
/*
|
|
|
|
* Ethernet configuration
|
|
|
|
*/
|
|
|
|
#define ETH0_BASE_ADDRESS 0xFE100000
|
2020-06-26 15:13:33 +09:00
|
|
|
int board_eth_init(struct bd_info *bis)
|
2014-05-21 14:39:32 +04:00
|
|
|
{
|
|
|
|
if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|