]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-esdhc-imx: Call mmc_of_parse()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 8 Apr 2015 13:17:44 +0000 (10:17 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 9 Apr 2015 07:14:41 +0000 (09:14 +0200)
commit8d86e4fcccf61bafe54212f6ea9fb47a455abc56
treed6b0930547d2535c3322f0dbfddc1d8f4da5e0da
parent49ba030221d23ad8e35deb66b74873b852f4d7bf
mmc: sdhci-esdhc-imx: Call mmc_of_parse()

Currently it is not possible to use 'mmc-pwrseq-simple' property with this
driver because mmc_of_parse() is never called.

mmc_of_parse() calls mmc_pwrseq_alloc() that manages MMC power sequence and
allows passing GPIOs in the devicetree to properly power/reset the Wifi
chipset.

When using mmc_of_parse() we no longer need to have custom code to request
card-detect and write-protect pins, as this can now be handled by the mmc
core.

Tested on a imx6sl-warp board where BT/Wifi is functional and also on a
imx6q-sabresd.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c