All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: sbabic@denx.de, festevam@gmail.com
Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan <peng.fan@nxp.com>
Subject: [PATCH V5 17/44] drivers: mmc: fsl_esdhc_imx: support i.MX8ULP
Date: Sat,  7 Aug 2021 16:00:46 +0800	[thread overview]
Message-ID: <20210807080113.16020-18-peng.fan@oss.nxp.com> (raw)
In-Reply-To: <20210807080113.16020-1-peng.fan@oss.nxp.com>

From: Peng Fan <peng.fan@nxp.com>

i.MX8ULP reuse same SDHC IP as i.MX8M, so follow i.MX8M code logic.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/mmc/Kconfig         |  2 +-
 drivers/mmc/fsl_esdhc_imx.c | 12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 717ce5a62f..1569e8c44a 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -832,7 +832,7 @@ config FSL_ESDHC_IMX
 
 config FSL_USDHC
 	bool "Freescale/NXP i.MX uSDHC controller support"
-	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMXRT
+	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMXRT
 	select FSL_ESDHC_IMX
 	help
 	  This enables the Ultra Secured Digital Host Controller enhancements
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index 465d935daf..aabf39535f 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -291,7 +291,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,
 {
 	int timeout;
 	struct fsl_esdhc *regs = priv->esdhc_regs;
-#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M)
+#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M) || \
+	defined(CONFIG_IMX8ULP)
 	dma_addr_t addr;
 #endif
 	uint wml_value;
@@ -304,7 +305,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,
 
 		esdhc_clrsetbits32(&regs->wml, WML_RD_WML_MASK, wml_value);
 #ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO
-#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M)
+#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M) || \
+	defined(CONFIG_IMX8ULP)
 		addr = virt_to_phys((void *)(data->dest));
 		if (upper_32_bits(addr))
 			printf("Error found for upper 32 bits\n");
@@ -341,7 +343,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,
 		esdhc_clrsetbits32(&regs->wml, WML_WR_WML_MASK,
 					wml_value << 16);
 #ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO
-#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M)
+#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M) || \
+		defined(CONFIG_IMX8ULP)
 		addr = virt_to_phys((void *)(data->src));
 		if (upper_32_bits(addr))
 			printf("Error found for upper 32 bits\n");
@@ -406,7 +409,8 @@ static void check_and_invalidate_dcache_range
 	unsigned end = 0;
 	unsigned size = roundup(ARCH_DMA_MINALIGN,
 				data->blocks*data->blocksize);
-#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M)
+#if defined(CONFIG_S32V234) || defined(CONFIG_IMX8) || defined(CONFIG_IMX8M) || \
+	defined(CONFIG_IMX8ULP)
 	dma_addr_t addr;
 
 	addr = virt_to_phys((void *)(data->dest));
-- 
2.30.0


  parent reply	other threads:[~2021-08-07  7:30 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-07  8:00 [PATCH V5 00/44] imx: add i.MX8ULP support Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 01/44] arm: imx: add i.MX8ULP basic Kconfig option Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 02/44] arm: imx: add i.MX8ULP cpu type and helper Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 03/44] arm: imx: sys_proto: move boot mode define to common header Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 04/44] arm: imx8ulp: support print cpu info Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 05/44] imx: imx8ulp: add get reset cause Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 06/44] arm: imx: basic i.MX8ULP support Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 07/44] arm: imx8: Move container parser and image to mach-imx common folder Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 08/44] arm: imx8: Move container image header file to mach-imx Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 09/44] arm: imx: parse-container: guard included header files Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 10/44] arm: imx8ulp: add container support Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 11/44] arm: imx: move container Kconfig under mach-imx Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 12/44] driver: misc: Add MU and S400 API to communicate with Sentinel Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 13/44] net: fec_mxc: support i.MX8ULP Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 14/44] pinctrl: Add pinctrl driver for imx8ulp Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 15/44] driver: serial: fsl_lpuart: support i.MX8ULP Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 16/44] arm: imx8ulp: add clock support Peng Fan (OSS)
2021-08-07  8:00 ` Peng Fan (OSS) [this message]
2021-08-07  8:00 ` [PATCH V5 18/44] arm: imx8ulp: soc: Change to use CMC1 to get bootcfg Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 19/44] arm: imx8ulp: Enable full L2 cache in SPL Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 20/44] arm: imx8ulp: disable wdog3 Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 21/44] arm: imx8ulp: Update the reset vector in u-boot Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 22/44] drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6 Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 23/44] drivers: misc: imx8ulp: Add S400 API for image authentication Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 24/44] drivers: misc: imx8ulp: Update S400 API for release RDC Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 25/44] drivers: misc: s400_api: Update API for fuse read and write Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 26/44] arm: imx8ulp: release and configure XRDC at early phase Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 27/44] arm: imx8ulp: add rdc support Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 28/44] arm: imx8ulp: add trdc release request Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 29/44] arm: imx8ulp: release trdc and assign lpav from RTD to APD Peng Fan (OSS)
2021-08-07  8:00 ` [PATCH V5 30/44] imx8ulp: unify rdc functions Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 31/44] arm: imx8ulp: Probe the S400 MU device in arch init Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 32/44] arm: iMX8ULP: Add boot device relevant functions Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 33/44] arm: imx8ulp: Allocate DCNANO and MIPI_DSI to AD domain Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 34/44] arm: imx8ulp: add dummy imx_get_mac_from_fuse Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 35/44] arm: imx8ulp: add iomuxc support Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 36/44] driver: misc: imx8ulp: Add fuse driver for imx8ulp Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 37/44] imx8ulp: soc: correct reset cause Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 38/44] imx8ulp: Use DGO_GP5 to get boot config Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 39/44] imx8ulp: Add workaround for eMMC boot Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 40/44] imx8ulp: move struct mu_type to common header Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 41/44] imx8ulp: add upower api support Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 42/44] ddr: Add DDR driver for iMX8ULP Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 43/44] arm: dts: add i.MX8ULP dtsi Peng Fan (OSS)
2021-08-07  8:01 ` [PATCH V5 44/44] arm: imx: add i.MX8ULP EVK support Peng Fan (OSS)
2021-08-09 10:08 ` [PATCH V5 00/44] imx: add i.MX8ULP support Stefano Babic

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=20210807080113.16020-18-peng.fan@oss.nxp.com \
    --to=peng.fan@oss.nxp.com \
    --cc=festevam@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.