]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: tmio: add new TMIO_MMC_HAVE_HIGH_REG flags
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 20 Nov 2013 08:31:06 +0000 (00:31 -0800)
committerChris Ball <cjb@laptop.org>
Thu, 12 Dec 2013 01:43:34 +0000 (20:43 -0500)
commit0681a464441f151d50f5f0f1b4f277af31269978
tree8ecb845ac6555c73b9aefc0e7336d09d6ea2ec5f
parentf6ffee3f78b6275e3d386e2db7177abb99824682
mmc: tmio: add new TMIO_MMC_HAVE_HIGH_REG flags

The accessibility checking method to the higher register was added by
69d1fe18e92afb (mmc: tmio: only access registers above 0xff, if available)
But, it doesn't care 32bit register.  It is impossible to calculate it
from the resource size, since there is 16/32 bit register IP (e.g. VERSION
is located on 0xe2 if 16bit register, but it is located on 0x1c4 if 32bit
register).

This patch adds new TMIO_MMC_HAVE_HIGH_REG flags, tmio_mmc driver has it,
and sh_mobile_sdhi doesn't have it today.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.c
drivers/mmc/host/tmio_mmc_pio.c
include/linux/mfd/tmio.h