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
int print_cpuinfo(void)
49
switch (rmobile_get_cpu_type()) {
51
printf("CPU: Renesas Electronics SH73A0 rev %d.%d\n",
52
rmobile_get_cpu_rev_integer(),
53
rmobile_get_cpu_rev_fraction());
56
printf("CPU: Renesas Electronics R8A7740 rev %d.%d\n",
57
rmobile_get_cpu_rev_integer(),
58
rmobile_get_cpu_rev_fraction());
62
printf("CPU: Renesas Electronics R8A7790 rev %d\n",
63
rmobile_get_cpu_rev_integer());
67
printf("CPU: Renesas Electronics R8A7791 rev %d\n",
68
rmobile_get_cpu_rev_integer());
72
printf("CPU: Renesas Electronics CPU rev %d.%d\n",
73
rmobile_get_cpu_rev_integer(),
74
rmobile_get_cpu_rev_fraction());
79
#endif /* CONFIG_DISPLAY_CPUINFO */