]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: dw_mmc: Extract divider update to a separate function
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:11 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
commit454fda956cc3eab0667a6b32acdec185c61bc160
treeb40b8fc0ecedea0cb78beb5815b7e9fb70de8e58
parent1db6dd1feffa0cd3c64b87489f4773ac9f2bfcbf
mmc: dw_mmc: Extract divider update to a separate function

Extract the clock divider update into dwmci_update_div() function. It's
a procedure recommended in TRM, so it's better to keep it in a dedicated
function to make the code clearer.

While at it also extract the clock control code into a separate routine
to avoid code duplication in dwmci_setup_bus().

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/dw_mmc.c