Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
rick | f1113c9 | 2017-05-18 14:37:53 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 5 | * Marius Groeger <mgroeger@sysgo.de> |
| 6 | * |
| 7 | * (C) Copyright 2002 |
| 8 | * Gary Jennejohn, DENX Software Engineering, <gj@denx.de> |
| 9 | * |
| 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> |
rick | f1113c9 | 2017-05-18 14:37:53 +0800 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | /* CPU specific code */ |
| 16 | #include <common.h> |
| 17 | #include <command.h> |
Simon Glass | 1d91ba7 | 2019-11-14 12:57:37 -0700 | [diff] [blame^] | 18 | #include <cpu_func.h> |
rick | f1113c9 | 2017-05-18 14:37:53 +0800 | [diff] [blame] | 19 | #include <watchdog.h> |
| 20 | #include <asm/cache.h> |
| 21 | |
| 22 | #include <faraday/ftwdt010_wdt.h> |
| 23 | |
| 24 | /* |
| 25 | * cleanup_before_linux() is called just before we call linux |
| 26 | * it prepares the processor for linux |
| 27 | * |
| 28 | * we disable interrupt and caches. |
| 29 | */ |
| 30 | int cleanup_before_linux(void) |
| 31 | { |
| 32 | disable_interrupts(); |
| 33 | |
| 34 | /* turn off I/D-cache */ |
| 35 | cache_flush(); |
| 36 | icache_disable(); |
| 37 | dcache_disable(); |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| 42 | { |
| 43 | disable_interrupts(); |
| 44 | panic("AE3XX wdt not support yet.\n"); |
| 45 | } |