Home
last modified time | relevance | path

Searched hist:c42ee367 (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/drivers/mmc/
H A Dmmc-uclass.cc42ee367 Fri Dec 29 11:00:06 CST 2017 Masahiro Yamada <yamada.masahiro@socionext.com> mmc: do not overwrite cfg->f_max if "max-frequency" if missing

mmc_of_parse() in U-Boot is a pussy helper; it sets cfg->f_max to
52MHz even if DT does not provide "max-frequency" at all. This can
overwrite cfg->f_max that may have been set to a reasonable default.

As the DT binding says, "max-frequency" is an optional property.
Do nothing if DT does not specify it. This is the behavior of
mmc_of_parse() in Linux.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>