All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Balister <philip@balister.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [STABLE][PATCH] linux-omap 2.6.29: update mmc regulator patch
Date: Wed, 01 Apr 2009 10:31:47 -0400	[thread overview]
Message-ID: <49D37AD3.1060900@balister.org> (raw)
In-Reply-To: <1238532013-3047-1-git-send-email-k.kooi@student.utwente.nl>

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

Acked-by: Philip Balister (philip@balister.org)

Koen Kooi wrote:
> From: Koen Kooi <koen@openembedded.org>
> 
> 
> Signed-off-by: Koen Kooi <koen@openembedded.org>
> ---
>  ...add-regulator-info-to-get-the-microSD-slo.patch |   46 ++++++--------------
>  recipes/linux/linux-omap_2.6.29.bb                 |    2 +-
>  2 files changed, 14 insertions(+), 34 deletions(-)
> 
> diff --git a/recipes/linux/linux-omap-2.6.29/0001-board-ldp-add-regulator-info-to-get-the-microSD-slo.patch b/recipes/linux/linux-omap-2.6.29/0001-board-ldp-add-regulator-info-to-get-the-microSD-slo.patch
> index ddee308..49045f7 100644
> --- a/recipes/linux/linux-omap-2.6.29/0001-board-ldp-add-regulator-info-to-get-the-microSD-slo.patch
> +++ b/recipes/linux/linux-omap-2.6.29/0001-board-ldp-add-regulator-info-to-get-the-microSD-slo.patch
> @@ -1,17 +1,20 @@
> -From 0561e7124500418e913a3b91ddc09d4bd8dc5032 Mon Sep 17 00:00:00 2001
> -From: Koen Kooi <koen@beagleboard.org>
> +From 7efa7cc5b807cb840c62b5bf54bf47181c9b95a6 Mon Sep 17 00:00:00 2001
> +From: Koen Kooi <koen@openembedded.org>
>  Date: Mon, 30 Mar 2009 15:21:37 +0200
> -Subject: [PATCH] ARM: OMAP: board-ldp: add regulator info to get the microSD slot working again
> +Subject: [PATCH v2] ARM: OMAP: board-ldp: add regulator info to get the microSD slot working again
>  
>  The ldp board was left behind when other boards got updated. The ldp info was copied from the beagleboard board file and s/beagle/ldp/g
>  
> +Changes since v1:
> + * dropped vsim portion since only 4 pins are hooked up
> +
>  Signed-off-by: Koen Kooi <koen@beagleboard.org>
>  ---
> - arch/arm/mach-omap2/board-ldp.c |   55 +++++++++++++++++++++++++++++++++++++++
> - 1 files changed, 55 insertions(+), 0 deletions(-)
> + arch/arm/mach-omap2/board-ldp.c |   32 ++++++++++++++++++++++++++++++++
> + 1 files changed, 32 insertions(+), 0 deletions(-)
>  
>  diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c
> -index 30926b0..faf62f8 100644
> +index 30926b0..19a5c15 100644
>  --- a/arch/arm/mach-omap2/board-ldp.c
>  +++ b/arch/arm/mach-omap2/board-ldp.c
>  @@ -22,6 +22,7 @@
> @@ -22,7 +25,7 @@ index 30926b0..faf62f8 100644
>   #include <linux/i2c/twl4030.h>
>   
>   #include <mach/hardware.h>
> -@@ -450,7 +451,17 @@ static struct twl4030_script *twl4030_scripts[] __initdata = {
> +@@ -450,7 +451,16 @@ static struct twl4030_script *twl4030_scripts[] __initdata = {
>   	&wrst_script,
>   };
>   
> @@ -31,7 +34,6 @@ index 30926b0..faf62f8 100644
>  +	 * devices' drivers should be managing these.
>  +	 */
>  +	{ .resource = RES_VMMC1, },
> -+	{ .resource = RES_VSIM, },
>  +	{ 0, },
>  +};
>  +
> @@ -40,7 +42,7 @@ index 30926b0..faf62f8 100644
>   	.scripts	= twl4030_scripts,
>   	.size		= ARRAY_SIZE(twl4030_scripts),
>   };
> -@@ -474,6 +485,44 @@ static struct twl4030_madc_platform_data ldp_madc_data = {
> +@@ -474,6 +484,25 @@ static struct twl4030_madc_platform_data ldp_madc_data = {
>   	.irq_line	= 1,
>   };
>   
> @@ -48,10 +50,6 @@ index 30926b0..faf62f8 100644
>  +	.supply			= "vmmc",
>  +};
>  +
> -+static struct regulator_consumer_supply ldp_vsim_supply = {
> -+	.supply			= "vmmc_aux",
> -+};
> -+
>  +/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
>  +static struct regulator_init_data ldp_vmmc1 = {
>  +	.constraints = {
> @@ -67,41 +65,23 @@ index 30926b0..faf62f8 100644
>  +	.consumer_supplies	= &ldp_vmmc1_supply,
>  +};
>  +
> -+/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
> -+static struct regulator_init_data ldp_vsim = {
> -+	.constraints = {
> -+		.min_uV			= 1800000,
> -+		.max_uV			= 3000000,
> -+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
> -+					| REGULATOR_MODE_STANDBY,
> -+		.valid_ops_mask		= REGULATOR_CHANGE_VOLTAGE
> -+					| REGULATOR_CHANGE_MODE
> -+					| REGULATOR_CHANGE_STATUS,
> -+	},
> -+	.num_consumer_supplies	= 1,
> -+	.consumer_supplies	= &ldp_vsim_supply,
> -+};
> -+
>   static struct twl4030_platform_data ldp_twldata = {
>   	.irq_base	= TWL4030_IRQ_BASE,
>   	.irq_end	= TWL4030_IRQ_END,
> -@@ -483,6 +532,8 @@ static struct twl4030_platform_data ldp_twldata = {
> +@@ -483,6 +512,7 @@ static struct twl4030_platform_data ldp_twldata = {
>   	.madc		= &ldp_madc_data,
>   	.usb		= &ldp_usb_data,
>   	.power		= &sdp3430_t2scripts_data,
>  +	.vmmc1		= &ldp_vmmc1,
> -+	.vsim		= &ldp_vsim,
>   	.gpio		= &ldp_gpio_data,
>   	.keypad		= &ldp_kp_twl4030_data,
>   };
> -@@ -530,6 +581,10 @@ static void __init omap_ldp_init(void)
> +@@ -530,6 +560,8 @@ static void __init omap_ldp_init(void)
>   	omap_serial_init();
>   	usb_musb_init();
>   	twl4030_mmc_init(mmc);
>  +	/* link regulators to MMC adapters */
>  +	ldp_vmmc1_supply.dev = mmc[0].dev;
> -+	ldp_vsim_supply.dev = mmc[0].dev;
> -+	
>   }
>   
>   static void __init omap_ldp_map_io(void)
> diff --git a/recipes/linux/linux-omap_2.6.29.bb b/recipes/linux/linux-omap_2.6.29.bb
> index 86827fd..f5c20ba 100644
> --- a/recipes/linux/linux-omap_2.6.29.bb
> +++ b/recipes/linux/linux-omap_2.6.29.bb
> @@ -10,7 +10,7 @@ DEFAULT_PREFERENCE = "-1"
>  
>  SRCREV = "90e758af52ba803cba233fabee81176d99589f09"
>  
> -PR = "r1+gitr${SRCREV}"
> +PR = "r2+gitr${SRCREV}"
>  
>  SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git;protocol=git \
>  	   file://defconfig"

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]

      reply	other threads:[~2009-04-01 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31 20:40 [STABLE][PATCH] linux-omap 2.6.29: update mmc regulator patch Koen Kooi
2009-04-01 14:31 ` Philip Balister [this message]

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=49D37AD3.1060900@balister.org \
    --to=philip@balister.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /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.