From patchwork Wed Aug 31 15:11:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 1116852 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7VFCsSw015725 for ; Wed, 31 Aug 2011 15:12:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756321Ab1HaPMd (ORCPT ); Wed, 31 Aug 2011 11:12:33 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:41194 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756556Ab1HaPLu convert rfc822-to-8bit (ORCPT ); Wed, 31 Aug 2011 11:11:50 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7VFBorl005021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 31 Aug 2011 10:11:50 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep33.itg.ti.com (8.13.7/8.13.8) with ESMTP id p7VFBomj025330 for ; Wed, 31 Aug 2011 10:11:50 -0500 (CDT) Received: from dnce72.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7VFBm4E023878 for ; Wed, 31 Aug 2011 10:11:49 -0500 (CDT) thread-index: Acxn8E4/+WzU266OQh+spIyOXFMK/g== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657 Received: from localhost.localdomain (172.24.88.11) by dnce72.ent.ti.com (137.167.131.87) with Microsoft SMTP Server (TLS) id 8.3.106.1; Wed, 31 Aug 2011 17:11:48 +0200 From: Tero Kristo To: Subject: [PATCHv5 2/4] omap: voltage: added mapping from voltagedomains to processor devices Date: Wed, 31 Aug 2011 18:11:16 +0300 Message-ID: <1314803478-15634-3-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1314803478-15634-1-git-send-email-t-kristo@ti.com> References: <1314803478-15634-1-git-send-email-t-kristo@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-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 31 Aug 2011 15:12:56 +0000 (UTC) This is needed so that SMPS regulators can be properly mapped to corresponding processor devices. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.h | 2 ++ arch/arm/mach-omap2/voltagedomains3xxx_data.c | 2 ++ arch/arm/mach-omap2/voltagedomains44xx_data.c | 3 +++ 3 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h index b4c6259..bcbf0c0 100644 --- a/arch/arm/mach-omap2/voltage.h +++ b/arch/arm/mach-omap2/voltage.h @@ -53,6 +53,7 @@ struct omap_vfsm_instance { /** * struct voltagedomain - omap voltage domain global structure. * @name: Name of the voltage domain which can be used as a unique identifier. + * @proc_dev: Name of the associated processor device / hwmod. * @scalable: Whether or not this voltage domain is scalable * @node: list_head linking all voltage domains * @pwrdm_node: list_head linking all powerdomains in this voltagedomain @@ -63,6 +64,7 @@ struct omap_vfsm_instance { */ struct voltagedomain { char *name; + char *proc_dev; bool scalable; struct list_head node; struct list_head pwrdm_list; diff --git a/arch/arm/mach-omap2/voltagedomains3xxx_data.c b/arch/arm/mach-omap2/voltagedomains3xxx_data.c index b0d0ae1..28f1908 100644 --- a/arch/arm/mach-omap2/voltagedomains3xxx_data.c +++ b/arch/arm/mach-omap2/voltagedomains3xxx_data.c @@ -45,6 +45,7 @@ static const struct omap_vfsm_instance omap3_vdd2_vfsm = { static struct voltagedomain omap3_voltdm_mpu = { .name = "mpu_iva", + .proc_dev = "mpu.0", .scalable = true, .read = omap3_prm_vcvp_read, .write = omap3_prm_vcvp_write, @@ -56,6 +57,7 @@ static struct voltagedomain omap3_voltdm_mpu = { static struct voltagedomain omap3_voltdm_core = { .name = "core", + .proc_dev = "l3_main.0", .scalable = true, .read = omap3_prm_vcvp_read, .write = omap3_prm_vcvp_write, diff --git a/arch/arm/mach-omap2/voltagedomains44xx_data.c b/arch/arm/mach-omap2/voltagedomains44xx_data.c index c4584e9..10c1d66 100644 --- a/arch/arm/mach-omap2/voltagedomains44xx_data.c +++ b/arch/arm/mach-omap2/voltagedomains44xx_data.c @@ -46,6 +46,7 @@ static const struct omap_vfsm_instance omap4_vdd_core_vfsm = { static struct voltagedomain omap4_voltdm_mpu = { .name = "mpu", + .proc_dev = "mpu.0", .scalable = true, .read = omap4_prm_vcvp_read, .write = omap4_prm_vcvp_write, @@ -57,6 +58,7 @@ static struct voltagedomain omap4_voltdm_mpu = { static struct voltagedomain omap4_voltdm_iva = { .name = "iva", + .proc_dev = "iva.0", .scalable = true, .read = omap4_prm_vcvp_read, .write = omap4_prm_vcvp_write, @@ -68,6 +70,7 @@ static struct voltagedomain omap4_voltdm_iva = { static struct voltagedomain omap4_voltdm_core = { .name = "core", + .proc_dev = "l3_main_1.0", .scalable = true, .read = omap4_prm_vcvp_read, .write = omap4_prm_vcvp_write,