]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/sh/cpu/sh2/cpu.c
2 * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3 * Copyright (C) 2008 Renesas Solutions Corp.
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/processor.h>
13 #define STBCR4 0xFFFE040C
14 #define cmt_clock_enable() do {\
15 writeb(readb(STBCR4) & ~0x04, STBCR4);\
17 #define scif0_enable() do {\
18 writeb(readb(STBCR4) & ~0x80, STBCR4);\
20 #define scif3_enable() do {\
21 writeb(readb(STBCR4) & ~0x10, STBCR4);\
26 #if defined(CONFIG_SH2A)
37 #if defined(CONFIG_CONS_SCIF3)
42 /* CMT clock enable */
47 int cleanup_before_linux(void)
53 int do_reset(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
60 void flush_cache(unsigned long addr
, unsigned long size
)
65 void icache_enable(void)
69 void icache_disable(void)
73 int icache_status(void)
78 void dcache_enable(void)
82 void dcache_disable(void)
86 int dcache_status(void)