public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: Priyanka Jain <priyanka.jain@nxp.com>, Peng Fan <peng.fan@nxp.com>
Cc: u-boot@lists.denx.de
Subject: [PATCH] mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute
Date: Mon,  4 Apr 2022 18:32:13 +0200	[thread overview]
Message-ID: <20220404163213.5781-1-pali@kernel.org> (raw)

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(&regs->esdhcctl, 0x00000040);
+	esdhc_write32(&regs->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


                 reply	other threads:[~2022-04-04 16:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220404163213.5781-1-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=priyanka.jain@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox