]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit - arch/arm/mach-omap2/board-omap2evm.c
hsmmc gpio updates
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 7 Nov 2008 05:15:30 +0000 (21:15 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 7 Nov 2008 19:51:08 +0000 (11:51 -0800)
commit1ebacbfba809c558dcc05ecc752e26a8c1314ca9
tree0043606c24459c08ddf8b24f8ee87fa50298df70
parentf7429fd378a29cf6947c2613e0fd6e6e36165167
hsmmc gpio updates

Rework card detect GPIO handling in the twl4030 MMC glue:  drive
it *only* from the hsmmc_info passed; remove most of remaining
"we know we're always a twl4030 GPIO" logic.

Add write-protect switch detection support to that glue.  Stub
in a not-present WP GPIO into most boards.  (Beagle's is real.)

Teach the hsmmc driver how to use the card detect and writeprotect
methods, and move some data structure init earlier so that when IRQs
come in, more of the data used by their handlers is initialized.

Verified on Beagle (WP, card detect events) and Overo (boots, both
card and wlan are seen).  Beagle behaves fully, and is the model
to follow for the common case where the TWL4030 gpio-0 card detect
magic is used.

Most hsmmc boards need to list what GPIOs they use with MMC...

Note that supporting card detect and writeprotect GPIOs on a
second MMC slot, or using the MMC3 controller, requires some
interface updates that aren't part of this patch.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-3430sdp.c
arch/arm/mach-omap2/board-ldp.c
arch/arm/mach-omap2/board-omap2evm.c
arch/arm/mach-omap2/board-omap3beagle.c
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap3pandora.c
arch/arm/mach-omap2/board-overo.c
arch/arm/mach-omap2/mmc-twl4030.c
arch/arm/mach-omap2/mmc-twl4030.h
drivers/mmc/host/omap_hsmmc.c