From patchwork Fri Apr 19 16:48:07 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: 10909001 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 5F25417EE for ; Fri, 19 Apr 2019 16:49:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F02428C9B for ; Fri, 19 Apr 2019 16:49:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FF7228CA4; Fri, 19 Apr 2019 16:49:11 +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 B2E2928C9B for ; Fri, 19 Apr 2019 16:49:10 +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=nCleDcCNddv+oV d5G5K4+bATXhYOTuVyRJ6P16Sa4hJrdcWFu8I8Y7tNssG8HFVBZNo7yafvypBifp619BeNOPRXpEe bQo7v8eQEXiCyygG7e/1eX31JHIDQzbqhXvTi5g999qevbZEKoZhtKK+Ry5C/D7QoU8nzT75EuO8o hOP9HpN6F66brTM/WNgc3bDwxeaLRxwBpiiPWTtgjisq6MiJFJLUXBgAbFCXLwiBKuxrCspACW7zS L/f5kfkGnrwIgnZj2LTnEEtN2qr6g6a9VXOJJuAqaVjt492XqtfXnHWB5Vb1ex6z3bk/xQLEMtKj0 /LUybnx4ZXmWHN4I6A7w==; 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 1hHWhG-0002cq-IN; Fri, 19 Apr 2019 16:49:06 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHWgU-0001iQ-Nn for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:21 +0000 Received: by mail-ed1-x541.google.com with SMTP id d55so4853582ede.0 for ; Fri, 19 Apr 2019 09:48:18 -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=PFnEvvbQcxojgZEKAfpdDydrxQ2lphTEXJODdyjLt0a/XpMCWMWzBVuEtkQYxP3fXA 4v85wqVmObjSHMBut5cJI8rJwOMpzDz+3x2NZO2aFQTNhSNScoGZKBLN7UHwsUdEWW/i rQ4YJFgMCQU91bUJZWFN0JS/+mnfFMcoXQn7WY7W1Kk3rp38gCaa/waGPIOW/BpYH3qj n8ftJYNnrF5Eo5fv3miWmS6yQHJ8ZI3mG5EaY5Qs5C+kPqiRJBD6nRINLiyATv2Ywfuw 6eGUnlIhfzTLH1r6LKiMzSOXKW/Jc4ePh8O+bP15wFXySliYpp+mqC+kkkVkrzO4kJM2 wUXw== 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=PjsnftU+c432TbeV+HYFqnN2Z4zqizIKaXykNZ5K8kKu/7Td2JwIKUeN1g7Fz78I9v /FoFJiAmcGqo+irompBSP1vtH2GXeib/WuCpxEggl3hZ3ShiYiJUbqwq6YHUM9WU0pHR GD3BJoeJxaDL/jjKbVlrLayDSE2cENxIGNnSlAM/wXiLCFspyisdQtwd2KG3bgZYoC/2 LGlwNByo+4VTHHfPUNl/f5UdDxdlT/bQXYMXV5AFV6r3zP6MUAUsaZe6mSgcJ1ApmOB4 5feRZ/NI3oLq89XHoxYPZQeGaqbyWF6Ug6551xIBg3L+/sXyS6rVyOVAQgX0T5zTJYZT akAQ== X-Gm-Message-State: APjAAAWn88ayvKB17hWF0/tf4kiOjPLd7Jz256A7K28yweehnOmxO9ZK vz8kv1ROXU0/3AZ15/bDN3w3vw== X-Google-Smtp-Source: APXvYqyoIG+mPJc1X2+RBN6XIdvNplzuuUFBE0+LdJz77RCDHUcNYTMIUfmq/QOVRYshs0TCbOxq8Q== X-Received: by 2002:aa7:dc44:: with SMTP id g4mr3046115edu.268.1555692497510; Fri, 19 Apr 2019 09:48:17 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48:16 -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 v2 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Fri, 19 Apr 2019 17:48:07 +0100 Message-Id: <20190419164808.23236-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419164808.23236-1-pure.logic@nexus-software.ie> References: <20190419164808.23236-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_094818_973200_F09D35BC X-CRM114-Status: GOOD ( 10.62 ) 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);