From: Haibo Chen Date: Fri, 11 Feb 2022 11:16:56 +0000 (+0800) Subject: mmc: fsl_esdhc_imx: remove redundant ARCH_MXC X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=45254edd9415df2923098f960b8e4d05aea24b74;p=u-boot.git mmc: fsl_esdhc_imx: remove redundant ARCH_MXC Now original fsl_esdhc.c are split as fsl_esdhc.c and fsl_esdhc_imx.c. fsl_esdhc_imx.c only cover i.MX SoC. So ARCH_MXC is redundant. Signed-off-by: Haibo Chen Reviewed-by: Marek Vasut --- diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index fcfbaa7d40..29a945ed73 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -595,16 +595,12 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock) int sdhc_clk = priv->sdhc_clk; uint clk; - if (IS_ENABLED(ARCH_MXC)) { #if IS_ENABLED(CONFIG_MX53) - /* For i.MX53 eSDHCv3, SYSCTL.SDCLKFS may not be set to 0. */ - pre_div = (regs == (struct fsl_esdhc *)MMC_SDHC3_BASE_ADDR) ? 2 : 1; + /* For i.MX53 eSDHCv3, SYSCTL.SDCLKFS may not be set to 0. */ + pre_div = (regs == (struct fsl_esdhc *)MMC_SDHC3_BASE_ADDR) ? 2 : 1; #else - pre_div = 1; + pre_div = 1; #endif - } else { - pre_div = 2; - } while (sdhc_clk / (16 * pre_div * ddr_pre_div) > clock && pre_div < 256) pre_div *= 2; @@ -1007,11 +1003,6 @@ static int esdhc_init_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) esdhc_write32(®s->dllctrl, 0x0); } -#ifndef ARCH_MXC - /* Enable cache snooping */ - esdhc_write32(®s->scr, 0x00000040); -#endif - if (IS_ENABLED(CONFIG_FSL_USDHC)) esdhc_setbits32(®s->vendorspec, VENDORSPEC_HCKEN | VENDORSPEC_IPGEN);