ARM: exynos: print CPU id on probe
Subsystems (2)
PATCH 1/1 ARM: exynos: print CPU id on probe
It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now.
---
Kukjin, please apply if you're OK with this. Thanks!
-Olof
arch/arm/plat-samsung/cpu.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/plat-samsung/cpu.c +4 -0
@@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void) } samsung_cpu_rev =0 ; + +pr_info ("Samsung CPU ID: 0x%08lx\n" , samsung_cpu_id); }void __init s5p_init_cpu (void __iomem *cpuid_addr) { samsung_cpu_id =__raw_readl (cpuid_addr); samsung_cpu_rev = samsung_cpu_id &0xFF ; + +pr_info ("Samsung CPU ID: 0x%08lx\n" , samsung_cpu_id); }
Signature · 1 line
2.0.1.473.gc4d58ca
PATCH 1/1 ARM: exynos: print CPU id on probe
Quoted 11 lines · Olof Johansson
It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now.
Signed-off-by Olof Johansson <[email protected]>---
Kukjin, please apply if you're OK with this. Thanks!
Yes, why not? I'll apply, I have small concerns for exynos5800 though ;)
Thanks,
Kukjin
Quoted 27 lines
(quoted diff) +0
-1-Olof arch/arm/plat-samsung/cpu.c | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/plat-samsung/cpu.c +4
-1@@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void) } samsung_cpu_rev =0 ; + +pr_info ("Samsung CPU ID: 0x%08lx\n" , samsung_cpu_id); }void __init s5p_init_cpu (void __iomem *cpuid_addr) { samsung_cpu_id =__raw_readl (cpuid_addr); samsung_cpu_rev = samsung_cpu_id &0xFF ; + +pr_info ("Samsung CPU ID: 0x%08lx\n" , samsung_cpu_id); } --2.0.1.473.gc4d58ca
PATCH 1/1 ARM: exynos: print CPU id on probe
Quoted 7 lines · Kukjin Kim
Quoted 6 lines · Olof Johansson
It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now.
Quoted 6 lines
Quoted 5 lines
Signed-off-by Olof Johansson <[email protected]>---
Kukjin, please apply if you're OK with this. Thanks!
Yes, why not? I'll apply, I have small concerns for exynos5800 though ;)
That it reports identical to 5422? That's hardly our problem. :-)
-Olof