diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2019-01-28 10:54:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-31 10:24:14 -0500 |
commit | ffbc34bf0e9c66fd4c64a78ffd7bdec3de388387 (patch) | |
tree | f401eb691c5bc5bff487769e6fd4af615d52320c /drivers/nvmem | |
parent | 4dbecb9f5b19723a59b15dfd57b1963e9d4bce73 (diff) |
nvmem: imx-ocotp: Implement i.MX6ULL/ULZ support
In comparision to the i.MX6UL the lower cost variants i.MX6ULL/ULZ only
supports 8 OTP banks a 8 words.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem')
-rw-r--r-- | drivers/nvmem/imx-ocotp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 90a398252770..08a9b1ef8ae4 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c | |||
@@ -427,6 +427,12 @@ static const struct ocotp_params imx6ul_params = { | |||
427 | .set_timing = imx_ocotp_set_imx6_timing, | 427 | .set_timing = imx_ocotp_set_imx6_timing, |
428 | }; | 428 | }; |
429 | 429 | ||
430 | static const struct ocotp_params imx6ull_params = { | ||
431 | .nregs = 64, | ||
432 | .bank_address_words = 0, | ||
433 | .set_timing = imx_ocotp_set_imx6_timing, | ||
434 | }; | ||
435 | |||
430 | static const struct ocotp_params imx7d_params = { | 436 | static const struct ocotp_params imx7d_params = { |
431 | .nregs = 64, | 437 | .nregs = 64, |
432 | .bank_address_words = 4, | 438 | .bank_address_words = 4, |
@@ -443,6 +449,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { | |||
443 | { .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params }, | 449 | { .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params }, |
444 | { .compatible = "fsl,imx6sx-ocotp", .data = &imx6sx_params }, | 450 | { .compatible = "fsl,imx6sx-ocotp", .data = &imx6sx_params }, |
445 | { .compatible = "fsl,imx6ul-ocotp", .data = &imx6ul_params }, | 451 | { .compatible = "fsl,imx6ul-ocotp", .data = &imx6ul_params }, |
452 | { .compatible = "fsl,imx6ull-ocotp", .data = &imx6ull_params }, | ||
446 | { .compatible = "fsl,imx7d-ocotp", .data = &imx7d_params }, | 453 | { .compatible = "fsl,imx7d-ocotp", .data = &imx7d_params }, |
447 | { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params }, | 454 | { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params }, |
448 | { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, | 455 | { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, |