* [PATCH] ARM: exynos: print CPU id on probe
@ 2014-11-25 3:08 Olof Johansson
2014-11-26 1:35 ` Kukjin Kim
0 siblings, 1 reply; 3+ messages in thread
From: Olof Johansson @ 2014-11-25 3:08 UTC (permalink / raw)
To: linux-arm-kernel
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>
---
Kukjin, please apply if you're OK with this. Thanks!
-Olof
arch/arm/plat-samsung/cpu.c | 4 ++++
1 file changed, 4 insertions(+)
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)
}
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: exynos: print CPU id on probe
2014-11-25 3:08 [PATCH] ARM: exynos: print CPU id on probe Olof Johansson
@ 2014-11-26 1:35 ` Kukjin Kim
2014-11-26 1:44 ` Olof Johansson
0 siblings, 1 reply; 3+ messages in thread
From: Kukjin Kim @ 2014-11-26 1:35 UTC (permalink / raw)
To: linux-arm-kernel
Olof Johansson wrote:
>
> 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>
> ---
>
> 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
>
> -Olof
>
> arch/arm/plat-samsung/cpu.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> 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)
> }
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: exynos: print CPU id on probe
2014-11-26 1:35 ` Kukjin Kim
@ 2014-11-26 1:44 ` Olof Johansson
0 siblings, 0 replies; 3+ messages in thread
From: Olof Johansson @ 2014-11-26 1:44 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Nov 25, 2014 at 5:35 PM, Kukjin Kim <kgene@kernel.org> wrote:
> Olof Johansson wrote:
>>
>> 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>
>> ---
>>
>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-26 1:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-25 3:08 [PATCH] ARM: exynos: print CPU id on probe Olof Johansson
2014-11-26 1:35 ` Kukjin Kim
2014-11-26 1:44 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox