From patchwork Wed Mar 27 15:21:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 15701 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 88CB623E66 for ; Wed, 27 Mar 2013 15:22:01 +0000 (UTC) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by fiordland.canonical.com (Postfix) with ESMTP id 3B2F5A1824F for ; Wed, 27 Mar 2013 15:22:01 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id jz10so4162666veb.19 for ; Wed, 27 Mar 2013 08:22:00 -0700 (PDT) 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 :x-gm-message-state; bh=3cEYAdMnk4EjRcE0wDZUDWG3XGWoWgmRR+VDMb6Go1Q=; b=hOY+5bka9UYW+P8JBLijFcQErmR/tnAsJQadrAaBDFPVXWm6KTAp406tdS31GlGujJ GL/RGVhPs7mlzIq2HaMIyI7cvvbl4/uaZI1+ecPg/PyHyk8aglwef7kYQERgari1WW7a YX2ftR3KrfWu2l5AoD0uxHaLDuUI+e43n+4Gh+pmBgwS7CWBfZC14FaJUYKDj/GPoyY2 wZZzHc/U4AegEiPogri93kolBPVnI7WE080ZR2ZdI+oy0MLQj3VCMEr9d3dofyipm6fK euk4M/6HknZ1w1WK5ZDWoa8tMbpz+GoOc4yBKGX9YhTpDMXRVnBv8Zp9/o27lzF4+wiQ LM4g== X-Received: by 10.52.76.103 with SMTP id j7mr20467832vdw.90.1364397720747; Wed, 27 Mar 2013 08:22:00 -0700 (PDT) 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.59.4.204 with SMTP id cg12csp120651ved; Wed, 27 Mar 2013 08:22:00 -0700 (PDT) X-Received: by 10.204.165.140 with SMTP id i12mr8152089bky.128.1364397719371; Wed, 27 Mar 2013 08:21:59 -0700 (PDT) Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]) by mx.google.com with ESMTPS id t43si33125409eeg.240.2013.03.27.08.21.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Mar 2013 08:21:59 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4013:c01::232 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:4013:c01::232; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:4013:c01::232 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) smtp.mail=fabio.baltieri@linaro.org Received: by mail-ea0-f178.google.com with SMTP id o10so341777eaj.37 for ; Wed, 27 Mar 2013 08:21:58 -0700 (PDT) X-Received: by 10.14.182.137 with SMTP id o9mr56507182eem.13.1364397718683; Wed, 27 Mar 2013 08:21:58 -0700 (PDT) Received: from localhost ([2a01:2003:1:1e91:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id m46sm31937801eeo.16.2013.03.27.08.21.50 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 27 Mar 2013 08:21:57 -0700 (PDT) From: Fabio Baltieri To: Linus Walleij , Srinidhi Kasagar Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Baltieri Subject: [PATCH] ARM: ux500: update V-INTCORE constraints Date: Wed, 27 Mar 2013 16:21:34 +0100 Message-Id: <1364397694-14126-1-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.1.3 X-Gm-Message-State: ALoCoQmmH/H9BhOAc9wz2fcYzoIybpRqEeSe7iOJHPW5HdC8HAbJKr1a99bWhxp9mDoqRujKq64E Update V-INTCORE regulator constraints to allow voltage and configuration changes from consumer drivers. Signed-off-by: Fabio Baltieri --- Hi Linus, this patch adds the regulators bits I'm missing for ux500-musb patches. Without this I just get a runtime warning like: V-INTCORE: operation not allowed but the driver works anyway and there are no build dependencies, so I think this can safely go in the arm-soc tree on its own, and the whole thing should work happily in -next. Thanks, Fabio arch/arm/mach-ux500/board-mop500-regulators.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index 2a17bc5..0a428db 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c @@ -392,7 +392,15 @@ struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { [AB8500_LDO_INTCORE] = { .constraints = { .name = "V-INTCORE", - .valid_ops_mask = REGULATOR_CHANGE_STATUS, + .min_uV = 1250000, + .max_uV = 1350000, + .input_uV = 1800000, + .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | + REGULATOR_CHANGE_STATUS | + REGULATOR_CHANGE_MODE | + REGULATOR_CHANGE_DRMS, + .valid_modes_mask = REGULATOR_MODE_NORMAL | + REGULATOR_MODE_IDLE, }, .num_consumer_supplies = ARRAY_SIZE(ab8500_vintcore_consumers), .consumer_supplies = ab8500_vintcore_consumers,