From patchwork Tue Jul 16 07:09:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 1132467 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45nsFT16Ydz9s00 for ; Tue, 16 Jul 2019 17:18:37 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id CD016C21D65; Tue, 16 Jul 2019 07:18:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id EB3E0C21C29; Tue, 16 Jul 2019 07:18:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 15E99C21C6A; Tue, 16 Jul 2019 07:18:28 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lists.denx.de (Postfix) with ESMTPS id BAE03C21C50 for ; Tue, 16 Jul 2019 07:18:27 +0000 (UTC) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6E4FF1A0100; Tue, 16 Jul 2019 09:18:27 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id F169B1A005D; Tue, 16 Jul 2019 09:18:23 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6265A402D5; Tue, 16 Jul 2019 15:18:19 +0800 (SGT) From: Yinbo Zhu To: york.sun@nxp.com, u-boot@lists.denx.de Date: Tue, 16 Jul 2019 15:09:07 +0800 Message-Id: <20190716070912.33758-2-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190716070912.33758-1-yinbo.zhu@nxp.com> References: <20190716070912.33758-1-yinbo.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Cc: Jiafei Pan , yinbo.zhu@nxp.com, xiaobo.xie@nxp.com Subject: [U-Boot] [PATCH v1 2/7] mmc: add a Kconfig option to enable the peripheral clock support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 --- drivers/mmc/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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