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