[PATCH] imx: fdt: Allow users to inhibit trip point setup

Marek Vasut marex at nabladev.com
Sat Jun 13 05:11:43 CEST 2026


During development or various dangerous experiments, it may
be necessary to override the trip points. Allow users to do
that. However, do keep in mind that this may damage the SoC.

Signed-off-by: Marek Vasut <marex at nabladev.com>
---
Cc: "NXP i.MX U-Boot Team" <uboot-imx at nxp.com>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Stefano Babic <sbabic at nabladev.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 arch/arm/mach-imx/fdt.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/mach-imx/fdt.c b/arch/arm/mach-imx/fdt.c
index f19ab9edce4..1ef26718463 100644
--- a/arch/arm/mach-imx/fdt.c
+++ b/arch/arm/mach-imx/fdt.c
@@ -3,6 +3,7 @@
  * Copyright 2024 NXP
  */
 
+#include <env.h>
 #include <errno.h>
 #include <fdtdec.h>
 #include <malloc.h>
@@ -91,6 +92,15 @@ int fixup_thermal_trips(void *blob, const char *name)
 	int minc, maxc;
 	int node, trip;
 
+	/*
+	 * During development or various dangerous experiments, it may
+	 * be necessary to override the trip points. Allow users to do
+	 * that. However, do keep in mind that this may damage the SoC.
+	 */
+	if (CONFIG_IS_ENABLED(ENV_SUPPORT))
+		if (env_get("imx_skip_fixup_thermal_trips"))
+			return 0;
+
 	node = fdt_path_offset(blob, "/thermal-zones");
 	if (node < 0)
 		return node;
-- 
2.53.0



More information about the U-Boot mailing list