Skip to contentSkip to conversation

Exynos: fix cpuinfo and cpu detecting

PATCH New Minkyu Kang 2 participants 2 messages Apr 26, 2012 – May 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Exynos: fix cpuinfo and cpu detecting

Since Exynos architecture have new SoCs,
need to fix cpuinfo correctly.

---
 arch/arm/cpu/armv7/s5p-common/cpu_info.c |    5 ++-
 arch/arm/include/asm/arch-exynos/cpu.h   |   42 ++++++++++++++++++++----------
 arch/arm/include/asm/arch-s5pc1xx/cpu.h  |    6 ++++
 3 files changed, 37 insertions(+), 16 deletions(-)
arch/arm/cpu/armv7/s5p-common/cpu_info.c +3 -2
index 527f32d..1642733 100644
@@ -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;
 }
arch/arm/include/asm/arch-exynos/cpu.h +28 -14

63 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc1xx/cpu.h +6 -0
index 510ead4..2362b99 100644
@@ -23,6 +23,7 @@
 #ifndef _S5PC1XX_CPU_H
 #define _S5PC1XX_CPU_H
 
+#define S5P_CPU_NAME		"S5P"
 #define S5PC1XX_ADDR_BASE	0xE0000000
 
 /* S5PC100 */
@@ -71,6 +72,11 @@ static inline void s5p_set_cpu_id(void)
 	s5p_cpu_id = 0xC000 | ((s5p_cpu_id & 0x00FFF000) >> 12);
 }
 
+static inline char *s5p_get_cpu_name(void)
+{
+	return S5P_CPU_NAME;
+}
+
 #define IS_SAMSUNG_TYPE(type, id)			\
 static inline int cpu_is_##type(void)			\
 {							\
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 Exynos: fix cpuinfo and cpu detecting

Quoted 7 lines · Minkyu Kang

Since Exynos architecture have new SoCs,
need to fix cpuinfo correctly.

Quoted 6 lines

---

?arch/arm/cpu/armv7/s5p-common/cpu_info.c | ? ?5 ++-
?arch/arm/include/asm/arch-exynos/cpu.h ? | ? 42 ++++++++++++++++++++----------
?arch/arm/include/asm/arch-s5pc1xx/cpu.h ?| ? ?6 ++++

?3 files changed, 37 insertions(+), 16 deletions(-)

applied to u-boot-samsung.

Signature · 2 lines
from. prom.
www.promsoft.net