From patchwork Wed May 5 08:42:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 97014 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 o458fPB9026907 for ; Wed, 5 May 2010 08:42:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933821Ab0EEIlc (ORCPT ); Wed, 5 May 2010 04:41:32 -0400 Received: from smtp.nokia.com ([192.100.122.233]:37647 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933833Ab0EEIl3 (ORCPT ); Wed, 5 May 2010 04:41:29 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o458fCAb028253; Wed, 5 May 2010 11:41:20 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 May 2010 11:41:10 +0300 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 May 2010 11:41:10 +0300 Received: from manganga.research.nokia.com (esdhcp04199.research.nokia.com [172.21.41.99]) by mgw-da01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o458f1LE016327; Wed, 5 May 2010 11:41:05 +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: [RESEND PATCHv3 1/4] ARM: Introduce SoC Info into /proc/cpuinfo Date: Wed, 5 May 2010 11:42:05 +0300 Message-Id: <1273048928-6105-2-git-send-email-eduardo.valentin@nokia.com> X-Mailer: git-send-email 1.7.0.4.361.g8b5fe.dirty In-Reply-To: <1273048928-6105-1-git-send-email-eduardo.valentin@nokia.com> References: <1273048928-6105-1-git-send-email-eduardo.valentin@nokia.com> X-OriginalArrivalTime: 05 May 2010 08:41:10.0945 (UTC) FILETIME=[B6968910:01CAEC2E] 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, 05 May 2010 08:42:38 +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; }