* [PATCH] mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute
@ 2022-04-04 16:32 Pali Rohár
0 siblings, 0 replies; only message in thread
From: Pali Rohár @ 2022-04-04 16:32 UTC (permalink / raw)
To: Priyanka Jain, Peng Fan; +Cc: u-boot
Signed-off-by: Pali Rohár <pali@kernel.org>
---
drivers/mmc/fsl_esdhc.c | 2 +-
include/fsl_esdhc.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 05a6d0ce1562..fdf2cc290e06 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(®s->esdhcctl, 0x00000040);
+ esdhc_write32(®s->esdhcctl, ESDHCCTL_SNOOP);
#endif
}
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index f86afe5dad86..7ab1460abc6e 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)
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-04 16:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-04 16:32 [PATCH] mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute Pali Rohár
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox