From: Robert Emanuele <rob@emanuele.us>
To: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-kernel@vger.kernel.org
Subject: Enhanced MMC/SD Card Power Control
Date: Mon, 14 Dec 2009 10:57:52 -0800 [thread overview]
Message-ID: <9f53b4330912141057n52bc9331q3089ee0fb0bcbc50@mail.gmail.com> (raw)
Greetings once again,
Over the summer I had submitted a series of patches for the atmel-mci
driver. One of these was for power control of each mci slot.
http://lists.arm.linux.org.uk/lurker/message/20090617.005438.eb1570d9.en.html
I'd like to resubmit this and enhance it slightly. The current work
I'm doing is on Atmel's AT91SAM9G45. In the patch above I include a
power control pin and the state it needs to be pulled. I'd like to
change this to two platform defined functions for power on and power
off. This way given which ever platform this is being used on that
platforn can concisely define how to move from a power on state to a
power off and vice versa.
For example, on my platform I would pull some GPIO high to turn off a
FET to the power of the slot and then change the function of all the
pins going to the card (except for the detect pin of course) to open
drains. Then on power up I would do the reverse.
Given what I have described here, where would be the most logical
place to put such code? I was assuming that it would go into the
platform configuration into the board file (board-mynewboard.c in
arch/arm/mach-at91/).
Thank you for your help and comments,
Rob
reply other threads:[~2009-12-14 18:57 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=9f53b4330912141057n52bc9331q3089ee0fb0bcbc50@mail.gmail.com \
--to=rob@emanuele.us \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®