]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: dwmmc: Change designware MMC 'clksel' callback function to return status
authorSiew Chin Lim <elly.siew.chin.lim@intel.com>
Thu, 24 Dec 2020 10:21:03 +0000 (18:21 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 15 Jan 2021 09:48:36 +0000 (17:48 +0800)
commit25d4a36180e051cc2cd3686aaf8d577bb846b1c0
treef0611d062687e25e4d47aa8d84ff2a69bf71261b
parentcb7b03e720cf760b77a394ff5f5c2d28495d89e6
mmc: dwmmc: Change designware MMC 'clksel' callback function to return status

Change 'clksel' callback function to allow the code to return a
status.

This patch is a preparation for enabling Arm-Trusted-Firmware (ATF)
in Intel SoC FPGA. This patch does not change functionality.

When using Arm-Trusted-Firmware (ATF) in Intel SoC FPGA, the MMC clock
related register is secure register which is required to be written
via SMC/PCSI call. It is possible that U-Boot fail to write the
register if there is unexpected error between U-Boot and ATF.
As a result, there maybe signal integrity on MMC connection due to
clock. So, the code should reports error to user when 'clksel' fail.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
drivers/mmc/ca_dw_mmc.c
drivers/mmc/dw_mmc.c
drivers/mmc/exynos_dw_mmc.c
drivers/mmc/nexell_dw_mmc.c
drivers/mmc/socfpga_dw_mmc.c
include/dwmmc.h