mmc: sdhci-of-esdhc: support both BE and LE host controller
authoryangbo lu <yangbo.lu@freescale.com>
Thu, 8 Oct 2015 10:36:36 +0000 (18:36 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 15:00:08 +0000 (16:00 +0100)
commitf4932cfd22f151af19d552c0ee607b2fb9c41b53
tree50f10f60980fadde9bd4aaef3fa7ac1741c01a61
parente38eeca5c23389f9a606e4847f0f9731b2e889f2
mmc: sdhci-of-esdhc: support both BE and LE host controller

To support little endian eSDHC controller, we redefine both BE and
LE IO accessors. In the new accessors, use ioread*/iowrite* instead
of in_be32/out_be32 and will select accessors according to endian
mode in probe function.

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc.h
drivers/mmc/host/sdhci-of-esdhc.c