[PATCHv3 0/4] Adding soc related info into /proc/cpuinfo
eduardo.valentin at nokia.com
Wed Apr 28 01:51:39 EDT 2010
And now v3 of this series. Basically a minor change wrt string manipulation.
No need to use strlen in so many places. Previous log for reference:
Here is the version 2 of this series. Now die id is protected using
same x86 protection mechanism to hide x86 product number. Besides,
a compilation Kconfig option has been added for DIE ID as well.
Here is previous PATCH 0/4 message:
This series is to continue what has been discussed several weeks ago
wrt IDCODE patch. Original patch was made by Peter and discussion is here:
So, the conclusion was that IDCODE info is useful even in production systems,
and for that debugfs is not a good choice to export it. One suggestion was to
add it under /proc/cpuinfo. However this entry nowadays exports only ARM related
So this series does the trick by extending the ARM /proc/cpuinfo to include
soc info data. There are a few ways to add a hook for soc specific data. But
I've decided to implement it via the simplest way I found. Basically it is
same thing which is done for system_rev, system_serial_low and system_serial_high.
Then, now we have system_soc_info, which is printed only if there is something
As usual, comments are welcome.
Eduardo Valentin (4):
ARM: Introduce SoC Info into /proc/cpuinfo
mach-omap2: Add SoC info data for OMAP2,3,4 into /proc/cpuinfo
mach-omap1: Add SoC info data for OMAP1 into /proc/cpuinfo
OMAP3: PM: export chip IDCODE, Production ID and Die ID
Documentation/kernel-parameters.txt | 2 +
arch/arm/include/asm/system.h | 2 +
arch/arm/kernel/setup.c | 5 +++
arch/arm/mach-omap1/id.c | 15 ++++++----
arch/arm/mach-omap2/Kconfig | 10 +++++++
arch/arm/mach-omap2/id.c | 51 ++++++++++++++++++++++++++++++----
6 files changed, 73 insertions(+), 12 deletions(-)
More information about the linux-arm-kernel