Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2247475ybi; Thu, 4 Jul 2019 07:30:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHLRpJcJ2xWZY4f+XQ0GFhYUewGMbYROK9jcZ5JolKpVG11GHyfIFbUlkJZRchGRsav4OA X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr20706202pje.11.1562250651589; Thu, 04 Jul 2019 07:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562250651; cv=none; d=google.com; s=arc-20160816; b=g1bNgwbyf4OVCXkE2DsNI7hgoOiek5PD89j3PhehMCSv2Vz8s8vxiXJQ64nJngQVij z6PpyiMIxg7tzGDfMIWmWIxFkRWExgdJNztYVJC/J9JkEfFwOwI4eEhjEGon4u3nBqWv 2zAglQ3rCh+zMCOm5imLSWpitNl04tVbiJtuZvfc1GgffbnxTaquS6YRx33fxEaR+6vL EONSE7XAFuEnZ3hg5/mdvpQtdxAyaAlrmzfw4Mr07GnlqeH9K1eGFccTUczAbIMeux8o WYDvCV66rzSGkoLXUfjUBMzbom++D+xZ6gdrI3q6j6opOh6fkvJO6mYWMGw5rAQTsUHk fUng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=XsIFhE9UvJg2sSElTyOpulVaW3E+rdWDL8Zv8G/2XKk=; b=0OihjxGDhRt7xb64kUz2poO7N8qh9fFdXvB8zZJaJV0NfqRS9BzSUTYJyvUnh/TnFY gjOT4eEy7+/IU0j9c5mgssAukfR0KyhpdjttFA1lxM2RIkLSgsUtCVoFNWemZ0RawGWJ nzEUc8ISvrsrJVzqXmERJkU9VeLlhD/PCHbYVNIJSKe2p5d58ShtlXszM9/iiZp1idWJ /X4EvBRjMuh48WJBX/sJ2PYcnSZIdcJcjZcdLs3mJ2Ad/qMMng0UdIzufiXKYe67eaJP d1C7PrY8rIDGh7hsjPb4WFXcsL0XoEKNqONspPbt0grY9WhV+BWBBFjzCJIA5DSvXDJM EZEA== 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 u13si5461954pgp.478.2019.07.04.07.30.35; Thu, 04 Jul 2019 07:30: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 S1727674AbfGDO3k (ORCPT + 99 others); Thu, 4 Jul 2019 10:29:40 -0400 Received: from inva020.nxp.com ([92.121.34.13]:41412 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbfGDO3k (ORCPT ); Thu, 4 Jul 2019 10:29:40 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A25E61A05FF; Thu, 4 Jul 2019 16:29:38 +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 CB6C61A05F8; Thu, 4 Jul 2019 16:29:33 +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 9B0CD402C3; Thu, 4 Jul 2019 22:29:27 +0800 (SGT) From: fugang.duan@nxp.com To: srinivas.kandagatla@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: gregkh@linuxfoundation.org, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, fugang.duan@nxp.com Subject: [PATCH nvmem 1/1] nvmem: imx: add i.MX8QM platform support Date: Thu, 4 Jul 2019 22:20:32 +0800 Message-Id: <20190704142032.10745-1-fugang.duan@nxp.com> X-Mailer: git-send-email 2.14.1 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