All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Tero Kristo <t-kristo@ti.com>
Cc: linux-omap@vger.kernel.org, lrg@ti.com,
	broonie@opensource.wolfsonmicro.com,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Thomas Petazzoni <t-petazzoni@ti.com>
Subject: Re: [RFC 2/4] omap3beagle: Instantiate VDD1 and VDD2 regulators
Date: Fri, 8 Jul 2011 19:22:04 +0300	[thread overview]
Message-ID: <20110708162203.GC31978@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <1310140588-26078-3-git-send-email-t-kristo@ti.com>

[-- Attachment #1: Type: text/plain, Size: 2290 bytes --]

Hi,

On Fri, Jul 08, 2011 at 06:56:26PM +0300, Tero Kristo wrote:
> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> 
> Instantiate the VDD1 and VDD2 regulators and connect them to their
> respective consumers: mpu.0 for VDD1 and l3_main.0 for VDD2.
> 
> TODO:
> 
>  * As these instantiations will be identical for all OMAP3 boards,
>    find a way of sharing them throughout the different OMAP3 boards.
> 
> Signed-off-by: Thomas Petazzoni <t-petazzoni@ti.com>
> ---
>  arch/arm/mach-omap2/board-omap3beagle.c |   35 +++++++++++++++++++++++++++++++
>  1 files changed, 35 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> index 78cf5f2..6d3a266 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> @@ -24,6 +24,7 @@
>  #include <linux/input.h>
>  #include <linux/gpio_keys.h>
>  #include <linux/opp.h>
> +#include <linux/regulator/driver.h>
>  
>  #include <linux/mtd/mtd.h>
>  #include <linux/mtd/partitions.h>
> @@ -400,6 +401,38 @@ static struct regulator_init_data beagle_vpll2 = {
>  	.consumer_supplies	= beagle_vdvi_supplies,
>  };
>  
> +static struct regulator_consumer_supply beagle_vdd1_supply =

should be array.

> +	REGULATOR_SUPPLY("vcc", "mpu.0");
> +
> +static struct regulator_consumer_supply beagle_vdd2_supply =

should be array

> +	REGULATOR_SUPPLY("vcc", "l3_main.0");
> +
> +static struct regulator_init_data beagle_vdd1 = {
> +	.constraints = {
> +		.name			= "VDD1",
> +		.min_uV			= 600000,
> +		.max_uV			= 1450000,
> +		.valid_modes_mask	= REGULATOR_MODE_NORMAL
> +					| REGULATOR_MODE_STANDBY,
> +		.valid_ops_mask		= REGULATOR_CHANGE_VOLTAGE,
> +	},
> +	.num_consumer_supplies	= 1,

ARRAY_SIZE(beagle_vdd1_supply)

> +	.consumer_supplies	= &beagle_vdd1_supply,
> +};
> +
> +static struct regulator_init_data beagle_vdd2 = {
> +	.constraints = {
> +		.name			= "VDD2",
> +		.min_uV			= 600000,
> +		.max_uV			= 1450000,
> +		.valid_modes_mask	= REGULATOR_MODE_NORMAL
> +					| REGULATOR_MODE_STANDBY,
> +		.valid_ops_mask		= REGULATOR_CHANGE_VOLTAGE,
> +	},
> +	.num_consumer_supplies	= 1,

ARRAY_SIZE(beagle_vdd1_supply)

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  reply	other threads:[~2011-07-08 16:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 15:56 [RFC 0/4] TWL external controller support Tero Kristo
2011-07-08 15:56 ` [RFC 1/4] twl-regulator: extend for SMPS regulators and external controllers Tero Kristo
2011-07-08 18:26   ` Liam Girdwood
2011-07-09  1:21   ` Mark Brown
2011-07-08 15:56 ` [RFC 2/4] omap3beagle: Instantiate VDD1 and VDD2 regulators Tero Kristo
2011-07-08 16:22   ` Felipe Balbi [this message]
2011-07-08 15:56 ` [RFC 3/4] omap: attach external controller to VDD1/VDD2 Tero Kristo
2011-07-08 16:23   ` Felipe Balbi
2011-07-08 15:56 ` [RFC 4/4] OMAP3: beagle rev-c4: enable OPP6 Tero Kristo
2011-07-08 16:23   ` Koen Kooi
2011-07-08 16:25 ` [RFC 0/4] TWL external controller support Felipe Balbi
2011-07-09  1:24   ` Mark Brown
2011-07-09 10:40     ` Felipe Balbi
2011-07-09 10:56       ` Mark Brown
2011-07-11  8:23         ` Tero Kristo
2011-07-11 10:05           ` Mark Brown
2011-07-11 10:48             ` Tero Kristo
2011-07-11 12:11               ` Mark Brown
2011-07-11 13:06                 ` Tero Kristo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110708162203.GC31978@legolas.emea.dhcp.ti.com \
    --to=balbi@ti.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=t-kristo@ti.com \
    --cc=t-petazzoni@ti.com \
    --cc=thomas.petazzoni@free-electrons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.