public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Koen Kooi <koen@beagleboard.org>
Cc: linux-omap List <linux-omap@vger.kernel.org>
Subject: Re: [PATCH v3] ARM: OMAP: board-ldp: add regulator info to get the microSD slot working again
Date: Tue, 28 Apr 2009 13:07:42 -0700	[thread overview]
Message-ID: <20090428200742.GR22457@atomide.com> (raw)
In-Reply-To: <210E7912-04E6-4CF7-9970-243570FC6A6F@beagleboard.org>

* Koen Kooi <koen@beagleboard.org> [090428 12:44]:
> Seeing that a similar change to the pandora board went in, can this  
> *please* get applied as well now?

Should be there since 23rd, can you please verify?

http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=c42e73b956f346cb9a0b3afb064f69afc4761d2a

Cheers,

Tony



> Op 31 mrt 2009, om 10:53 heeft Koen Kooi het volgende geschreven:
>
>> 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 v2:
>> * fixed email address
>> 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 |   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..19a5c15 100644
>> --- a/arch/arm/mach-omap2/board-ldp.c
>> +++ b/arch/arm/mach-omap2/board-ldp.c
>> @@ -22,6 +22,7 @@
>> #include <linux/clk.h>
>> #include <linux/spi/spi.h>
>> #include <linux/spi/ads7846.h>
>> +#include <linux/regulator/machine.h>
>> #include <linux/i2c/twl4030.h>
>>
>> #include <mach/hardware.h>
>> @@ -450,7 +451,16 @@ static struct twl4030_script *twl4030_scripts[]  
>> __initdata = {
>> 	&wrst_script,
>> };
>>
>> +static const struct twl4030_resconfig ldp_resconfig[] = {
>> +	/* disable regulators that u-boot left enabled; the
>> +	 * devices' drivers should be managing these.
>> +	 */
>> +	{ .resource = RES_VMMC1, },
>> +	{ 0, },
>> +};
>> +
>> static struct twl4030_power_data sdp3430_t2scripts_data __initdata = {
>> +	.resource_config	= ldp_resconfig,
>> 	.scripts	= twl4030_scripts,
>> 	.size		= ARRAY_SIZE(twl4030_scripts),
>> };
>> @@ -474,6 +484,25 @@ static struct twl4030_madc_platform_data  
>> ldp_madc_data = {
>> 	.irq_line	= 1,
>> };
>>
>> +static struct regulator_consumer_supply ldp_vmmc1_supply = {
>> +	.supply			= "vmmc",
>> +};
>> +
>> +/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 
>> 220 mA) */
>> +static struct regulator_init_data ldp_vmmc1 = {
>> +	.constraints = {
>> +		.min_uV			= 1850000,
>> +		.max_uV			= 3150000,
>> +		.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_vmmc1_supply,
>> +};
>> +
>> static struct twl4030_platform_data ldp_twldata = {
>> 	.irq_base	= TWL4030_IRQ_BASE,
>> 	.irq_end	= TWL4030_IRQ_END,
>> @@ -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,
>> 	.gpio		= &ldp_gpio_data,
>> 	.keypad		= &ldp_kp_twl4030_data,
>> };
>> @@ -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;
>> }
>>
>> static void __init omap_ldp_map_io(void)
>> -- 
>> 1.6.2
>>
>> --
>> 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
>>
>



      reply	other threads:[~2009-04-28 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31  8:53 [PATCH v3] ARM: OMAP: board-ldp: add regulator info to get the microSD slot working again Koen Kooi
2009-04-02 18:58 ` David Brownell
2009-04-14  6:21   ` Koen Kooi
2009-04-21  7:28 ` Koen Kooi
2009-04-28 19:43 ` Koen Kooi
2009-04-28 20:07   ` Tony Lindgren [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=20090428200742.GR22457@atomide.com \
    --to=tony@atomide.com \
    --cc=koen@beagleboard.org \
    --cc=linux-omap@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox