mmc: renesas-sdhi: Handle 16bit IP
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 8 Apr 2018 16:14:22 +0000 (18:14 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 11 Apr 2018 21:11:57 +0000 (23:11 +0200)
commit7cf7ef81ed8b57194b5c4408c05963b664d44229
tree8743f8a2d0c90bb97fdb335217bdd0d8d7e953dd
parentc769e609907ccf838801433cdb89e73972f5550b
mmc: renesas-sdhi: Handle 16bit IP

The Renesas RCar Gen2 chips have a mix of 32bit and 16bit variants
of the IP. There is no DT property which allows discerning those,
so what Linux does is it checks the size of the register area and
if it is 0x100, the IP is 16bit, otherwise the IP is 32bit. Handle
the distinction the same way.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/renesas-sdhi.c