nvmem: imx-ocotp: add support for imx6sll
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 11 Jul 2018 10:20:43 +0000 (11:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 12:03:06 +0000 (14:03 +0200)
i.MX6SLL is a new SoC of i.MX6 family, enable ocotp
driver support for this SoC.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c

index 60816c856dd62cdb532e1ffb0310a879539349dd..afb429a417fe04e6d23347006a4967e4c01b3184 100644 (file)
@@ -409,6 +409,12 @@ static const struct ocotp_params imx6sl_params = {
        .set_timing = imx_ocotp_set_imx6_timing,
 };
 
+static const struct ocotp_params imx6sll_params = {
+       .nregs = 128,
+       .bank_address_words = 0,
+       .set_timing = imx_ocotp_set_imx6_timing,
+};
+
 static const struct ocotp_params imx6sx_params = {
        .nregs = 128,
        .bank_address_words = 0,
@@ -433,6 +439,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = {
        { .compatible = "fsl,imx6sx-ocotp", .data = &imx6sx_params },
        { .compatible = "fsl,imx6ul-ocotp", .data = &imx6ul_params },
        { .compatible = "fsl,imx7d-ocotp",  .data = &imx7d_params },
+       { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params },
        { },
 };
 MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);