2 * (C) Copyright 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
3 * (C) Copyright 2012 Renesas Solutions Corp.
5 * SPDX-License-Identifier: GPL-2.0+
10 #ifdef CONFIG_ARCH_CPU_INIT
11 int arch_cpu_init(void)
18 #ifndef CONFIG_SYS_DCACHE_OFF
19 void enable_caches(void)
25 #ifdef CONFIG_DISPLAY_CPUINFO
26 static u32 __rmobile_get_cpu_type(void)
30 u32 rmobile_get_cpu_type(void)
31 __attribute__((weak, alias("__rmobile_get_cpu_type")));
33 static u32 __rmobile_get_cpu_rev_integer(void)
37 u32 rmobile_get_cpu_rev_integer(void)
38 __attribute__((weak, alias("__rmobile_get_cpu_rev_integer")));
40 static u32 __rmobile_get_cpu_rev_fraction(void)
44 u32 rmobile_get_cpu_rev_fraction(void)
45 __attribute__((weak, alias("__rmobile_get_cpu_rev_fraction")));
47 /* CPU infomation table */
51 } rmobile_cpuinfo[] = {
62 int print_cpuinfo(void)
65 u32 cpu_type = rmobile_get_cpu_type();
66 for (; i < ARRAY_SIZE(rmobile_cpuinfo); i++) {
67 if (rmobile_cpuinfo[i].cpu_type == cpu_type) {
68 printf("CPU: Renesas Electronics %s rev %d.%d\n",
69 rmobile_cpuinfo[i].cpu_name,
70 rmobile_get_cpu_rev_integer(),
71 rmobile_get_cpu_rev_fraction());
77 #endif /* CONFIG_DISPLAY_CPUINFO */