mmc: sdhci-pxav3: dt: Support "cd-gpios" property
authorChris Ball <cjb@laptop.org>
Wed, 19 Sep 2012 08:29:12 +0000 (16:29 +0800)
committerChris Ball <cjb@laptop.org>
Wed, 19 Sep 2012 08:29:12 +0000 (16:29 +0800)
commit8f63795c60ef5bc3dbfcbf19c1ac64ed79d23c62
tree073d48dd496caf00a35ab7030458288081ed4735
parent15e8a8e42966162c207bb97ed55c803bc437eeae
mmc: sdhci-pxav3: dt: Support "cd-gpios" property

Tested on OLPC XO-4/MMP3, where the card detection pin for one of
the controllers is a sideband GPIO.  The third cell in the cd-gpios
property controls whether the GPIO is active high/active low.

(Also, pass host_caps2 through from platdata to the mmc host.)

Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
[kliu5@marvell.com: Compile fix]
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-pxav3.c
include/linux/platform_data/pxa_sdhci.h