From patchwork Fri Apr 19 17:19:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10909033 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CB2514DB for ; Fri, 19 Apr 2019 17:20:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0181628C2A for ; Fri, 19 Apr 2019 17:20:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E989C28C37; Fri, 19 Apr 2019 17:20:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D53F28C2A for ; Fri, 19 Apr 2019 17:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=etGBDKCmtHGCQJOBa1RROeNKE2qib+T4Z0twdPAcs8w=; b=Kxz5qL8YA25Axe WR+PKD9oe56Kks4jeqiVibkMRqlZcOBpOGxjsxLRr8kzlpbXLjg/wgitukQnTSALZerwjV0uXCqvR JoW9ul2qtX0fFvXwdjw4dwSUEU/NL8lS8C2izY/VT4w6YolLY4Xz26a/8TXNnixKKigalI8wlGNF6 aa+v5GAMaD1g/XGkJxl8gDdLVxyNDwIfWoRneCZBci1CYlmozc0U5AFHw98FnOOTsBEz6KcvOUBbW hEuLPeCeoq/mSj3LoaZuhYOPusErgYsNTFin0AV6KUiQ58v6nnXuvU8MtgUskE4x2fXlyXW57TIVn Y4qIcWrhImc9qIrmkgNw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXBT-00061D-Pl; Fri, 19 Apr 2019 17:20:19 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXAl-0003rx-RW for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 17:19:38 +0000 Received: by mail-ed1-x542.google.com with SMTP id k45so4886882edb.6 for ; Fri, 19 Apr 2019 10:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3AZerSJqEDBmC5EOFHTIBsuBKJeFxL0ILMiRsQ7xMJ0=; b=CVS21A9sbhTl7Dvo07tn63P2DLlLbW2nRv/NWwboOcvcKmrr5SqADoz1NPgMteupF9 ody90/rYBCf0uuAae1/oVhgwngbiHdysjWY4uUwYkXrVAI/Ou8AqSrU6z0FVFub+3rYb gn/sGincXErCCtWwImYvziSoL2GvdrvobK40E/XNslf/xYy0ZhheXh+c/2gWz/EqZiBR +de6ybwoNSHzt+1WnXv0KKMbN8SXupxTnUv2O/qPC1rsgGOp5ySqwhkaaUuQX4ia6KcE FzdgVprK2bdH+RZP6m4HlLt/2VV2a7HA5PZ8Gb50C4z6nlfEwMmyy1XxmSGVkDvId+R/ 495A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3AZerSJqEDBmC5EOFHTIBsuBKJeFxL0ILMiRsQ7xMJ0=; b=Ra8e9Jgh5ZtFLYog2VGtQPA34Wq2pwJ9JciC11OW8KsFMbKB3AHFeD+Cj6/Sl8bJGQ P1T6iNFk1a+UU5uekjV8U1oLq4osXQ5vX4lIFgTP+Q1L+ideexjGGTgO531j9HBb+Z4V JMk6eNtXSVV1pfaQ5gt7zqUMO4sL8HHUDjSmPwpQeadp01HUK/zVi5BTsN5pAsiKvgJH 0zFntxs2sekwEYjOCYV3Df0tpOreOSrY1CELuQjrwRXmcMc/0YQIUQXwpAXe3bsz72ht H8R9WflnIXIm+BlBqbp9DksSCrC1XZYpvqVow2m2saZezqGJWVLZsuDg83MWBAbRDFGi lijQ== X-Gm-Message-State: APjAAAWgSwFLoNnzgRaVidKnHQNPCEA+XL6S6nROcfdrGBhWBAqHtuBs JIY4VoYWq9szJmzyI9lcFR54uw== X-Google-Smtp-Source: APXvYqy5sGu6bHIhQi6yEn8GUlaMXuMXSCbljys0/nFHBPPnxsAj7cmNQpaTFIYa670WGpiiMQjITw== X-Received: by 2002:a50:9eec:: with SMTP id a99mr3116981edf.186.1555694374650; Fri, 19 Apr 2019 10:19:34 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id q24sm938514ejr.44.2019.04.19.10.19.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 10:19:34 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v3 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Fri, 19 Apr 2019 18:19:26 +0100 Message-Id: <20190419171927.24269-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419171927.24269-1-pure.logic@nexus-software.ie> References: <20190419171927.24269-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_101936_092147_11CC26C8 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aisheng.dong@nxp.com, abel.vesa@nxp.com, anson.huang@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support to burn the fuses on the i.MX8MM. https://www.nxp.com/webapp/Download?colCode=IMX8MMRM The i.MX8MM is similar to i.MX6 processors in terms of addressing and clock setup. Signed-off-by: Bryan O'Donoghue --- 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 5b625d61e433..08006b07657b 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -453,6 +453,12 @@ static const struct ocotp_params imx8mq_params = { .set_timing = imx_ocotp_set_imx7_timing, }; +static const struct ocotp_params imx8mm_params = { + .nregs = 60, + .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 }, @@ -463,6 +469,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params }, { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params }, + { .compatible = "fsl,imx8mm-ocotp", .data = &imx8mm_params }, { }, }; MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);