Skip to contentSkip to conversation

soc/tegra: fuse: Add nvmem cell lookup entries for tegra194

PATCH Applied Sagar Kamble 3 participants 3 messages Mar 24, 2022 – Apr 6, 2022 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/soc/tegra/fuse/fuse-tegra.c   |  8 ++++----
 drivers/soc/tegra/fuse/fuse-tegra30.c | 17 ++++++++++++++++-
 2 files changed, 20 insertions(+), 5 deletions(-)
drivers/soc/tegra/fuse/fuse-tegra.c +4 -4
index aa94fda282f4..b0a8405dbdb1 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2013-2021, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2013-2022, NVIDIA CORPORATION.  All rights reserved.
  */
 
 #include <linux/clk.h>
@@ -162,7 +162,7 @@ static const struct nvmem_cell_info tegra_fuse_cells[] = {
 		.bit_offset = 0,
 		.nbits = 32,
 	}, {
-		.name = "gcplex-config-fuse",
+		.name = "gpu-gcplex-config-fuse",
 		.offset = 0x1c8,
 		.bytes = 4,
 		.bit_offset = 0,
@@ -186,13 +186,13 @@ static const struct nvmem_cell_info tegra_fuse_cells[] = {
 		.bit_offset = 0,
 		.nbits = 32,
 	}, {
-		.name = "pdi0",
+		.name = "gpu-pdi0",
 		.offset = 0x300,
 		.bytes = 4,
 		.bit_offset = 0,
 		.nbits = 32,
 	}, {
-		.name = "pdi1",
+		.name = "gpu-pdi1",
 		.offset = 0x304,
 		.bytes = 4,
 		.bit_offset = 0,
drivers/soc/tegra/fuse/fuse-tegra30.c +16 -1
index b071d433d74f..f01d8a2547b6 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2013-2014, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2013-2022, NVIDIA CORPORATION.  All rights reserved.
  */
 
 #include <linux/device.h>
@@ -344,6 +344,21 @@ static const struct nvmem_cell_lookup tegra194_fuse_lookups[] = {
 		.cell_name = "xusb-pad-calibration-ext",
 		.dev_id = "3520000.padctl",
 		.con_id = "calibration-ext",
+	}, {
+		.nvmem_name = "fuse",
+		.cell_name = "gpu-gcplex-config-fuse",
+		.dev_id = "17000000.gpu",
+		.con_id = "gcplex-config-fuse",
+	}, {
+		.nvmem_name = "fuse",
+		.cell_name = "gpu-pdi0",
+		.dev_id = "17000000.gpu",
+		.con_id = "pdi0",
+	}, {
+		.nvmem_name = "fuse",
+		.cell_name = "gpu-pdi1",
+		.dev_id = "17000000.gpu",
+		.con_id = "pdi1",
 	},
 };
 
Signature · 1 line
2.7.4
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 75 lines · Sagar Kamble

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.

---
  drivers/soc/tegra/fuse/fuse-tegra.c   |  8 ++++----
  drivers/soc/tegra/fuse/fuse-tegra30.c | 17 ++++++++++++++++-
  2 files changed, 20 insertions(+), 5 deletions(-)
drivers/soc/tegra/fuse/fuse-tegra.c +4 -4
index aa94fda282f4..b0a8405dbdb1 100644
@@ -1,6 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0-only
  /*
- * Copyright (c) 2013-2021, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2013-2022, NVIDIA CORPORATION.  All rights reserved.
   */
 
  #include <linux/clk.h>
@@ -162,7 +162,7 @@ static const struct nvmem_cell_info tegra_fuse_cells[] = {
  		.bit_offset = 0,
  		.nbits = 32,
  	}, {
-		.name = "gcplex-config-fuse",
+		.name = "gpu-gcplex-config-fuse",
  		.offset = 0x1c8,
  		.bytes = 4,
  		.bit_offset = 0,
@@ -186,13 +186,13 @@ static const struct nvmem_cell_info tegra_fuse_cells[] = {
  		.bit_offset = 0,
  		.nbits = 32,
  	}, {
-		.name = "pdi0",
+		.name = "gpu-pdi0",
  		.offset = 0x300,
  		.bytes = 4,
  		.bit_offset = 0,
  		.nbits = 32,
  	}, {
-		.name = "pdi1",
+		.name = "gpu-pdi1",
  		.offset = 0x304,
  		.bytes = 4,
  		.bit_offset = 0,
drivers/soc/tegra/fuse/fuse-tegra30.c +9 -1
index b071d433d74f..f01d8a2547b6 100644
@@ -1,6 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0-only
  /*
- * Copyright (c) 2013-2014, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2013-2022, NVIDIA CORPORATION.  All rights reserved.
   */
 
  #include <linux/device.h>
@@ -344,6 +344,21 @@ static const struct nvmem_cell_lookup tegra194_fuse_lookups[] = {
  		.cell_name = "xusb-pad-calibration-ext",
  		.dev_id = "3520000.padctl",
  		.con_id = "calibration-ext",
+	}, {
+		.nvmem_name = "fuse",
+		.cell_name = "gpu-gcplex-config-fuse",
+		.dev_id = "17000000.gpu",
+		.con_id = "gcplex-config-fuse",
+	}, {
+		.nvmem_name = "fuse",
+		.cell_name = "gpu-pdi0",

drivers/soc/tegra/fuse/fuse-tegra30.c static const struct nvmem_cell_lookup tegra194_fuse_lookups[] = { · line 364

Quoted 10 lines
drivers/soc/tegra/fuse/fuse-tegra30.c +7 -0
+		.dev_id = "17000000.gpu",
+		.con_id = "pdi0",
+	}, {
+		.nvmem_name = "fuse",
+		.cell_name = "gpu-pdi1",
+		.dev_id = "17000000.gpu",
+		.con_id = "pdi1",
  	},
  };
 

Thanks! Looks good to me.

Jon

Signature · 1 line
nvpublic
#2 lore raw
In reply to Sagar Kamble
Quoted 5 lines · Sagar Kamble

Add nvmem cell lookup entries for below fuse cells:
- gcplex-config-fuse
- pdi0
- pdi1

Quoted 8 lines

Also include the device name prefix "gpu-" in the names of the gpu fuse cells in nvmem_cell_info.

---
 drivers/soc/tegra/fuse/fuse-tegra.c   |  8 ++++----
 drivers/soc/tegra/fuse/fuse-tegra30.c | 17 ++++++++++++++++-
 2 files changed, 20 insertions(+), 5 deletions(-)

Applied, thanks.

Thierry