From: Rob Emanuele <poorarm@shoreis.com>
To: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Andrew Victor <avictor.za@gmail.com>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
linux-arm-kernel@lists.arm.linux.org.uk,
linux-kernel@vger.kernel.org, drzeus-mmc@drzeus.cx
Subject: [PATCH 6/6] Unified AVR32/AT91 MCI Platform Driver Support for a VCC Pin
Date: Fri, 12 Jun 2009 18:03:10 -0700 [thread overview]
Message-ID: <c8284b5b0906121803u359e6ff8y172895ca43c29aae@mail.gmail.com> (raw)
Add support to the at91sam9g20ek board and support files for a VCC pin
using the atmel-mci driver.
Please read the whole set, try it out, and comment.
Thank you,
Rob Emanuele
---
arch/arm/mach-at91/at91sam9260_devices.c | 2 ++
arch/arm/mach-at91/board-sam9g20ek.c | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c
b/arch/arm/mach-at91/at91sam9260_devices.c
index e7cc46a..fe4467e 100644
--- a/arch/arm/mach-at91/at91sam9260_devices.c
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
@@ -327,6 +327,8 @@ void __init at91_add_device_mmc(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);
switch(i) {
case 0:
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c
b/arch/arm/mach-at91/board-sam9g20ek.c
index ca70042..5b7ae06 100644
--- a/arch/arm/mach-at91/board-sam9g20ek.c
+++ b/arch/arm/mach-at91/board-sam9g20ek.c
@@ -210,8 +210,11 @@ static struct mci_platform_data __initdata ek_mmc_data = {
.slot[0] = {
#if defined(CONFIG_AT91_2MMC)
.bus_width = 4,
+ .vcc_pin = AT91_PIN_PA30,
+ .vcc_pin_act_low= 1,
#else
.bus_width = 0,
+ .vcc_pin = -ENODEV,
#endif
.detect_pin = -ENODEV,
.wp_pin = -ENODEV,
@@ -220,6 +223,7 @@ static struct mci_platform_data __initdata ek_mmc_data = {
.bus_width = 4,
.detect_pin = -ENODEV,
.wp_pin = -ENODEV,
+ .vcc_pin = -ENODEV,
},
};
--
1.6.0.4
reply other threads:[~2009-06-13 1:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=c8284b5b0906121803u359e6ff8y172895ca43c29aae@mail.gmail.com \
--to=poorarm@shoreis.com \
--cc=avictor.za@gmail.com \
--cc=drzeus-mmc@drzeus.cx \
--cc=haavard.skinnemoen@atmel.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.ferre@atmel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®