]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute
authorPali Rohár <pali@kernel.org>
Mon, 4 Apr 2022 16:32:13 +0000 (18:32 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/mmc/fsl_esdhc.c
include/fsl_esdhc.h

index 05a6d0ce1562abd1de5f06b404580c5479e8470c..fdf2cc290e068622df745d308daedf3c2bec5928 100644 (file)
@@ -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
 }
 
index f86afe5dad86d140fd7909d69c6d46e34b6864db..7ab1460abc6e5861f6753f9684e2b55c289e8b5e 100644 (file)
@@ -76,6 +76,7 @@
 
 /* eSDHC control register */
 #define ESDHCCTL               0x0002e40c
+#define ESDHCCTL_SNOOP         (0x00000040)
 #define ESDHCCTL_PCS           (0x00080000)
 #define ESDHCCTL_FAF           (0x00040000)