uboot/arch/sh/cpu/sh3/cpu.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0+
   2/*
   3 * (C) Copyright 2007
   4 * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
   5 *
   6 * (C) Copyright 2007
   7 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
   8 */
   9
  10#include <common.h>
  11#include <command.h>
  12#include <asm/processor.h>
  13
  14int checkcpu(void)
  15{
  16        puts("CPU: SH3\n");
  17        return 0;
  18}
  19
  20int cpu_init(void)
  21{
  22        return 0;
  23}
  24
  25int cleanup_before_linux(void)
  26{
  27        disable_interrupts();
  28        return 0;
  29}
  30
  31int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  32{
  33        disable_interrupts();
  34        reset_cpu(0);
  35        return 0;
  36}
  37
  38void flush_cache(unsigned long addr, unsigned long size)
  39{
  40
  41}
  42
  43void icache_enable(void)
  44{
  45}
  46
  47void icache_disable(void)
  48{
  49}
  50
  51int icache_status(void)
  52{
  53        return 0;
  54}
  55
  56void dcache_enable(void)
  57{
  58}
  59
  60void dcache_disable(void)
  61{
  62}
  63
  64int dcache_status(void)
  65{
  66        return 0;
  67}
  68