]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: tmio: Clamp SD_SECCNT to 16bit values on 16bit IP
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Mon, 18 Mar 2019 22:43:10 +0000 (23:43 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 25 Mar 2019 19:26:53 +0000 (20:26 +0100)
commitc565b10c462376820d77e083e79a68731b29e075
tree49d26af43c575c0fbb44b8b0c72b0c9fe86c408b
parentcc8f2f3ba80a88200fc6cc91cadfd442ed9a4f4f
mmc: tmio: Clamp SD_SECCNT to 16bit values on 16bit IP

On 16bit variants of the TMIO SD IP, the SECCNT register can only be
programmed to 16bit values, while on the 32bit and 64bit variants it
can be programmed to 32bit values. The SECCNT register indicates the
maximum number of blocks in a continuous transfer. Hence, limit the
maximum continuous transfer block count to 65535 blocks on 16bit
variants of the TMIO IP and to BIT(32)-1 blocks on 32bit and 64bit
variants.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/tmio-common.c