[U-Boot,v1,2/7] mmc: add a Kconfig option to enable the peripheral clock support
diff mbox series

Message ID 20190716070912.33758-2-yinbo.zhu@nxp.com
State New
Delegated to: Prabhakar Kushwaha
Headers show
Series
  • [U-Boot,v1,1/7] mmc: fsl_esdhc: Add peripheral clock support
Related show

Commit Message

Yinbo Zhu July 16, 2019, 7:09 a.m. UTC
eSDHC supports two reference clocks (platform clock and peripheral
clock). Peripheral clock which could provide higher clock frequency
is required to be used for tuning of SD UHS mode and eMMC HS200/HS400
modes.

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 drivers/mmc/Kconfig | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 93588725f2..2106a6a197 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -136,7 +136,6 @@  config MMC_HS200_SUPPORT
 	  The HS200 mode is support by some eMMC. The bus frequency is up to
 	  200MHz. This mode requires tuning the IO.
 
-
 config SPL_MMC_HS200_SUPPORT
 	bool "enable HS200 support in SPL"
 	help
@@ -667,10 +666,19 @@  config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
 
 config FSL_ESDHC
 	bool "Freescale/NXP eSDHC controller support"
+	select FSL_ESDHC_USE_PERIPHERAL_CLK if MMC_HS200_SUPPORT || MMC_UHS_SUPPORT
 	help
 	  This selects support for the eSDHC (Enhanced Secure Digital Host
 	  Controller) found on numerous Freescale/NXP SoCs.
 
+config FSL_ESDHC_USE_PERIPHERAL_CLK
+	bool "enable ESDHC peripheral clock support"
+	depends on FSL_ESDHC
+	help
+	  eSDHC supports two reference clocks (platform clock and peripheral clock).
+	  Peripheral clock which could provide higher clock frequency is required to
+	  be used for tuning of SD UHS mode and eMMC HS200/HS400 modes.
+
 config FSL_ESDHC_IMX
 	bool "Freescale/NXP i.MX eSDHC controller support"
 	help