From patchwork Tue Jul 2 11:28:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Bedia X-Patchwork-Id: 2812431 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 93CD2BF4A1 for ; Tue, 2 Jul 2013 11:29:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6234201E6 for ; Tue, 2 Jul 2013 11:29:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA66B201E5 for ; Tue, 2 Jul 2013 11:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693Ab3GBL3L (ORCPT ); Tue, 2 Jul 2013 07:29:11 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:33017 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799Ab3GBL3K (ORCPT ); Tue, 2 Jul 2013 07:29:10 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r62BSn4b000650; Tue, 2 Jul 2013 06:28:49 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r62BSnNb025296; Tue, 2 Jul 2013 06:28:49 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Tue, 2 Jul 2013 06:28:49 -0500 Received: from psplinux063.india.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r62BSdw9030121; Tue, 2 Jul 2013 06:28:47 -0500 From: Vaibhav Bedia To: , CC: , , , Vaibhav Bedia Subject: [RFC 3/9] ARM: OMAP2+: AM335X: Add a constant PRCM_PARITION for the pwrdomains Date: Tue, 2 Jul 2013 16:58:12 +0530 Message-ID: <1372764498-32503-4-git-send-email-vaibhav.bedia@ti.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1372764498-32503-1-git-send-email-vaibhav.bedia@ti.com> References: <1372764498-32503-1-git-send-email-vaibhav.bedia@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP OMAP4 style PRM, CM APIs expect the pwrdomains to specify a prcm_partition. Introduce a PRCM_PARTITION for the AM335x pwrdomains so that we can eventually consolidate the code. Signed-off-by: Vaibhav Bedia --- arch/arm/mach-omap2/powerdomains33xx_data.c | 6 ++++++ arch/arm/mach-omap2/prm33xx.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm/mach-omap2/powerdomains33xx_data.c b/arch/arm/mach-omap2/powerdomains33xx_data.c index 869adb8..646e912 100644 --- a/arch/arm/mach-omap2/powerdomains33xx_data.c +++ b/arch/arm/mach-omap2/powerdomains33xx_data.c @@ -24,6 +24,7 @@ static struct powerdomain gfx_33xx_pwrdm = { .name = "gfx_pwrdm", .voltdm = { .name = "core" }, + .prcm_partition = AM33XX_PRM_PARTITION, .prcm_offs = AM33XX_PRM_GFX_MOD, .pwrstctrl_offs = AM33XX_PM_GFX_PWRSTCTRL_OFFSET, .pwrstst_offs = AM33XX_PM_GFX_PWRSTST_OFFSET, @@ -55,6 +56,7 @@ static struct powerdomain gfx_33xx_pwrdm = { static struct powerdomain rtc_33xx_pwrdm = { .name = "rtc_pwrdm", .voltdm = { .name = "rtc" }, + .prcm_partition = AM33XX_PRM_PARTITION, .prcm_offs = AM33XX_PRM_RTC_MOD, .pwrstctrl_offs = AM33XX_PM_RTC_PWRSTCTRL_OFFSET, .pwrstst_offs = AM33XX_PM_RTC_PWRSTST_OFFSET, @@ -65,6 +67,7 @@ static struct powerdomain rtc_33xx_pwrdm = { static struct powerdomain wkup_33xx_pwrdm = { .name = "wkup_pwrdm", .voltdm = { .name = "core" }, + .prcm_partition = AM33XX_PRM_PARTITION, .prcm_offs = AM33XX_PRM_WKUP_MOD, .pwrstctrl_offs = AM33XX_PM_WKUP_PWRSTCTRL_OFFSET, .pwrstst_offs = AM33XX_PM_WKUP_PWRSTST_OFFSET, @@ -75,6 +78,7 @@ static struct powerdomain wkup_33xx_pwrdm = { static struct powerdomain per_33xx_pwrdm = { .name = "per_pwrdm", .voltdm = { .name = "core" }, + .prcm_partition = AM33XX_PRM_PARTITION, .prcm_offs = AM33XX_PRM_PER_MOD, .pwrstctrl_offs = AM33XX_PM_PER_PWRSTCTRL_OFFSET, .pwrstst_offs = AM33XX_PM_PER_PWRSTST_OFFSET, @@ -118,6 +122,7 @@ static struct powerdomain per_33xx_pwrdm = { static struct powerdomain mpu_33xx_pwrdm = { .name = "mpu_pwrdm", .voltdm = { .name = "mpu" }, + .prcm_partition = AM33XX_PRM_PARTITION, .prcm_offs = AM33XX_PRM_MPU_MOD, .pwrstctrl_offs = AM33XX_PM_MPU_PWRSTCTRL_OFFSET, .pwrstst_offs = AM33XX_PM_MPU_PWRSTST_OFFSET, @@ -161,6 +166,7 @@ static struct powerdomain mpu_33xx_pwrdm = { static struct powerdomain cefuse_33xx_pwrdm = { .name = "cefuse_pwrdm", .voltdm = { .name = "core" }, + .prcm_partition = AM33XX_PRM_PARTITION, .prcm_offs = AM33XX_PRM_CEFUSE_MOD, .pwrstctrl_offs = AM33XX_PM_CEFUSE_PWRSTCTRL_OFFSET, .pwrstst_offs = AM33XX_PM_CEFUSE_PWRSTST_OFFSET, diff --git a/arch/arm/mach-omap2/prm33xx.h b/arch/arm/mach-omap2/prm33xx.h index 9b9918d..c82b22b2 100644 --- a/arch/arm/mach-omap2/prm33xx.h +++ b/arch/arm/mach-omap2/prm33xx.h @@ -24,6 +24,7 @@ #define AM33XX_PRM_REGADDR(inst, reg) \ AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRM_BASE + (inst) + (reg)) +#define AM33XX_PRM_PARTITION 1 /* PRM instances */ #define AM33XX_PRM_OCP_SOCKET_MOD 0x0B00