From patchwork Mon Apr 26 08:24:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 95012 X-Patchwork-Delegate: khilman@deeprootsystems.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 o3Q8PUeU022648 for ; Mon, 26 Apr 2010 08:25:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751396Ab0DZIZ3 (ORCPT ); Mon, 26 Apr 2010 04:25:29 -0400 Received: from smtp.nokia.com ([192.100.105.134]:34064 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716Ab0DZIZ2 (ORCPT ); Mon, 26 Apr 2010 04:25:28 -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 o3Q8OjPj020591; Mon, 26 Apr 2010 03:25:25 -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:24 +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:23 +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 o3Q8P59l032417; Mon, 26 Apr 2010 11:25:18 +0300 From: Eduardo Valentin To: ext Kevin Hilman , ext Tony Lindgren Cc: "\\\"De-Schrijver Peter (Nokia-D/Helsinki)\\\"" , Linux-OMAP , Eduardo Valentin Subject: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID Date: Mon, 26 Apr 2010 11:24:53 +0300 Message-Id: <1272270293-18568-5-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:24.0086 (UTC) FILETIME=[047F9160: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:30 +0000 (UTC) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 75e36a5..887787d 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@ -76,6 +76,10 @@ EXPORT_SYMBOL(omap_type); /*----------------------------------------------------------------------------*/ #define OMAP_TAP_IDCODE 0x0204 +#define OMAP_TAP_PROD_ID_0 0x0208 +#define OMAP_TAP_PROD_ID_1 0x020c +#define OMAP_TAP_PROD_ID_2 0x0210 +#define OMAP_TAP_PROD_ID_3 0x0214 #define OMAP_TAP_DIE_ID_0 0x0218 #define OMAP_TAP_DIE_ID_1 0x021C #define OMAP_TAP_DIE_ID_2 0x0220 @@ -306,6 +310,7 @@ void __init omap4_check_revision(void) void __init omap3_cpuinfo(void) { + int sz; u8 rev = GET_OMAP_REVISION(); char cpu_name[16], cpu_rev[16]; @@ -375,6 +380,21 @@ void __init omap3_cpuinfo(void) OMAP3_SHOW_FEATURE(192mhz_clk); printk(")\n"); + + /* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */ + sz = strlen(system_soc_info); + snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz, + "\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n" + "\tDie ID\t: %08x %08x %08x %08x\n", + read_tap_reg(OMAP_TAP_IDCODE), + read_tap_reg(OMAP_TAP_PROD_ID_0), + read_tap_reg(OMAP_TAP_PROD_ID_1), + read_tap_reg(OMAP_TAP_PROD_ID_2), + read_tap_reg(OMAP_TAP_PROD_ID_3), + read_tap_reg(OMAP_TAP_DIE_ID_0), + read_tap_reg(OMAP_TAP_DIE_ID_1), + read_tap_reg(OMAP_TAP_DIE_ID_2), + read_tap_reg(OMAP_TAP_DIE_ID_3)); } /*