1 // SPDX-License-Identifier: GPL-2.0+
4 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
10 * Copyright (C) 2011 Andes Technology Corporation
15 /* CPU specific code */
21 #include <asm/cache.h>
23 #include <faraday/ftwdt010_wdt.h>
26 * cleanup_before_linux() is called just before we call linux
27 * it prepares the processor for linux
29 * we disable interrupt and caches.
31 int cleanup_before_linux(void)
35 /* turn off I/D-cache */
42 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
47 * reset to the base addr of andesboot.
48 * currently no ROM loader at addr 0.
49 * do not use reset_cpu();
51 #ifdef CONFIG_FTWDT010_WATCHDOG
53 * workaround: if we use CONFIG_HW_WATCHDOG with ftwdt010, will lead
54 * automatic hardware reset when booting Linux.
55 * Please do not use CONFIG_HW_WATCHDOG and WATCHDOG_RESET() here.
60 #endif /* CONFIG_FTWDT010_WATCHDOG */