From patchwork Wed Jun 26 10:27:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 167794 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp760351ilk; Wed, 26 Jun 2019 03:28:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMWONy3TdGJd8I+wr0txa1KfFacDNmonms4i5IA7i0w0EaVyIuiBnvlGvA1vcZsTgU8BCm X-Received: by 2002:a63:7f07:: with SMTP id a7mr2226360pgd.26.1561544896518; Wed, 26 Jun 2019 03:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561544896; cv=none; d=google.com; s=arc-20160816; b=ZKfczxe2+TKXLtXMvTLJRvd2sQYukecK2RIyKJ873yxIf8h1Q14/y0k/IUK8kzpeCv EUGdM/QHDUh+MBJN8e51DEpySBsf2W7FxR8Dqgk7ulSJ/rb5UELa9c9mSnffre04J/+6 GhrS9qoF1KsQFVXH7HDTDQkqD7/FpnvYB6+cKQ0kLwbqlHXU/ZDgKlVUE0kNoloWVYvM xbHXR+bZtNDJSy1ozAIp6WYsOA/YdD0351MB2avg5u6rgujPYtZpzuEhJdKef0nHjIt5 qKN7BD6ylGXqzO0g4mCL2U8vyLCyc/EcHCmpG+5TIHB7NehtenwWZMHyF8X9fLgVFvNI 1ePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YlUbQ+VAs6rWA6NRDoG6hvS1TSsas8Yc/9cAu2pyMdM=; b=nAaWC9xGpEu7P+Z7S/f4ENvT/KlpXMCe9ByglkLeuh+x4sSVzgv8g77O7A1/fom6fL +r7EULaBb9DHRVqj2mCeNc9avfwraAHAyuViMgo/xooWvVlqLKnaHbuDkILnl5Eg88oO +BAbEmbDHw2rI2bPtBz0y/xRkilbCIIPNqgUEwRJb6IWbH9h6h8wmrKnXi82EorgMooc u2A3P4Xtokamxg1PY2bxSZWJCgtFjX6pFwXjOJxmGG1cWdvn18atlydZ4nq3iwAjStdH VBSovCXgqPnM3VSdvKqh2QakXTwvsVUqUgbjpVBS7MIK7+y+9xchlyq31XUYudyl4K4m /lPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tIP3gvod; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si3068839plb.407.2019.06.26.03.28.16; Wed, 26 Jun 2019 03:28:16 -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; dkim=pass header.i=@linaro.org header.s=google header.b=tIP3gvod; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbfFZK2P (ORCPT + 30 others); Wed, 26 Jun 2019 06:28:15 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43946 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbfFZK2I (ORCPT ); Wed, 26 Jun 2019 06:28:08 -0400 Received: by mail-wr1-f66.google.com with SMTP id p13so2071295wru.10 for ; Wed, 26 Jun 2019 03:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YlUbQ+VAs6rWA6NRDoG6hvS1TSsas8Yc/9cAu2pyMdM=; b=tIP3gvod44Al3x47FF+xsWez/VYa6b2gxC0T7uJxplv8LEGvSgo6R3SDZz492YQ/+/ +VovSEh7PJA08ySm+1GfbAQ7HwhQZtiw0BZvRCJLEyLY04OMJybeD+9qINWfh6bVzcnP eEk+ZAJz45tZC9S6V/quFPVTZ68gZspxFQ308vbbm+nRqr2CFveIxzGqVgnGTTi9VsEc J0p9ZnXcLVwOu5s8bAHyS0UxeS3p6cxct4AbJVM33Tat75A44rCL1B990eE9CR6Z0QZA V4VO77aUOjFct0GPFtCcmxZspZhj7MzGSaKkIrvUENsUU9uCCos4vCg6lQCN3VIxteqp JP4w== 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=YlUbQ+VAs6rWA6NRDoG6hvS1TSsas8Yc/9cAu2pyMdM=; b=ZWj+6qv/O8cHDmdid1eLLuGYF6bqPSxGiu5xjdsJkAajAu9VlOO7PImfD0XPfkV7mz ENC3A6Ek3wnHMfQhOjpL1KEsWb/TF7+O8VsApaHI2hyPO/KR8QpcT4ukG4eBsQeh1jaI 8AeUg1HW1Tj5BzDxSsdglPVdiCkH2qafDejsXo2e7XTU/dgSmFvftNSeknaZzknieT87 a/crnNVmRY1jsLuGwA8qcgYYYxVEb1a/hU9dXvKZ6UZGc7kBMNAHI0s1muLzga6KSyy3 ES554DRqsdOnz7hNTqY7X3PdHjVco8dPaKO29AwtzHXhrZ6VION5Twp6B5bmHlTD4dgy nUow== X-Gm-Message-State: APjAAAWm9UKibwIbxofz4/W5FQXOefJVj7E/pWWKxHiRzxhrqNr3huo5 eZJbRThGbUwYEadP1xoVG+mj/0da98M= X-Received: by 2002:a5d:430c:: with SMTP id h12mr3100824wrq.163.1561544886476; Wed, 26 Jun 2019 03:28:06 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id z19sm2212042wmi.7.2019.06.26.03.28.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 03:28:06 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Leonard Crestez , Peng Fan , Srinivas Kandagatla Subject: [PATCH 6/6] nvmem: imx-ocotp: imx8mq is compatible with imx6 not imx7 Date: Wed, 26 Jun 2019 11:27:33 +0100 Message-Id: <20190626102733.11708-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190626102733.11708-1-srinivas.kandagatla@linaro.org> References: <20190626102733.11708-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leonard Crestez According to NXP Reference Manuals and uboot/atf sources the OCOTP block on imx8m behaves more like imx6 than imx7. - Fuses can be read/written 32bits at a time (no imx7-like banking) - The OCOTP_HW_OCOTP_TIMING register is like imx6 not imx7 Since nvmem doesn't support uboot-style "sense" and "override" this issue only affected "write" which is very rarely used. Fixes: 163c0dbd0cb1 ("nvmem: imx-ocotp: add support for imx8mq") Signed-off-by: Leonard Crestez Reviewed-by: Peng Fan Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 340ab336f987..42d4451e7d67 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -469,8 +469,8 @@ static const struct ocotp_params imx7ulp_params = { static const struct ocotp_params imx8mq_params = { .nregs = 256, - .bank_address_words = 4, - .set_timing = imx_ocotp_set_imx7_timing, + .bank_address_words = 0, + .set_timing = imx_ocotp_set_imx6_timing, }; static const struct ocotp_params imx8mm_params = {