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