]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/mmc/sunxi_mmc.c
mmc: compile out erase and write mmc commands if write operations are not enabled
[people/ms/u-boot.git] / drivers / mmc / sunxi_mmc.c
index a76e763bfd4fa6eb91f61cca3c22c9924812d5a2..4edb4be46c819295e99917e75c143cae489c7258 100644 (file)
@@ -167,7 +167,7 @@ static int mmc_set_mod_clk(struct sunxi_mmc_priv *priv, unsigned int hz)
        if (new_mode) {
 #ifdef CONFIG_MMC_SUNXI_HAS_NEW_MODE
                val = CCM_MMC_CTRL_MODE_SEL_NEW;
-               writel(SUNXI_MMC_NTSR_MODE_SEL_NEW, &priv->reg->ntsr);
+               setbits_le32(&priv->reg->ntsr, SUNXI_MMC_NTSR_MODE_SEL_NEW);
 #endif
        } else {
                val = CCM_MMC_CTRL_OCLK_DLY(oclk_dly) |