diff mbox series

[v2,19/21] mmc: fsl_esdhc: add compatible for fsl, imxrt-usdhc

Message ID 20200110145148.82233-4-giulio.benetti@benettiengineering.com
State Accepted
Commit 6a63a873b75ade3ce7bf2f7a801e46bd5e5eb6b6
Headers show
Series Add i.MXRT family support | expand

Commit Message

Giulio Benetti Jan. 10, 2020, 2:51 p.m. UTC
Add compatible "fsl,imxrt-usdhc" to make mmc working on i.MXRT platforms
with CONFIG_DM_MMC=y.

Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
---
 drivers/mmc/Kconfig         | 2 +-
 drivers/mmc/fsl_esdhc_imx.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

Comments

Stefano Babic Jan. 15, 2020, 12:47 p.m. UTC | #1
> Add compatible "fsl,imxrt-usdhc" to make mmc working on i.MXRT platforms
> with CONFIG_DM_MMC=y.
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
Lukasz Majewski Jan. 28, 2020, 8:49 a.m. UTC | #2
Hi Giulio,

> Add compatible "fsl,imxrt-usdhc" to make mmc working on i.MXRT
> platforms with CONFIG_DM_MMC=y.
> 
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
> ---
>  drivers/mmc/Kconfig         | 2 +-
>  drivers/mmc/fsl_esdhc_imx.c | 3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
> index 85fd1906bd..2bc19dd56b 100644
> --- a/drivers/mmc/Kconfig
> +++ b/drivers/mmc/Kconfig
> @@ -732,7 +732,7 @@ config FSL_ESDHC_IMX
>  
>  config FSL_USDHC
>  	bool "Freescale/NXP i.MX uSDHC controller support"
> -	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M ||
> TARGET_S32V234EVB
> +	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M ||
> IMXRT || TARGET_S32V234EVB 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 e015eb9661..551233dd2a 100644
> --- a/drivers/mmc/fsl_esdhc_imx.c
> +++ b/drivers/mmc/fsl_esdhc_imx.c
> @@ -78,7 +78,7 @@ struct fsl_esdhc {
>  	uint    vendorspec;
>  	uint    mmcboot;
>  	uint    vendorspec2;
> -	uint    tuning_ctrl;	/* on i.MX6/7/8 */
> +	uint    tuning_ctrl;	/* on i.MX6/7/8/RT */
>  	char	reserved5[44];
>  	uint    hostver;	/* Host controller version register
> */ char    reserved6[4];	/* reserved */
> @@ -1652,6 +1652,7 @@ static const struct udevice_id fsl_esdhc_ids[]
> = { { .compatible = "fsl,imx8mm-usdhc", .data =
> (ulong)&usdhc_imx8qm_data,}, { .compatible = "fsl,imx8mn-usdhc",
> .data = (ulong)&usdhc_imx8qm_data,}, { .compatible =
> "fsl,imx8mq-usdhc", .data = (ulong)&usdhc_imx8qm_data,},
> +	{ .compatible = "fsl,imxrt-usdhc", },
>  	{ .compatible = "fsl,esdhc", },
>  	{ /* sentinel */ }
>  };

Reviewed-by: Lukasz Majewski <lukma at denx.de>


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200128/f5f0c6d3/attachment.sig>
diff mbox series

Patch

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 85fd1906bd..2bc19dd56b 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -732,7 +732,7 @@  config FSL_ESDHC_IMX
 
 config FSL_USDHC
 	bool "Freescale/NXP i.MX uSDHC controller support"
-	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || TARGET_S32V234EVB
+	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMXRT || TARGET_S32V234EVB
 	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 e015eb9661..551233dd2a 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -78,7 +78,7 @@  struct fsl_esdhc {
 	uint    vendorspec;
 	uint    mmcboot;
 	uint    vendorspec2;
-	uint    tuning_ctrl;	/* on i.MX6/7/8 */
+	uint    tuning_ctrl;	/* on i.MX6/7/8/RT */
 	char	reserved5[44];
 	uint    hostver;	/* Host controller version register */
 	char    reserved6[4];	/* reserved */
@@ -1652,6 +1652,7 @@  static const struct udevice_id fsl_esdhc_ids[] = {
 	{ .compatible = "fsl,imx8mm-usdhc", .data = (ulong)&usdhc_imx8qm_data,},
 	{ .compatible = "fsl,imx8mn-usdhc", .data = (ulong)&usdhc_imx8qm_data,},
 	{ .compatible = "fsl,imx8mq-usdhc", .data = (ulong)&usdhc_imx8qm_data,},
+	{ .compatible = "fsl,imxrt-usdhc", },
 	{ .compatible = "fsl,esdhc", },
 	{ /* sentinel */ }
 };