xref: /openbmc/u-boot/arch/riscv/cpu/ax25/cpu.c (revision ae485b54)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2017 Andes Technology Corporation
4  * Rick Chen, Andes Technology Corporation <rick@andestech.com>
5  */
6 
7 /* CPU specific code */
8 #include <common.h>
9 #include <command.h>
10 #include <watchdog.h>
11 #include <asm/cache.h>
12 
13 /*
14  * cleanup_before_linux() is called just before we call linux
15  * it prepares the processor for linux
16  *
17  * we disable interrupt and caches.
18  */
19 int cleanup_before_linux(void)
20 {
21 	disable_interrupts();
22 
23 	/* turn off I/D-cache */
24 
25 	return 0;
26 }
27 
28 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
29 {
30 	disable_interrupts();
31 	panic("ax25-ae350 wdt not support yet.\n");
32 }
33