]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: jz4740: Add support for the JZ4780
authorAlex Smith <alex.smith@imgtec.com>
Wed, 28 Mar 2018 21:00:51 +0000 (18:00 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:33 +0000 (15:08 +0200)
commit6a78768af70fa5efe8c85f5b679babc349e699de
treedf814985c66203746b747d87f8267358a4b99111
parent6861fce620771d5f7629f2d9742a8431d932cdf0
mmc: jz4740: Add support for the JZ4780

Add support for the JZ4780 MMC controller to the jz47xx_mmc driver. There
are a few minor differences from the 4740 to the 4780 that need to be
handled, but otherwise the controllers behave the same. The IREG and IMASK
registers are expanded to 32 bits. Additionally, some error conditions are
now reported in both STATUS and IREG. Writing IREG before reading STATUS
causes the bits in STATUS to be cleared, so STATUS must be read first to
ensure we see and report error conditions correctly.

Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.co.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Kconfig
drivers/mmc/host/jz4740_mmc.c