]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: mtk-sd: assign plat->cfg.f_max with a correct value
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 12 Nov 2020 08:37:07 +0000 (16:37 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 24 Jan 2021 20:39:27 +0000 (21:39 +0100)
commitcb207dca32a63b16579f4ee032a31fd3b60ca54b
tree8233cef73db1a92ea653a0df8fb1b4cea886f6cb
parent0cd67b46965286c71c8b961d3c44597fca5c0f0f
mmc: mtk-sd: assign plat->cfg.f_max with a correct value

Currently this driver does not set the value of plat->cfg.f_max, which
results in that MMC framework will always run at the lowest frequency.

This patch sets plat->cfg.f_max to the maximum allowed frequency, which
equals to the source clock frequency.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/mmc/mtk-sd.c