aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-04-04 18:32:13 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2022-04-26 17:18:39 +0530
commit44564e79eb2eac4b38f5493748018906e7239e2e (patch)
tree76379e6dbcf530a2bb3ec5e22f62a95f25324b52
parent06ef911447fce6c3321e303e968dbb1945b23d38 (diff)
downloadu-boot-44564e79eb2eac4b38f5493748018906e7239e2e.zip
u-boot-44564e79eb2eac4b38f5493748018906e7239e2e.tar.gz
u-boot-44564e79eb2eac4b38f5493748018906e7239e2e.tar.bz2
mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute
Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
-rw-r--r--drivers/mmc/fsl_esdhc.c2
-rw-r--r--include/fsl_esdhc.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 05a6d0c..fdf2cc2 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -724,7 +724,7 @@ static void esdhc_enable_cache_snooping(struct fsl_esdhc *regs)
setbits_be32(&sysconf->sdhccr, 0x02000000);
#else
- esdhc_write32(&regs->esdhcctl, 0x00000040);
+ esdhc_write32(&regs->esdhcctl, ESDHCCTL_SNOOP);
#endif
}
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index f86afe5..7ab1460 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -76,6 +76,7 @@
/* eSDHC control register */
#define ESDHCCTL 0x0002e40c
+#define ESDHCCTL_SNOOP (0x00000040)
#define ESDHCCTL_PCS (0x00080000)
#define ESDHCCTL_FAF (0x00040000)