Skip to content
Snippets Groups Projects
Commit aad4659a authored by Abbas Raza's avatar Abbas Raza Committed by Stefano Babic
Browse files

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: default avatarAbbas Raza <Abbas_Raza@mentor.com>
cc: stefano Babic <sbabic@denx.de>
cc: Andy Fleming <afleming@gmail.com>
Acked-by: default avatarDirk Behme <dirk.behme@de.bosch.com>
Acked-by: default avatarAndrew Gabbasov <andrew_gabbasov@mentor.com>
parent 2feae93a
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment