From patchwork Mon Feb 4 11:53:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14493 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4A25323F96 for ; Mon, 4 Feb 2013 11:57:15 +0000 (UTC) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by fiordland.canonical.com (Postfix) with ESMTP id ED3B9A1877A for ; Mon, 4 Feb 2013 11:57:14 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id b13so3771672vby.5 for ; Mon, 04 Feb 2013 03:57:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=DxHXfAAi79oLMQeZdXA8/rpD0rw/epmW0L58r7DXt0A=; b=d6qgbabL/f/meyEMVf/i/tJl/aMB6q6uZwFSUANsPen58JIeZgBjfRQOnso+j+qtjO N0BQGu6cBqzyiOhzkyp4LM8JE4B8d6sX18qu3U83TMTsZCj10Z7md1rbM5Tt2MkDck49 PUHWLb4Y3OEuvm1ZdWcce4GjNSW7496mR2n5XiYvkCa28HKnG+IHvIzNqPKCHeQC8k9N FOM8Nn2prOr3fxQbUnFIeH/17Vpg6HesDagDvzKqL8uM/K1bTdDRJWReL/m6xMLZ5fkO RXMai0NMctfF8SoRla+7pfGh5gFaNjfJCoVC36tadBNBoUxYbFkvZCpfrQhJfhR6qODU nyRQ== X-Received: by 10.52.24.98 with SMTP id t2mr15772011vdf.69.1359979034497; Mon, 04 Feb 2013 03:57:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.252.8 with SMTP id zo8csp83094vec; Mon, 4 Feb 2013 03:57:14 -0800 (PST) X-Received: by 10.180.8.70 with SMTP id p6mr538021wia.8.1359979033691; Mon, 04 Feb 2013 03:57:13 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx.google.com with ESMTPS id ew8si3466830wib.86.2013.02.04.03.57.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 03:57:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.181; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f181.google.com with SMTP id hm6so1501980wib.2 for ; Mon, 04 Feb 2013 03:57:13 -0800 (PST) X-Received: by 10.194.23.37 with SMTP id j5mr34539760wjf.28.1359979033296; Mon, 04 Feb 2013 03:57:13 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id j9sm12937128wia.5.2013.02.04.03.57.11 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 03:57:12 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org, broonie@opensource.wolfsonmicro.com Cc: Marcus Cooper , Lee Jones Subject: [PATCH 44/73] regulator: ab8500: Vaux5/6 cannot be disabled on the AB8540 Date: Mon, 4 Feb 2013 11:53:59 +0000 Message-Id: <1359978868-28736-45-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359978868-28736-1-git-send-email-lee.jones@linaro.org> References: <1359978868-28736-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkoZ7A+mY5FiheOWDy9E65Ei4NuF2VA+d6sOzmFQzAmxK3gVJvqkX0VTEWeLoRySt6VJ+rk From: Marcus Cooper Add the flags to correctly configure the Vaux5/6 registers for AB8540 based platforms. Signed-off-by: Marcus Cooper Signed-off-by: Lee Jones Reviewed-by: Mattias WALLIN --- drivers/regulator/ab8500.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 2a08642..c204380 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -740,10 +740,10 @@ static struct ab8500_regulator_info /* values for CtrlVaux5 register */ .update_bank = 0x01, .update_reg = 0x55, - .update_mask = 0x08, - .update_val = 0x00, - .update_val_idle = 0x01, - .update_val_normal = 0x00, + .update_mask = 0x18, + .update_val = 0x10, + .update_val_idle = 0x18, + .update_val_normal = 0x10, .voltage_bank = 0x01, .voltage_reg = 0x55, .voltage_mask = 0x07, @@ -765,10 +765,10 @@ static struct ab8500_regulator_info /* values for CtrlVaux6 register */ .update_bank = 0x01, .update_reg = 0x56, - .update_mask = 0x08, - .update_val = 0x00, - .update_val_idle = 0x01, - .update_val_normal = 0x00, + .update_mask = 0x18, + .update_val = 0x10, + .update_val_idle = 0x18, + .update_val_normal = 0x10, .voltage_bank = 0x01, .voltage_reg = 0x56, .voltage_mask = 0x07,