mmc: sdhci-of-arasan: Set controller to test mode when no CD bit
authorZach Brown <zach.brown@ni.com>
Fri, 16 Sep 2016 15:01:42 +0000 (10:01 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:34 +0000 (21:31 +0200)
commit3794c542641f1a7a329f31c87927e2c5f5417670
tree73506f6e5606ea39ee945a0a3092fcf252d60743
parentae0c12cc4e4b0405ffd48368f742ba0d5a01f7f1
mmc: sdhci-of-arasan: Set controller to test mode when no CD bit

The sdhci controller on xilinx zynq devices will not function unless
the CD bit is provided. http://www.xilinx.com/support/answers/61064.html
In cases where it is impossible to provide the CD bit in hardware,
setting the controller to test mode and then setting inserted to true
will get the controller to function without the CD bit.

When the device has the property xlnx,fails-without-test-cd the driver
changes the controller to test mode and sets test inserted to true to
make the controller function.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c
drivers/mmc/host/sdhci.h