From patchwork Mon Jan 28 15:54:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 156803 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3691861jaa; Mon, 28 Jan 2019 09:36:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN4gd7j7q+NhZtDyzw9LzW4FuGtMDFLIrNri/ISIaWLhkLk7Tfkw3khjc4/lca/bumDkVqsY X-Received: by 2002:a17:902:e012:: with SMTP id ca18mr22583217plb.218.1548696970468; Mon, 28 Jan 2019 09:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696970; cv=none; d=google.com; s=arc-20160816; b=eK6q4+l3qavf9KNLtehUFkJVP1mKlAlBBPC42M0DlUGoLS1JitnlIttwfQSFjCeoan rEWzs0SQx8z+AU3pNp9ilhrfQglvNYPRMaJJ/3PWpBLmvf0bPM+9pdn/qe7wOySPLxcD flTE6rc3gv8LFgHwz68jZX4qZlef0V2F9ULtpfD9p7QK+Pj341BqR9bHA0ogYDFYfNzn QuNn8tjZefaAESYI8dIciYbYDoFar8jn8/Glumc7qbGJhRevtItOLlkeL9q+imWqpxav +S6skuyOy6tdOw/rlgKDoTVr0GoIF6J6xL3+AAhV5pFvambjicjIm2aupgMxjPqQaZwT EHKA== 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=C0iN6aJENz6qbt1UdAuej131qJDG5aeHCCLqTs0M+VU=; b=zJgnZviQmZbbD8tqDe8I2sxHQLlLbyswQu4d1MtcNcIB632U/rZD6MssxNdwhSYNDu gzyyzr8ZVAFXgEy/y4qEoOOkwAPylM5DjgAbeg6Isv3MZxSRTJB+18M8xePZ08mJ6vvK wMSysoT63cSzZxmgcrqBSyRjG1x4T1k2AUo2atFIFGiw3r24KwPcwIMaQ46xzleAahxs bElyNMV1JUx1fufUGymL5ZaqdiKiZVIJagPvKuRd7AeG1A/veU34bc9vUPF+m+bC7Uio 4BZo3n5uum03R2N28PICDKaFiIXviLWouLmV37WNoKPG+9C/XMk7Kca27IlsfdIOn8m6 p4LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfLHLmcW; 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 j10si30787562pgt.155.2019.01.28.09.36.10; Mon, 28 Jan 2019 09:36:10 -0800 (PST) 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=DfLHLmcW; 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 S1729968AbfA1RgI (ORCPT + 31 others); Mon, 28 Jan 2019 12:36:08 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44327 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729415AbfA1PzQ (ORCPT ); Mon, 28 Jan 2019 10:55:16 -0500 Received: by mail-wr1-f68.google.com with SMTP id z5so18585724wrt.11 for ; Mon, 28 Jan 2019 07:55:15 -0800 (PST) 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=C0iN6aJENz6qbt1UdAuej131qJDG5aeHCCLqTs0M+VU=; b=DfLHLmcWjA3sRWcv5DSf2ZLHJXG2JlyqLLpKmNoompy1g2ioINKlVn0RcyaFDdGu77 +HdchoyHbse17p4N4KONcQpeKmbkizSmJoNRow25u3KbviqcOEJiX6qwdRtqmpULXjGs gm6kuEWfQVJ7b+ECumxyTz9Di/OcUuZudrfwM= 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=C0iN6aJENz6qbt1UdAuej131qJDG5aeHCCLqTs0M+VU=; b=hg54Xfah6TF/a+zG2i6E1VCE5BzqLbIXrVI++wve2L6973ywP/YEI1vHbygh/IWKjV 6q6gjDX0MU+1dcKEYIJLNEJschXmv92VYVWPyrUz5jD0r7Ov1T3imRLgAUPNehZYSs3/ ruHQWuBWr8bpxc33HubVdN12TgxHOQRlXrLMdOECwAOdPto/qNqJb1dtE3dGjjC4993u WVe7RkAXkOSchM41lYditeXgITxopX7VyQgA5i6AzMjh31Bsa9QzQXWaDM3dj0cRSsft n2QJ0lfdDGHgddUUwz099myKk6Cca/z+Q/NfNIgEEBTGf0vlrLWvZ7yrtNWydhxuKDRO aVgg== X-Gm-Message-State: AJcUukdzCCkPibWo9nQ5hiTwrVESS0KtUPIS2gHIXJnFdr41IcjMZeLR dcAHBk22xkuFQumdXwJeBzy+cA== X-Received: by 2002:adf:ba8e:: with SMTP id p14mr21825152wrg.230.1548690915143; Mon, 28 Jan 2019 07:55:15 -0800 (PST) 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 p6sm145140485wrx.50.2019.01.28.07.55.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 07:55:14 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 06/13] nvmem: imx-ocotp: Implement i.MX6ULL/ULZ support Date: Mon, 28 Jan 2019 15:54:59 +0000 Message-Id: <20190128155506.25566-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190128155506.25566-1-srinivas.kandagatla@linaro.org> References: <20190128155506.25566-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: Stefan Wahren In comparision to the i.MX6UL the lower cost variants i.MX6ULL/ULZ only supports 8 OTP banks a 8 words. Signed-off-by: Stefan Wahren Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.20.1 diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 90a398252770..08a9b1ef8ae4 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -427,6 +427,12 @@ static const struct ocotp_params imx6ul_params = { .set_timing = imx_ocotp_set_imx6_timing, }; +static const struct ocotp_params imx6ull_params = { + .nregs = 64, + .bank_address_words = 0, + .set_timing = imx_ocotp_set_imx6_timing, +}; + static const struct ocotp_params imx7d_params = { .nregs = 64, .bank_address_words = 4, @@ -443,6 +449,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params }, { .compatible = "fsl,imx6sx-ocotp", .data = &imx6sx_params }, { .compatible = "fsl,imx6ul-ocotp", .data = &imx6ul_params }, + { .compatible = "fsl,imx6ull-ocotp", .data = &imx6ull_params }, { .compatible = "fsl,imx7d-ocotp", .data = &imx7d_params }, { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params }, { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params },