Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4935027ybh; Tue, 6 Aug 2019 21:15:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQlPi9U+DC4HcLWKM+Tcl0XSTURaCcEuGsdNN7a+YsuawCAVtS9tT12ImQQF7cZdW9CfnO X-Received: by 2002:a63:4846:: with SMTP id x6mr6094514pgk.332.1565151351852; Tue, 06 Aug 2019 21:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565151351; cv=none; d=google.com; s=arc-20160816; b=LYSb3ET4Y7VPvKScAc+FrUlLxwgJtU1t9WvV/5JupWcK0FLBhlld3E7xiGhFo+Zl9f BFK1r2/rGOhGz2ktm6M+WPx4EbYp/qrs8Nj2o/G5MweWhwJJ9GfOD1fH/r1PVEaMyzaP zR02LYjqUXETwJUEI9jdPsBEQEEa7bBjrsqUj+TR31X/+BaMrrBPmPnyd5J9zQ4qJq3I ZvcA7Ebc92XT8WiT9HaKQyOqRHUd9q3skNh+l3B1OWDoYu3ZpwF6w01wyljzPjudWjgB Iyqq9JtfbVwBhKwsi02QlJpR3wfvPht3Ki1celRzK9B5tmjpD1DtGmgD80YS0y1JJ2E2 AQ3w== 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=XsIFhE9UvJg2sSElTyOpulVaW3E+rdWDL8Zv8G/2XKk=; b=goUXCRaJfr6H4OlogbjxueDtpXGP4VSvQsUQzzLKv4KhaFbsIkIXGjJ8GFNaWZ6JQ0 LniK/BbJaWCrRpyTT1LnObpcVFTgizoP8QwSf/HEIRq/yUMth/LZfcOjKbMntLKvZ/od TGo+01tufD6KL1YdLFbSADu6kKHl9j8+o4iFtdAt0AKhdHzL+VHwXubhZr/gNue8WR2D 9/AMKyJEtwOmilcFs4s+caWV8TU9gYpzopR7jxgPdlF2xhEP0YwzrOMTXg8TWVqzkw2O 6I/fNx66pp0He9eXnVSe7xzpG0y60a6qvxau2OLab6RQcSOk33tEVpAO/tHdhf1g1X8P 8EVA== 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 t23si16412618pjw.56.2019.08.06.21.15.36; Tue, 06 Aug 2019 21:15:51 -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 S1726292AbfHGENJ (ORCPT + 99 others); Wed, 7 Aug 2019 00:13:09 -0400 Received: from inva021.nxp.com ([92.121.34.21]:59956 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfHGENI (ORCPT ); Wed, 7 Aug 2019 00:13:08 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4D1E2200064; Wed, 7 Aug 2019 06:13:06 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CC4D92001EF; Wed, 7 Aug 2019 06:13:00 +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 C6FEB402B5; Wed, 7 Aug 2019 12:12:53 +0800 (SGT) From: fugang.duan@nxp.com To: srinivas.kandagatla@linaro.org Cc: robh@kernel.org, mark.rutland@arm.com, s.hauer@pengutronix.de, shawnguo@kernel.org, fugang.duan@nxp.com, kernel@pengutronix.de, gregkh@linuxfoundation.org, festevam@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH nvmem v2 1/2] nvmem: imx: add i.MX8QM platform support Date: Wed, 7 Aug 2019 12:03:19 +0800 Message-Id: <20190807040320.1760-2-fugang.duan@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190807040320.1760-1-fugang.duan@nxp.com> References: <20190807040320.1760-1-fugang.duan@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: Fugang Duan i.MX8QM efuse table has some difference with i.MX8QXP platform, so add i.MX8QM platform support. Signed-off-by: Fugang Duan --- drivers/nvmem/imx-ocotp-scu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvmem/imx-ocotp-scu.c b/drivers/nvmem/imx-ocotp-scu.c index be2f5f0..0d78ab4 100644 --- a/drivers/nvmem/imx-ocotp-scu.c +++ b/drivers/nvmem/imx-ocotp-scu.c @@ -16,6 +16,7 @@ enum ocotp_devtype { IMX8QXP, + IMX8QM, }; struct ocotp_devtype_data { @@ -39,6 +40,11 @@ static struct ocotp_devtype_data imx8qxp_data = { .nregs = 800, }; +static struct ocotp_devtype_data imx8qm_data = { + .devtype = IMX8QM, + .nregs = 800, +}; + static int imx_sc_misc_otp_fuse_read(struct imx_sc_ipc *ipc, u32 word, u32 *val) { @@ -118,6 +124,7 @@ static struct nvmem_config imx_scu_ocotp_nvmem_config = { static const struct of_device_id imx_scu_ocotp_dt_ids[] = { { .compatible = "fsl,imx8qxp-scu-ocotp", (void *)&imx8qxp_data }, + { .compatible = "fsl,imx8qm-scu-ocotp", (void *)&imx8qm_data }, { }, }; MODULE_DEVICE_TABLE(of, imx_scu_ocotp_dt_ids); -- 2.7.4