]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: hi6220-dwmmc: handle clocks and resets if CONFIG_CLK and CONFIG_DM_RESET enabled
authorYang Xiwen <forbidden405@outlook.com>
Thu, 1 Feb 2024 14:05:42 +0000 (22:05 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 15 Apr 2024 07:01:15 +0000 (16:01 +0900)
commit4685d6fbe47f9aab196558334ec89c3ca7bdb642
treea011fdaf6ca6b2ed7e6a1dda23c2574a981ecc7b
parent27ba82cb6c2be7e4bb4694d52f107a75fc66ce68
mmc: hi6220-dwmmc: handle clocks and resets if CONFIG_CLK and CONFIG_DM_RESET enabled

This can avoid hardcoding a clock rate in driver. Also can enable the
clocks and deassert the resets if the pre-bootloader does not do this
for us.

Currently only enabled for Hi3798MV200.

Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/hi6220_dw_mmc.c