Skip to contentSkip to conversation

board: gateworks: venice: remove redundance adjustment of thermal trip points

PATCH New Tim Harvey 2 participants 2 messages Nov 4, 2022 – Nov 8, 2022

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 board: gateworks: venice: remove redundance adjustment of thermal trip points

commit 0543a1ed2787 ("imx8m: fixup thermal trips") moved updating the thermal trip points to all IMX8M so we can remove it from our board specific dt config.

---
 board/gateworks/venice/venice.c | 16 ----------------
 1 file changed, 16 deletions(-)
board/gateworks/venice/venice.c +0 -16
index d94f6b8a577d..c4d86c26a9b5 100644
@@ -179,22 +179,6 @@ int ft_board_setup(void *fdt, struct bd_info *bd)
 	/* set board model dt prop */
 	fdt_setprop_string(fdt, 0, "board", eeprom_get_model());
 
-	/* update temp thresholds */
-	off = fdt_path_offset(fdt, "/thermal-zones/cpu-thermal/trips");
-	if (off >= 0) {
-		int minc, maxc, prop;
-
-		get_cpu_temp_grade(&minc, &maxc);
-		fdt_for_each_subnode(prop, fdt, off) {
-			const char *type = fdt_getprop(fdt, prop, "type", NULL);
-
-			if (type && (!strcmp("critical", type)))
-				fdt_setprop_u32(fdt, prop, "temperature", maxc * 1000);
-			else if (type && (!strcmp("passive", type)))
-				fdt_setprop_u32(fdt, prop, "temperature", (maxc - 10) * 1000);
-		}
-	}
-
 	if (!strncmp(base_model, "GW73", 4)) {
 		pcbrev = get_pcb_rev(base_model);
 
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 board: gateworks: venice: remove redundance adjustment of thermal trip points

Quoted 4 lines

commit 0543a1ed2787 ("imx8m: fixup thermal trips") moved updating the thermal trip points to all IMX8M so we can remove it from our board specific dt config.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================