mtd: nand: mxs_nand: add device tree support for i.MX 6
authorStefan Agner <stefan.agner@toradex.com>
Wed, 30 May 2018 17:01:44 +0000 (19:01 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:12:00 +0000 (10:12 +0200)
Support i.MX 6 NAND GPMI driver data from device tree.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
drivers/mtd/nand/mxs_nand_dt.c

index f89eb091a992acae29c6d25ac981e79466087e89..44dec5dedf90f1ad754ad152b8767b2dd0d5b7e3 100644 (file)
@@ -21,11 +21,19 @@ struct mxs_nand_dt_data {
        unsigned int max_ecc_strength_supported;
 };
 
+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_imx7d_data = {
        .max_ecc_strength_supported = 62,
 };
 
 static const struct udevice_id mxs_nand_dt_ids[] = {
+       {
+               .compatible = "fsl,imx6q-gpmi-nand",
+               .data = (unsigned long)&mxs_nand_imx6q_data,
+       },
        {
                .compatible = "fsl,imx7d-gpmi-nand",
                .data = (unsigned long)&mxs_nand_imx7d_data,