Exynos: fix cpuinfo and cpu detecting
Subsystems (2)
PATCH 1/1 Exynos: fix cpuinfo and cpu detecting
Since Exynos architecture have new SoCs,
need to fix cpuinfo correctly.
Signed-off-by Minkyu Kang <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
Tested-by Jaehoon Chung <[email protected]>
Cc Chander Kashyap <[email protected]>
--- 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
@@ -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
@@ -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
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.Signed-off-by Minkyu Kang <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Tested-by Jaehoon Chung <[email protected]>Cc Chander Kashyap <[email protected]>
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