|
@@ -127,6 +127,18 @@ static const struct gpmi_devdata gpmi_devdata_imx6sx = {
|
|
|
.clks_count = ARRAY_SIZE(gpmi_clks_for_mx6),
|
|
|
};
|
|
|
|
|
|
+static const char * const gpmi_clks_for_mx7d[] = {
|
|
|
+ "gpmi_io", "gpmi_bch_apb",
|
|
|
+};
|
|
|
+
|
|
|
+static const struct gpmi_devdata gpmi_devdata_imx7d = {
|
|
|
+ .type = IS_MX7D,
|
|
|
+ .bch_max_ecc_strength = 62,
|
|
|
+ .max_chain_delay = 12,
|
|
|
+ .clks = gpmi_clks_for_mx7d,
|
|
|
+ .clks_count = ARRAY_SIZE(gpmi_clks_for_mx7d),
|
|
|
+};
|
|
|
+
|
|
|
static irqreturn_t bch_irq(int irq, void *cookie)
|
|
|
{
|
|
|
struct gpmi_nand_data *this = cookie;
|
|
@@ -2071,6 +2083,9 @@ static const struct of_device_id gpmi_nand_id_table[] = {
|
|
|
}, {
|
|
|
.compatible = "fsl,imx6sx-gpmi-nand",
|
|
|
.data = &gpmi_devdata_imx6sx,
|
|
|
+ }, {
|
|
|
+ .compatible = "fsl,imx7d-gpmi-nand",
|
|
|
+ .data = &gpmi_devdata_imx7d,
|
|
|
}, {}
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(of, gpmi_nand_id_table);
|