mxs_nand: Update compatible string for i.MX6SX
authorYe Li <ye.li@nxp.com>
Mon, 4 May 2020 14:08:56 +0000 (22:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
The iMX6SX uses compatible string "fsl,imx6sx-gpmi-nand" for gpmi
node in DTS, so update the driver for the string

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mtd/nand/raw/mxs_nand_dt.c

index 7a32b284f7f7d0c9517567cc4b1cc0c6a500bce5..7efc9684db8933d680b0b342244c1f5e92777f93 100644 (file)
@@ -25,6 +25,10 @@ static const struct mxs_nand_dt_data mxs_nand_imx6q_data = {
        .max_ecc_strength_supported = 40,
 };
 
+static const struct mxs_nand_dt_data mxs_nand_imx6sx_data = {
+       .max_ecc_strength_supported = 62,
+};
+
 static const struct mxs_nand_dt_data mxs_nand_imx7d_data = {
        .max_ecc_strength_supported = 62,
 };
@@ -34,6 +38,10 @@ static const struct udevice_id mxs_nand_dt_ids[] = {
                .compatible = "fsl,imx6q-gpmi-nand",
                .data = (unsigned long)&mxs_nand_imx6q_data,
        },
+       {
+               .compatible = "fsl,imx6sx-gpmi-nand",
+               .data = (unsigned long)&mxs_nand_imx6sx_data,
+       },
        {
                .compatible = "fsl,imx7d-gpmi-nand",
                .data = (unsigned long)&mxs_nand_imx7d_data,