From ebaa183ce2996c9ef2a7bae572e242a9349e5f74 Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Sun, 8 Nov 2020 20:43:34 +0800 Subject: [PATCH] mmc: sdhci-of-dwcmshc: Fix TX clock invert It should be in DWCMSHC_EMMC_DLL_TXCLK instead of DWCMSHC_EMMC_DLL_RXCLK. Change-Id: I24ffad485b64378cda42845c81f99698dd2b2edf Signed-off-by: Shawn Lin --- drivers/mmc/host/sdhci-of-dwcmshc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index fe23c77c056c..ba1735c998db 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -33,7 +33,7 @@ #define DWCMSHC_EMMC_DLL_STRBIN 0x80c #define DWCMSHC_EMMC_DLL_STATUS0 0x840 #define DWCMSHC_EMMC_DLL_START BIT(0) -#define DWCMSHC_EMMC_DLL_RXCLK_SRCSEL 29 +#define DWCMSHC_EMMC_DLL_TXCLK_SRCSEL 29 #define DWCMSHC_EMMC_DLL_START_POINT 16 #define DWCMSHC_EMMC_DLL_INC 8 #define DWCMSHC_EMMC_DLL_DLYENA BIT(27) @@ -187,8 +187,8 @@ static int rockchip_pltf_init(struct sdhci_host *host, struct dwcmshc_priv *priv /* FixMe: clk inverter? */ extra = DWCMSHC_EMMC_DLL_DLYENA | - DLL_RXCLK_NO_INVERTER << DWCMSHC_EMMC_DLL_RXCLK_SRCSEL; - sdhci_writel(host, extra, DWCMSHC_EMMC_DLL_RXCLK); + DLL_RXCLK_NO_INVERTER << DWCMSHC_EMMC_DLL_TXCLK_SRCSEL; + sdhci_writel(host, extra, DWCMSHC_EMMC_DLL_TXCLK); extra = DWCMSHC_EMMC_DLL_DLYENA | DLL_RXCLK_TAPNUM_DEFAULT |