From: Kartik <kkartik@nvidia.com>
To: <thierry.reding@gmail.com>, <jonathanh@nvidia.com>,
<digetx@gmail.com>, <kkartik@nvidia.com>, <windhl@126.com>,
<ndesaulniers@google.com>, <nathan@kernel.org>,
<skamble@nvidia.com>, <linux-tegra@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH 3/3] soc/tegra: fuse: add opt-dla-disable nvmem cell
Date: Fri, 7 Oct 2022 15:21:08 +0530 [thread overview]
Message-ID: <1665136268-29494-4-git-send-email-kkartik@nvidia.com> (raw)
In-Reply-To: <1665136268-29494-1-git-send-email-kkartik@nvidia.com>
Tegra234 DLA (Deep Learning Accelerator) driver requires access to
opt_dla_disable fuse to correctly identify internal or production
boards.
Add nvmem cell "opt-dla-disable" for Tegra234 SOC, this allows DLA
driver to read opt_dla_disable fuse via nvmem interface.
Signed-off-by: Kartik <kkartik@nvidia.com>
---
drivers/soc/tegra/fuse/fuse-tegra30.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c
index 932a03c64534a..0ee907af655b3 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra30.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra30.c
@@ -630,6 +630,12 @@ static const struct nvmem_cell_info tegra234_fuse_cells[] = {
.bytes = 4,
.bit_offset = 0,
.nbits = 32,
+ }, {
+ .name = "opt-dla-disable",
+ .offset = 0x3f0,
+ .bytes = 4,
+ .bit_offset = 0,
+ .nbits = 32,
},
};
@@ -644,6 +650,16 @@ static const struct nvmem_cell_lookup tegra234_fuse_lookups[] = {
.cell_name = "xusb-pad-calibration-ext",
.dev_id = "3520000.padctl",
.con_id = "calibration-ext",
+ }, {
+ .nvmem_name = "fuse",
+ .cell_name = "opt-dla-disable",
+ .dev_id = "15880000.nvdla0",
+ .con_id = "dla-disable",
+ }, {
+ .nvmem_name = "fuse",
+ .cell_name = "opt-dla-disable",
+ .dev_id = "158c0000.nvdla1",
+ .con_id = "dla-disable",
},
};
--
2.17.1
prev parent reply other threads:[~2022-10-07 9:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-07 9:51 [PATCH 0/3] Tegra Fuse Nvmem Interface Update Kartik
2022-10-07 9:51 ` [PATCH 1/3] soc/tegra: fuse: use soc specific nvmem cells Kartik
2022-10-07 9:51 ` [PATCH 2/3] soc/tegra: fuse: add fuse nvmem keepout list Kartik
2022-10-07 9:51 ` Kartik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1665136268-29494-4-git-send-email-kkartik@nvidia.com \
--to=kkartik@nvidia.com \
--cc=digetx@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=skamble@nvidia.com \
--cc=thierry.reding@gmail.com \
--cc=windhl@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®