Skip to content

Commit

Permalink
ARM: SAMSUNG: print CPU id on probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson authored and Kukjin Kim committed Dec 22, 2014
1 parent 97bf6af commit 1a14f53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/plat-samsung/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 1a14f53

Please sign in to comment.