3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
9 * Copyright (C) 2011 Andes Technology Corporation
10 * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
11 * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
13 * SPDX-License-Identifier: GPL-2.0+
16 /* CPU specific code */
20 #include <asm/cache.h>
22 #include <faraday/ftwdt010_wdt.h>
25 * cleanup_before_linux() is called just before we call linux
26 * it prepares the processor for linux
28 * we disable interrupt and caches.
30 int cleanup_before_linux(void)
35 /* turn off I/D-cache */
47 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
52 * reset to the base addr of andesboot.
53 * currently no ROM loader at addr 0.
54 * do not use reset_cpu(0);
56 #ifdef CONFIG_FTWDT010_WATCHDOG
58 * workaround: if we use CONFIG_HW_WATCHDOG with ftwdt010, will lead
59 * automatic hardware reset when booting Linux.
60 * Please do not use CONFIG_HW_WATCHDOG and WATCHDOG_RESET() here.
65 #endif /* CONFIG_FTWDT010_WATCHDOG */