From patchwork Wed Apr 28 05:51:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 95617 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3S5pXBB005088 for ; Wed, 28 Apr 2010 05:51:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753588Ab0D1Fvc (ORCPT ); Wed, 28 Apr 2010 01:51:32 -0400 Received: from smtp.nokia.com ([192.100.122.230]:59743 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753451Ab0D1Fvc (ORCPT ); Wed, 28 Apr 2010 01:51:32 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3S5pMPw025538; Wed, 28 Apr 2010 08:51:23 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Apr 2010 08:51:22 +0300 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Apr 2010 08:51:21 +0300 Received: from manganga.research.nokia.com (esdhcp04199.research.nokia.com [172.21.41.99]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3S5pKkX001721; Wed, 28 Apr 2010 08:51:21 +0300 From: Eduardo Valentin To: linux-arm-kernel@lists.infradead.org, Linux-OMAP Cc: ext Tony Lindgren , ext Kevin Hilman , "\\\"De-Schrijver Peter (Nokia-D/Helsinki)\\\"" , santosh.shilimkar@ti.com, felipe.balbi@nokia.com, Eduardo Valentin Subject: [PATCHv3 1/4] ARM: Introduce SoC Info into /proc/cpuinfo Date: Wed, 28 Apr 2010 08:51:40 +0300 Message-Id: <1272433903-24003-2-git-send-email-eduardo.valentin@nokia.com> X-Mailer: git-send-email 1.7.0.4.361.g8b5fe.dirty In-Reply-To: <1272433903-24003-1-git-send-email-eduardo.valentin@nokia.com> References: <1272433903-24003-1-git-send-email-eduardo.valentin@nokia.com> X-OriginalArrivalTime: 28 Apr 2010 05:51:21.0836 (UTC) FILETIME=[D483A2C0:01CAE696] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 28 Apr 2010 05:51:34 +0000 (UTC) diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 4ace45e..53a9645 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h @@ -71,6 +71,8 @@ struct task_struct; extern unsigned int system_rev; extern unsigned int system_serial_low; extern unsigned int system_serial_high; +#define SYSTEM_SOC_INFO_SIZE 128 +extern char system_soc_info[SYSTEM_SOC_INFO_SIZE]; extern unsigned int mem_fclk_21285; struct pt_regs; diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index c91c77b..025d795 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -85,6 +85,9 @@ EXPORT_SYMBOL(system_serial_low); unsigned int system_serial_high; EXPORT_SYMBOL(system_serial_high); +char system_soc_info[SYSTEM_SOC_INFO_SIZE]; +EXPORT_SYMBOL(system_soc_info); + unsigned int elf_hwcap; EXPORT_SYMBOL(elf_hwcap); @@ -847,6 +850,8 @@ static int c_show(struct seq_file *m, void *v) seq_printf(m, "Revision\t: %04x\n", system_rev); seq_printf(m, "Serial\t\t: %08x%08x\n", system_serial_high, system_serial_low); + if (strlen(system_soc_info)) + seq_printf(m, "SoC Info\t: %s\n", system_soc_info); return 0; }