diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2020-08-11 11:43:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-17 06:36:41 +0200 |
commit | f0b293332979618e1077b392bfcdac36d2c317e2 (patch) | |
tree | 83886d834a6ad863ade64bcad78cde9286486079 /drivers | |
parent | b96cc34f9148e96e909ca9e263492fa3ce94c3a5 (diff) | |
download | barebox-f0b293332979618e1077b392bfcdac36d2c317e2.tar.gz barebox-f0b293332979618e1077b392bfcdac36d2c317e2.tar.xz |
nvmem: ocotp: add support for i.MX8MM
For whatever reason the i.MX8MM OCOTP got a separate compatible and
is not marked as compatible to imx8mq, while the parameters used in the
driver seem to be the same.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvmem/Kconfig | 2 | ||||
-rw-r--r-- | drivers/nvmem/ocotp.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index f0fb9122c6..e4a72b1431 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -18,7 +18,7 @@ config NVMEM_SNVS_LPGPR config IMX_OCOTP tristate "i.MX6 On Chip OTP controller" - depends on ARCH_IMX6 || ARCH_VF610 || ARCH_IMX8MQ || ARCH_IMX7 + depends on ARCH_IMX6 || ARCH_VF610 || ARCH_IMX8M || ARCH_IMX7 depends on OFDEVICE help This adds support for the i.MX6 On-Chip OTP controller. Currently the diff --git a/drivers/nvmem/ocotp.c b/drivers/nvmem/ocotp.c index e631842c89..356e9bf113 100644 --- a/drivers/nvmem/ocotp.c +++ b/drivers/nvmem/ocotp.c @@ -935,6 +935,9 @@ static __maybe_unused struct of_device_id imx_ocotp_dt_ids[] = { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_ocotp_data, }, { + .compatible = "fsl,imx8mm-ocotp", + .data = &imx8mq_ocotp_data, + }, { .compatible = "fsl,vf610-ocotp", .data = &vf610_ocotp_data, }, { |