* Enhanced MMC/SD Card Power Control
@ 2009-12-14 18:57 Robert Emanuele
0 siblings, 0 replies; only message in thread
From: Robert Emanuele @ 2009-12-14 18:57 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-14 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-14 18:57 Enhanced MMC/SD Card Power Control Robert Emanuele
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®