From: Vishwanath Sripathy Subject: RE: [PATCH 03/19] omap3+: voltage: remove initial voltage Date: Sat, 19 Feb 2011 18:54:18 +0530 Message-ID: References: <1298116918-30744-1-git-send-email-nm@ti.com> <1298116918-30744-4-git-send-email-nm@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from na3sys009aog106.obsmtp.com ([74.125.149.77]:41041 "EHLO na3sys009aog106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754294Ab1BSNYX (ORCPT ); Sat, 19 Feb 2011 08:24:23 -0500 Received: by fxm9 with SMTP id 9so765670fxm.16 for ; Sat, 19 Feb 2011 05:24:21 -0800 (PST) In-Reply-To: <1298116918-30744-4-git-send-email-nm@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Nishanth Menon , linux-omap Cc: Tony Lindgren , Kevin Hilman > -----Original Message----- > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap- > owner@vger.kernel.org] On Behalf Of Nishanth Menon > Sent: Saturday, February 19, 2011 5:32 PM > To: linux-omap > Cc: Tony Lindgren; Kevin Hilman; Nishanth Menon > Subject: [PATCH 03/19] omap3+: voltage: remove initial voltage > > omap2_set_init_voltage should setup the curr_volt based on which OPP > the system is functioning at. Blindly setting a 1.2v setting in the > initial structure may not even match the default voltages stored in > the voltage table which are supported for the domain. > > For example, OMAP3430 core domain does not use 1.2v and ends up > generating a warning on the first transition. > > Signed-off-by: Nishanth Menon > --- > arch/arm/mach-omap2/voltage.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach- > omap2/voltage.c > index 12be525..280ee12 100644 > --- a/arch/arm/mach-omap2/voltage.c > +++ b/arch/arm/mach-omap2/voltage.c > @@ -863,7 +863,6 @@ static int __init > omap3_vdd_data_configure(struct omap_vdd_info *vdd) > sys_clk_speed /= 1000; > > /* Generic voltage parameters */ > - vdd->curr_volt = 1200000; > vdd->ocp_mod = OCP_MOD; > vdd->prm_irqst_reg = OMAP3_PRM_IRQSTATUS_MPU_OFFSET; > vdd->read_reg = omap3_voltage_read_reg; > @@ -1054,7 +1053,6 @@ static int __init > omap4_vdd_data_configure(struct omap_vdd_info *vdd) > sys_clk_speed /= 1000; > > /* Generic voltage parameters */ > - vdd->curr_volt = 1200000; Where do you update this parameter upon initialization? Shouldn't you read the VP register and find the actual current voltage and update this param? Vishwa > vdd->ocp_mod = OMAP4430_PRM_OCP_SOCKET_INST; > vdd->read_reg = omap4_voltage_read_reg; > vdd->write_reg = omap4_voltage_write_reg; > -- > 1.7.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html