Rick Chen | e76b804 | 2017-12-26 13:55:48 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 Andes Technology Corporation |
| 3 | * Rick Chen, Andes Technology Corporation <rick@andestech.com> |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | /* CPU specific code */ |
| 9 | #include <common.h> |
| 10 | #include <command.h> |
| 11 | #include <watchdog.h> |
| 12 | #include <asm/cache.h> |
| 13 | |
| 14 | /* |
| 15 | * cleanup_before_linux() is called just before we call linux |
| 16 | * it prepares the processor for linux |
| 17 | * |
| 18 | * we disable interrupt and caches. |
| 19 | */ |
| 20 | int cleanup_before_linux(void) |
| 21 | { |
| 22 | disable_interrupts(); |
| 23 | |
| 24 | /* turn off I/D-cache */ |
| 25 | |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| 30 | { |
| 31 | disable_interrupts(); |
| 32 | panic("nx25-ae250 wdt not support yet.\n"); |
| 33 | } |