blob: ab05b57d4fb7005c15405f355e55e478dce09774 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Rick Chene76b8042017-12-26 13:55:48 +08002/*
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
Rick Chene76b8042017-12-26 13:55:48 +08005 */
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 */
19int cleanup_before_linux(void)
20{
21 disable_interrupts();
22
23 /* turn off I/D-cache */
24
25 return 0;
26}
27
28int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
29{
30 disable_interrupts();
Rick Chenb66af372018-05-29 09:54:40 +080031 panic("ax25-ae350 wdt not support yet.\n");
Rick Chene76b8042017-12-26 13:55:48 +080032}