From patchwork Tue Aug 10 15:02:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 118566 X-Patchwork-Delegate: paul@pwsan.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7AEwk3R028293 for ; Tue, 10 Aug 2010 15:04:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932179Ab0HJPDJ (ORCPT ); Tue, 10 Aug 2010 11:03:09 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:57617 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932070Ab0HJPDG (ORCPT ); Tue, 10 Aug 2010 11:03:06 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o7AF32xd025930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Aug 2010 10:03:04 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o7AF2vUC023349; Tue, 10 Aug 2010 20:32:58 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id o7AF2vov005768; Tue, 10 Aug 2010 20:32:57 +0530 Received: (from x0016154@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id o7AF2vRc005766; Tue, 10 Aug 2010 20:32:57 +0530 From: Rajendra Nayak To: linux-omap@vger.kernel.org Cc: khilman@deeprootsystems.com, paul@pwsan.com, b-cousson@ti.com, Rajendra Nayak Subject: [RFC][PATCH 1/2] OMAP4: PRCM: Add prcm_mpu_base to omap_globals Date: Tue, 10 Aug 2010 20:32:55 +0530 Message-Id: <1281452576-5705-2-git-send-email-rnayak@ti.com> X-Mailer: git-send-email 1.5.6.6 In-Reply-To: <1281452576-5705-1-git-send-email-rnayak@ti.com> References: <1281452576-5705-1-git-send-email-rnayak@ti.com> 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]); Tue, 10 Aug 2010 15:04:17 +0000 (UTC) diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index c201374..4df30d0 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c @@ -35,6 +35,7 @@ #include "prm-regbits-24xx.h" static void __iomem *prm_base; +static void __iomem *prcm_mpu_base; static void __iomem *cm_base; static void __iomem *cm2_base; @@ -282,6 +283,10 @@ void __init omap2_set_globals_prcm(struct omap_globals *omap2_globals) prm_base = ioremap(omap2_globals->prm, SZ_8K); WARN_ON(!prm_base); } + if (omap2_globals->prcm_mpu) { + prcm_mpu_base = ioremap(omap2_globals->prcm_mpu, SZ_8K); + WARN_ON(!prcm_mpu_base); + } if (omap2_globals->cm) { cm_base = ioremap(omap2_globals->cm, SZ_8K); WARN_ON(!cm_base); diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 3008e71..8603a46 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c @@ -338,6 +338,7 @@ static struct omap_globals omap4_globals = { .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), .ctrl = OMAP443X_CTRL_BASE, .prm = OMAP4430_PRM_BASE, + .prcm_mpu = OMAP4430_PRCM_MPU_BASE, .cm = OMAP4430_CM_BASE, .cm2 = OMAP4430_CM2_BASE, .uart1_phys = OMAP4_UART1_BASE, diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h index 9776b41..47baf9d 100644 --- a/arch/arm/plat-omap/include/plat/common.h +++ b/arch/arm/plat-omap/include/plat/common.h @@ -48,6 +48,7 @@ struct omap_globals { unsigned long sms; /* SDRAM Memory Scheduler */ unsigned long ctrl; /* System Control Module */ unsigned long prm; /* Power and Reset Management */ + unsigned long prcm_mpu; /* Local MPU PRM */ unsigned long cm; /* Clock Management */ unsigned long cm2; unsigned long uart1_phys;