From patchwork Mon Apr 26 08:24:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 95011 X-Patchwork-Delegate: tony@atomide.com 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 o3Q8M2hn021890 for ; Mon, 26 Apr 2010 08:25:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751312Ab0DZIZ1 (ORCPT ); Mon, 26 Apr 2010 04:25:27 -0400 Received: from smtp.nokia.com ([192.100.105.134]:34059 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716Ab0DZIZ1 (ORCPT ); Mon, 26 Apr 2010 04:25:27 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3Q8OjPh020591; Mon, 26 Apr 2010 03:25:24 -0500 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 26 Apr 2010 11:25:18 +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); Mon, 26 Apr 2010 11:25:17 +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 o3Q8P59i032417; Mon, 26 Apr 2010 11:25:13 +0300 From: Eduardo Valentin To: ext Kevin Hilman , ext Tony Lindgren Cc: "\\\"De-Schrijver Peter (Nokia-D/Helsinki)\\\"" , Linux-OMAP , Eduardo Valentin Subject: [PATCH 1/4] ARM: Introduce SoC Info into /proc/cpuinfo Date: Mon, 26 Apr 2010 11:24:50 +0300 Message-Id: <1272270293-18568-2-git-send-email-eduardo.valentin@nokia.com> X-Mailer: git-send-email 1.7.0.4.361.g8b5fe.dirty In-Reply-To: <1272270293-18568-1-git-send-email-eduardo.valentin@nokia.com> References: <1272270293-18568-1-git-send-email-eduardo.valentin@nokia.com> X-OriginalArrivalTime: 26 Apr 2010 08:25:18.0368 (UTC) FILETIME=[01171200:01CAE51A] 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]); Mon, 26 Apr 2010 08:25:28 +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; }