From patchwork Mon Mar 2 07:31:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9496 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n227VXsd007758 for ; Mon, 2 Mar 2009 07:31:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753737AbZCBHbV (ORCPT ); Mon, 2 Mar 2009 02:31:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754195AbZCBHbV (ORCPT ); Mon, 2 Mar 2009 02:31:21 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:42425 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753737AbZCBHbU convert rfc822-to-8bit (ORCPT ); Mon, 2 Mar 2009 02:31:20 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id n227VCC4021896 for ; Mon, 2 Mar 2009 01:31:18 -0600 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n227VBeO005927 for ; Mon, 2 Mar 2009 13:01:11 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Mon, 2 Mar 2009 13:01:11 +0530 From: "Nayak, Rajendra" To: "linux-omap@vger.kernel.org" Date: Mon, 2 Mar 2009 13:01:09 +0530 Subject: [PATCH] OMAP3: PM: Update correct ONLP/RET values Thread-Topic: [PATCH] OMAP3: PM: Update correct ONLP/RET values Thread-Index: AcmbCNst0SGdtbztTHqZNrJ9XFQW4g== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB02FAD03A7B@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Populates the correct ONLP/RET cmd values for VDD1 and VDD2. Also removes the unneccesary bitshift logic. Applies on the latest pm branch, validated on a 3430SDP. 0x30 = 1.2V 0x1E = .975V 0x2C = 1.15V Formula used to calulate the hex values Value(in decimals)*12.5 + 600 mV. Signed-off-by: Rajendra Nayak --- arch/arm/mach-omap2/pm34xx.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) 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 Index: linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c =================================================================== --- linux-omap-2.6.orig/arch/arm/mach-omap2/pm34xx.c 2009-03-02 11:42:13.000000000 +0530 +++ linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c 2009-03-02 12:07:19.653034656 +0530 @@ -1036,16 +1036,16 @@ err2: } /* PRM_VC_CMD_VAL_0 specific bits */ -#define OMAP3430_VC_CMD_VAL0_ON (0x3 << 4) -#define OMAP3430_VC_CMD_VAL0_ONLP (0xf << 3) -#define OMAP3430_VC_CMD_VAL0_RET (0xf << 3) -#define OMAP3430_VC_CMD_VAL0_OFF (0x3 << 4) +#define OMAP3430_VC_CMD_VAL0_ON 0x30 +#define OMAP3430_VC_CMD_VAL0_ONLP 0x1E +#define OMAP3430_VC_CMD_VAL0_RET 0x1E +#define OMAP3430_VC_CMD_VAL0_OFF 0x30 /* PRM_VC_CMD_VAL_1 specific bits */ -#define OMAP3430_VC_CMD_VAL1_ON (0xB << 2) -#define OMAP3430_VC_CMD_VAL1_ONLP (0xf << 3) -#define OMAP3430_VC_CMD_VAL1_RET (0xf << 3) -#define OMAP3430_VC_CMD_VAL1_OFF (0xB << 2) +#define OMAP3430_VC_CMD_VAL1_ON 0x2C +#define OMAP3430_VC_CMD_VAL1_ONLP 0x1E +#define OMAP3430_VC_CMD_VAL1_RET 0x1E +#define OMAP3430_VC_CMD_VAL1_OFF 0x2C static void __init configure_vc(void) {--