Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9920496ybi; Wed, 10 Jul 2019 19:58:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFrDr7fEttAPI1AbEXYPdxopDgBYVrgYvIqYYz4abd1yXMXJwUsJeuveYK16ceNu2wQvgG X-Received: by 2002:a17:90a:214e:: with SMTP id a72mr2102500pje.0.1562813910297; Wed, 10 Jul 2019 19:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562813910; cv=none; d=google.com; s=arc-20160816; b=uWVIx4KweKKBlNlpBYU4jRwdk8kCuoe0EKpQdnDchXAAFtN8hEVA+IQ+C8PUSVUlBA lBB6H60W5X6Y04sYKgImJZcfMFGrqVJIFuQ0fZh+BiXpmoR+8UxTUrayP910hbxHpTOl t5J7+I0dIqsyP5MoqZDwZDRrWdlQACvl8b+nHPGohuu5Zy0aqJCSzvi3WtHwbokciOsA TdKzQOw1TM9k8//M7FW4iRI3T1J5pffgJCXeEAFRWV/ycwaNCiBCntjswYBK4AcZH8h4 E9ZptexaiifmZ2TPdzwO+hPg914aBSOdkmN3eL7pnuFC3ysmaVeMb2J8+cSfup/i0Hdl uPUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=39p6fyls1RaSQvu78RoZDVn8CL3EW6ySH65dWDOqB/I=; b=rqjXhBF8248dSd4vRY/vK+gFXZKbrA2ZthkIQvRn2uGx5SQqeD47l+8pmYgA5gxmrT QDomTDzILV9u4q46tIQcuxsd37ygd65qAZa1ifaX5PxjNB7mcF5+GjzGWOMzUH4Ja3UA 7UkmwDv08iF51uXeDDgp3PxpQ7f2BHYBjHSHFdFx5C683TVZ5Qnh4EVTSecIPS5Hr0f3 tEgnmpv1cA2wvN6Vvrp4sYaJMq/23KxCsuolABYZusxp0gaFQ5+ztjCVFcRhPJE2iDMC IlxZQkYwi+hMfS9OGu7DAD8w7GdpBRj6LN7ciqRXyZyZivKrpzOxfUWoioJfl3wTO7KA nHtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si3789707pge.590.2019.07.10.19.58.11; Wed, 10 Jul 2019 19:58:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727922AbfGKCqc (ORCPT + 99 others); Wed, 10 Jul 2019 22:46:32 -0400 Received: from inva020.nxp.com ([92.121.34.13]:44264 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbfGKCqb (ORCPT ); Wed, 10 Jul 2019 22:46:31 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C11321A08BB; Thu, 11 Jul 2019 04:46:29 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 011881A08F3; Thu, 11 Jul 2019 04:46:24 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A4C5440302; Thu, 11 Jul 2019 10:46:16 +0800 (SGT) From: Anson.Huang@nxp.com To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] nvmem: imx-ocotp: Add i.MX8MN support Date: Thu, 11 Jul 2019 10:37:14 +0800 Message-Id: <20190711023714.16000-2-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190711023714.16000-1-Anson.Huang@nxp.com> References: <20190711023714.16000-1-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang i.MX8MN is a new SoC of i.MX8M series, it is similar to i.MX8MM in terms of addressing and clock setup, add support for its fuse read/write. Signed-off-by: Anson Huang --- drivers/nvmem/imx-ocotp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 42d4451..dff2f3c 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -479,6 +479,12 @@ static const struct ocotp_params imx8mm_params = { .set_timing = imx_ocotp_set_imx6_timing, }; +static const struct ocotp_params imx8mn_params = { + .nregs = 256, + .bank_address_words = 0, + .set_timing = imx_ocotp_set_imx6_timing, +}; + static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6q-ocotp", .data = &imx6q_params }, { .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params }, @@ -490,6 +496,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params }, { .compatible = "fsl,imx8mm-ocotp", .data = &imx8mm_params }, + { .compatible = "fsl,imx8mn-ocotp", .data = &imx8mn_params }, { }, }; MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids); -- 2.7.4