2 * (C) Copyright 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
3 * (C) Copyright 2012 Renesas Solutions Corp.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #include <asm/arch/rmobile.h>
27 #ifdef CONFIG_ARCH_CPU_INIT
28 int arch_cpu_init(void)
35 #ifndef CONFIG_SYS_DCACHE_OFF
36 void enable_caches(void)
42 #ifdef CONFIG_DISPLAY_CPUINFO
43 static u32 get_cpu_type(void)
49 type = (id >> 8) & 0xFF;
54 static u32 get_cpu_rev(void)
60 rev = (id >> 4) & 0xF;
65 int print_cpuinfo(void)
67 switch (get_cpu_type()) {
69 printf("CPU: Renesas Electronics CPU rev %d\n", get_cpu_rev());