]> Git Repo - J-u-boot.git/blame - board/abilis/tb100/tb100.c
common: Move reset_cpu() to the CPU header
[J-u-boot.git] / board / abilis / tb100 / tb100.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
7f6a6db6
AB
2/*
3 * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems
7f6a6db6
AB
4 */
5
6#include <common.h>
657afb14 7#include <cpu_func.h>
7f6a6db6
AB
8#include <netdev.h>
9#include <asm/io.h>
10
11void reset_cpu(ulong addr)
12{
13#define CRM_SWRESET 0xff101044
14 writel(0x1, (void *)CRM_SWRESET);
15}
16
17int board_eth_init(bd_t *bis)
18{
19 if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
20 return 1;
21
22 return 0;
23}
This page took 0.319792 seconds and 4 git commands to generate.