diff options
author | Olof Johansson <olof@lixom.net> | 2014-11-26 01:43:35 -0500 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2014-12-22 10:19:52 -0500 |
commit | 1a14f53271aee500da0ed450ff62ce848213c60a (patch) | |
tree | 76b8ba1ffc3ec5bb3822ccf4109059b1d1a8e9ca | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
ARM: SAMSUNG: 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.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
-rw-r--r-- | arch/arm/plat-samsung/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/cpu.c b/arch/arm/plat-samsung/cpu.c index 360618ee39e5..71333bb61013 100644 --- a/arch/arm/plat-samsung/cpu.c +++ b/arch/arm/plat-samsung/cpu.c | |||
@@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void) | |||
40 | } | 40 | } |
41 | 41 | ||
42 | samsung_cpu_rev = 0; | 42 | samsung_cpu_rev = 0; |
43 | |||
44 | pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); | ||
43 | } | 45 | } |
44 | 46 | ||
45 | void __init s5p_init_cpu(void __iomem *cpuid_addr) | 47 | void __init s5p_init_cpu(void __iomem *cpuid_addr) |
46 | { | 48 | { |
47 | samsung_cpu_id = __raw_readl(cpuid_addr); | 49 | samsung_cpu_id = __raw_readl(cpuid_addr); |
48 | samsung_cpu_rev = samsung_cpu_id & 0xFF; | 50 | samsung_cpu_rev = samsung_cpu_id & 0xFF; |
51 | |||
52 | pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); | ||
49 | } | 53 | } |