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@xxxxxxxxxx> --- 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