From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5Qoe-00015d-KX for barebox@lists.infradead.org; Tue, 11 Aug 2020 09:43:33 +0000 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1k5Qoc-0006AM-FL for barebox@lists.infradead.org; Tue, 11 Aug 2020 11:43:30 +0200 From: Lucas Stach Date: Tue, 11 Aug 2020 11:43:30 +0200 Message-Id: <20200811094330.4754-4-l.stach@pengutronix.de> In-Reply-To: <20200811094330.4754-1-l.stach@pengutronix.de> References: <20200811094330.4754-1-l.stach@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 4/4] nvmem: ocotp: add support for i.MX8MM To: barebox@lists.infradead.org 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 --- drivers/nvmem/Kconfig | 2 +- drivers/nvmem/ocotp.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 968342b281ad..55fc6f382d16 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 + depends on ARCH_IMX6 || ARCH_VF610 || ARCH_IMX8M 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 62f510785be1..4ad5f25139e5 100644 --- a/drivers/nvmem/ocotp.c +++ b/drivers/nvmem/ocotp.c @@ -766,6 +766,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, -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox