]> code.ossystems Code Review - bsp/u-boot.git/commit
mmc: i.MX6: fsl_esdhc: Define maximum bus width supported by a board
authorAbbas Raza <Abbas_Raza@mentor.com>
Mon, 25 Mar 2013 09:13:34 +0000 (09:13 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 9 Apr 2013 14:14:40 +0000 (11:14 -0300)
commit5ff8be9b6236d49950458274bd354db6a1e72ac0
tree56a2dc578106c70b0d874ed15a1b0299dde6250b
parent8e69c51078aabeebf3674af2b027bd28b8d4aaa3
mmc: i.MX6: fsl_esdhc: Define maximum bus width supported by a board

Maximum bus width supported by some i.MX6 boards is not 8bit like
others. In case where both host controller and card support 8bit transfers,
they agree to communicate on 8bit interface while some boards support only 4bit interface.
Due to this reason the mmc 8bit default mode fails on these boards. To rectify this,
define maximum bus width supported by these boards (4bit). If max_bus_width is not
defined, it is 0 by default and 8bit width support will be enabled in host
capabilities otherwise host capabilities are modified accordingly.

It is tested with a MMCplus card.

Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com>
cc: stefano Babic <sbabic@denx.de>
cc: Andy Fleming <afleming@gmail.com>
Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
Acked-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
board/boundary/nitrogen6x/nitrogen6x.c
board/freescale/mx6qsabrelite/mx6qsabrelite.c
board/wandboard/wandboard.c
drivers/mmc/fsl_esdhc.c
include/fsl_esdhc.h