summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:45:01 -0700
committerTom Rini <trini@konsulko.com>2020-01-17 14:02:31 -0500
commit9a3b4ceb37989263e9280644912d269386b99bb7 (patch)
tree9b71bdce3ce7d4e3e7173537601044584cb6e255 /arch/sh
parent9101a5ec4a6cbcb50e037fb7287ad4e73b2d625d (diff)
downloadu-boot-9a3b4ceb37989263e9280644912d269386b99bb7.tar.gz
u-boot-9a3b4ceb37989263e9280644912d269386b99bb7.tar.xz
u-boot-9a3b4ceb37989263e9280644912d269386b99bb7.zip
common: Move reset_cpu() to the CPU header
Move this function out of common.h and into a relevant header file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/cpu/sh4/cpu.c2
-rw-r--r--arch/sh/cpu/sh4/watchdog.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index f1b8df9b0b..a8d0590d51 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
@@ -31,7 +31,7 @@ int cleanup_before_linux (void)
int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
disable_interrupts();
- reset_cpu (0);
+ reset_cpu(0);
return 0;
}
diff --git a/arch/sh/cpu/sh4/watchdog.c b/arch/sh/cpu/sh4/watchdog.c
index 7c157bc035..1de32cd419 100644
--- a/arch/sh/cpu/sh4/watchdog.c
+++ b/arch/sh/cpu/sh4/watchdog.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
+#include <cpu_func.h>
#include <asm/processor.h>
#include <asm/system.h>
#include <asm/io.h>