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