nvmem: imx-ocotp: Enable i.MX7D OTP write support
authorBryan O'Donoghue <pure.logic@nexus-software.ie>
Tue, 24 Oct 2017 09:54:32 +0000 (10:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 13:19:06 +0000 (14:19 +0100)
After applying patches for both banked access and write timings we can
re-enable the OTP write interface on i.MX7D processors.

Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support")

Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c

index 10fc4a70a6e521fc3c20ed322c347263c8c723a5..d56d481eca57cd04fbd9dd904219d202b8be9377 100644 (file)
@@ -466,8 +466,6 @@ static int imx_ocotp_probe(struct platform_device *pdev)
        imx_ocotp_nvmem_config.dev = dev;
        imx_ocotp_nvmem_config.priv = priv;
        priv->config = &imx_ocotp_nvmem_config;
-       if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx7d-ocotp"))
-               imx_ocotp_nvmem_config.read_only = true;
        nvmem = nvmem_register(&imx_ocotp_nvmem_config);
 
        if (IS_ERR(nvmem))