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