From patchwork Mon Jan 28 15:54:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 156760 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3581943jaa; Mon, 28 Jan 2019 07:55:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN5BvBJURx6dymMZHX9MPWX4/EXUqpLVUpgarvy5RBRkTjiUp8k3O9gBhM37UbcCJLzMt0Mx X-Received: by 2002:a17:902:5588:: with SMTP id g8mr22389978pli.22.1548690920345; Mon, 28 Jan 2019 07:55:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548690920; cv=none; d=google.com; s=arc-20160816; b=PQDPz9cuZS48tUw6L0S8AmHmktikLZhJrvh7B9z8iKzEgTFRfd2zx7Fn7Z9k94cRRw oz99yVuvXPRkVXGwKo75oSE+09gTuFbBxPTpjY2spv/aj6gcsqkWaQb/aeZvwlKs/UK/ wUJndFv7AQsQtCnMRoDsNNd8WxmOzaZmmGSyJzfACtMsvuO6If3c5Qu/mJ5jRvRvNIkA BVo0IeM88HN+qxy4Tdnp9vp5+SaKEM22ioWo9rYN6LnQYr8F7swcXaNYS+fxcLfH3A1N l7m93uHnqUdM/hizJg4VHZokcRQmbjjy0Oe+VqK26JQfZn3iDSC8adWvG8cOkiKqIEIr 9Vew== 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=Bl3ew2I2xjmi0d8XaQksODeb+uT8jXBsV8IAc/xEUJ0=; b=hi7LV++zj16lIsV8PkJNNaUWyVn2Idawyrx2IBb+Cx6uodNL54SKsbnaKzZUpRX5JS XkR15xfibr8TWltP0uf0t06PiSdJT8pnN7rOAL+SGyJPwJguAKG46MoGfjWcPlSHCkoN a4dSy6kqkIlijqBpxRw9i7+gCObLFLDjceVHPvKexjXJT9hgIpPatcwLVbjH+PG3ky6n mFTZRMu9I02rG0LonE5zpDe2wFE9tT4u97xOnzxAg4ByJEGvm5iebD+PgF5YLXb7s29f ODU0LU3Qn7tZgHP4bxNqbdOJ1NxaGSPXHFtzsbXJv3dpspaH7vzRapuqDBek9R3QFT8e bfdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCtO9BlK; 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 p64si32796597pfa.94.2019.01.28.07.55.20; Mon, 28 Jan 2019 07:55:20 -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=FCtO9BlK; 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 S1729835AbfA1PzR (ORCPT + 31 others); Mon, 28 Jan 2019 10:55:17 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46946 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729857AbfA1PzO (ORCPT ); Mon, 28 Jan 2019 10:55:14 -0500 Received: by mail-wr1-f65.google.com with SMTP id l9so18556165wrt.13 for ; Mon, 28 Jan 2019 07:55:13 -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=Bl3ew2I2xjmi0d8XaQksODeb+uT8jXBsV8IAc/xEUJ0=; b=FCtO9BlKB8ovRLPilHdtn2N80dQ7P7bXMmdfadJANXdBLWLP+Jy2YjKfJyqSkJLOkv JpCGX4trHlJBKY2lO2Vjdnrkxy1W3ZBrNi+2d3yDO87B3K5DBs5M7gUq2NKkA9nGdj8r nhMaBFtYZsrMh0yxfw1MslpNC4gQqUlEwE8Vc= 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=Bl3ew2I2xjmi0d8XaQksODeb+uT8jXBsV8IAc/xEUJ0=; b=jXxs3dlw5GFFGJenwpziUH/SIOViGMCX26v3a7PfVN6eXvaBKuxbZ9VIx5WEypnCSH hqMB6uenM5+9zbcJi4AjRt2j0geEWE/ReDP894AvQCujE58cgpcjr7CMp8mUupYturs+ pPbabdiDwgHqr/3LBlS4TJKvYQ733KAzks5/jiCzv7Y8Hqolf0x/1pYtnE6OVQMI1YHF 4PTv2sOlU1j+ADRTNVHR+rPTXvutaVDHScS9uP6r9GliEppG5ieS2P4co6Wtpn9NWu0m JcolwDTDn/lqLFC7nUDr97lEVCvZx7oCNxoniucFZQDoeLTDhKaxwMO8qLFiuKhCcybV wiUw== X-Gm-Message-State: AJcUukdLHc/E+CosGMlPXWZKmXkmcyvDbhZ37Xg8xQTf3ci0LIlL7fM4 OMfp3wotn0rIxNfa+QGSa2h3+kbYGkg= X-Received: by 2002:adf:de91:: with SMTP id w17mr23924006wrl.320.1548690913072; Mon, 28 Jan 2019 07:55:13 -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.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 07:55:12 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 04/13] nvmem: imx-ocotp: add i.MX7ULP support Date: Mon, 28 Jan 2019 15:54:57 +0000 Message-Id: <20190128155506.25566-5-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: Anson Huang i.MX7ULP is a new SoC of i.MX family which has 8 kbit eFuse OTP, enable ocotp driver support for this SoC. Signed-off-by: Anson Huang Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index afb429a417fe..90a398252770 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -433,6 +433,11 @@ static const struct ocotp_params imx7d_params = { .set_timing = imx_ocotp_set_imx7_timing, }; +static const struct ocotp_params imx7ulp_params = { + .nregs = 256, + .bank_address_words = 0, +}; + static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6q-ocotp", .data = &imx6q_params }, { .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params }, @@ -440,6 +445,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6ul-ocotp", .data = &imx6ul_params }, { .compatible = "fsl,imx7d-ocotp", .data = &imx7d_params }, { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params }, + { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, { }, }; MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);