Skip to content

Commit 9425016

Browse files
Sagar Kamblethierryreding
authored andcommitted
soc/tegra: fuse: Add nvmem cell lookup entries for Tegra194
Add nvmem cell lookup entries for below FUSE cells: - gcplex-config-fuse - pdi0 - pdi1 Also include the device name prefix "gpu-" in the names of the GPU FUSE cells in nvmem_cell_info. Signed-off-by: Sagar Kamble <[email protected]> Reviewed-by: Jon Hunter <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 3123109 commit 9425016

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

drivers/soc/tegra/fuse/fuse-tegra.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
3-
* Copyright (c) 2013-2021, NVIDIA CORPORATION. All rights reserved.
3+
* Copyright (c) 2013-2022, NVIDIA CORPORATION. All rights reserved.
44
*/
55

66
#include <linux/clk.h>
@@ -162,7 +162,7 @@ static const struct nvmem_cell_info tegra_fuse_cells[] = {
162162
.bit_offset = 0,
163163
.nbits = 32,
164164
}, {
165-
.name = "gcplex-config-fuse",
165+
.name = "gpu-gcplex-config-fuse",
166166
.offset = 0x1c8,
167167
.bytes = 4,
168168
.bit_offset = 0,
@@ -186,13 +186,13 @@ static const struct nvmem_cell_info tegra_fuse_cells[] = {
186186
.bit_offset = 0,
187187
.nbits = 32,
188188
}, {
189-
.name = "pdi0",
189+
.name = "gpu-pdi0",
190190
.offset = 0x300,
191191
.bytes = 4,
192192
.bit_offset = 0,
193193
.nbits = 32,
194194
}, {
195-
.name = "pdi1",
195+
.name = "gpu-pdi1",
196196
.offset = 0x304,
197197
.bytes = 4,
198198
.bit_offset = 0,

drivers/soc/tegra/fuse/fuse-tegra30.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
3-
* Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
3+
* Copyright (c) 2013-2022, NVIDIA CORPORATION. All rights reserved.
44
*/
55

66
#include <linux/device.h>
@@ -344,6 +344,21 @@ static const struct nvmem_cell_lookup tegra194_fuse_lookups[] = {
344344
.cell_name = "xusb-pad-calibration-ext",
345345
.dev_id = "3520000.padctl",
346346
.con_id = "calibration-ext",
347+
}, {
348+
.nvmem_name = "fuse",
349+
.cell_name = "gpu-gcplex-config-fuse",
350+
.dev_id = "17000000.gpu",
351+
.con_id = "gcplex-config-fuse",
352+
}, {
353+
.nvmem_name = "fuse",
354+
.cell_name = "gpu-pdi0",
355+
.dev_id = "17000000.gpu",
356+
.con_id = "pdi0",
357+
}, {
358+
.nvmem_name = "fuse",
359+
.cell_name = "gpu-pdi1",
360+
.dev_id = "17000000.gpu",
361+
.con_id = "pdi1",
347362
},
348363
};
349364

0 commit comments

Comments
 (0)