]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/s5p-common/cpu_info.c
Exynos: fix cpuinfo and cpu detecting
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / s5p-common / cpu_info.c
index 2f6c7085546af48580587d23f1847b5b09397801..16427333ac00e707cbfeab048c3b2deb0d71945d 100644 (file)
 
 /* Default is s5pc100 */
 unsigned int s5p_cpu_id = 0xC100;
+/* Default is EVT1 */
+unsigned int s5p_cpu_rev = 1;
 
 #ifdef CONFIG_ARCH_CPU_INIT
 int arch_cpu_init(void)
 {
        s5p_set_cpu_id();
 
-       s5p_clock_init();
-
        return 0;
 }
 #endif
@@ -48,8 +48,9 @@ int print_cpuinfo(void)
 {
        char buf[32];
 
-       printf("CPU:\tS5P%X@%sMHz\n",
-                       s5p_cpu_id, strmhz(buf, get_arm_clk()));
+       printf("CPU:\t%s%X@%sMHz\n",
+                       s5p_get_cpu_name(), s5p_cpu_id,
+                       strmhz(buf, get_arm_clk()));
 
        return 0;
 }