2 * Copyright (C) 2009 Samsung Electronics
3 * Minkyu Kang <mk7.kang@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/clk.h>
12 DECLARE_GLOBAL_DATA_PTR;
14 /* Default is s5pc100 */
15 unsigned int s5p_cpu_id = 0xC100;
17 unsigned int s5p_cpu_rev = 1;
19 #ifdef CONFIG_ARCH_CPU_INIT
20 int arch_cpu_init(void)
28 u32 get_device_type(void)
33 #ifdef CONFIG_DISPLAY_CPUINFO
34 int print_cpuinfo(void)
36 const char *cpu_model;
39 /* For SoC with no real CPU ID in naming convention. */
40 cpu_model = fdt_getprop(gd->fdt_blob, 0, "cpu-model", &len);
42 printf("CPU: %.*s @ ", len, cpu_model);
44 printf("CPU: %s%X @ ", s5p_get_cpu_name(), s5p_cpu_id);
46 print_freq(get_arm_clk(), "\n");