lkml.org 
[lkml]   [2009]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 6/6] atmel-mci: Platform driver MMC slot power control
Rob Emanuele wrote:
> Add support to the at91sam9g20ek_2mmc platform (board-sam9g20ek-2slot-mmc.c) and support files for a VCC pin using the atmel-mci driver.
>
> Signed-off-by: Rob Emanuele <rob@emanuele.us>
> ---
> arch/arm/mach-at91/at91sam9260_devices.c | 2 ++
> arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c | 3 +++
> 2 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
> index c372f4f..7634632 100644
> --- a/arch/arm/mach-at91/at91sam9260_devices.c
> +++ b/arch/arm/mach-at91/at91sam9260_devices.c
> @@ -328,6 +328,8 @@ void __init at91_add_device_mci(short mmc_id, struct mci_platform_data *data)
> }
> if (data->slot[i].wp_pin)
> at91_set_gpio_input(data->slot[i].wp_pin, 1);
> + if (data->slot[i].vcc_pin)
> + at91_set_gpio_output(data->slot[i].vcc_pin, 0);
>

Can use gpio_direction_output on these.

~Ryan

--
Bluewater Systems Ltd - ARM Technology Solution Centre

Ryan Mallon Unit 5, Amuri Park
Phone: +64 3 3779127 404 Barbadoes St
Fax: +64 3 3779135 PO Box 13 889
Email: ryan@bluewatersys.com Christchurch, 8013
Web: http://www.bluewatersys.com New Zealand
Freecall Australia 1800 148 751 USA 1800 261 2934


\
 
 \ /
  Last update: 2009-06-17 03:25    [W:0.088 / U:3.400 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site