MLK-22851-2 mmc: fsl_esdhc: Update compatible string for imx8m
authorYe Li <ye.li@nxp.com>
Fri, 25 Oct 2019 08:22:00 +0000 (01:22 -0700)
committerYe Li <ye.li@nxp.com>
Mon, 28 Oct 2019 08:14:33 +0000 (01:14 -0700)
To enable HS400 and UHS for imx8m platforms, update the driver data
to share with imx8x platforms and add relevant compatible string.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit e0cc56f76027d014414b5aed6c26af444388093a)

drivers/mmc/fsl_esdhc.c

index 78e1a60..dc1c144 100644 (file)
@@ -1682,7 +1682,7 @@ static struct esdhc_soc_data usdhc_imx7d_data = {
                MMC_MODE_HS_52MHz | MMC_MODE_HS,
 };
 
-static struct esdhc_soc_data usdhc_imx8qm_data = {
+static struct esdhc_soc_data usdhc_imx8x_imx8m_data = {
        .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
                        | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200
                        | ESDHC_FLAG_HS400 |ESDHC_FLAG_HS400_ES,
@@ -1699,7 +1699,9 @@ static const struct udevice_id fsl_esdhc_ids[] = {
        { .compatible = "fsl,imx6q-usdhc", },
        { .compatible = "fsl,imx7d-usdhc", .data = (ulong)&usdhc_imx7d_data,},
        { .compatible = "fsl,imx7ulp-usdhc", },
-       { .compatible = "fsl,imx8qm-usdhc", .data = (ulong)&usdhc_imx8qm_data,},
+       { .compatible = "fsl,imx8qm-usdhc", .data = (ulong)&usdhc_imx8x_imx8m_data,},
+       { .compatible = "fsl,imx8mm-usdhc", .data = (ulong)&usdhc_imx8x_imx8m_data,},
+       { .compatible = "fsl,imx8mq-usdhc", .data = (ulong)&usdhc_imx8x_imx8m_data,},
        { .compatible = "fsl,esdhc", },
        { /* sentinel */ }
 };