summaryrefslogtreecommitdiff
path: root/drivers/thermal/imx_tmu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-03-17 21:22:50 -0400
committerTom Rini <trini@konsulko.com>2024-03-17 21:22:50 -0400
commitb145877c22b391a4872c875145a8f86f6ffebaba (patch)
tree51d46b94d8ec64275af34442e8d3170ef7f5fdf6 /drivers/thermal/imx_tmu.c
parent099c94b7613bb10d97936447f5136f3a36694325 (diff)
parent86b79cf131b64eadae023a127921893d30503093 (diff)
Merge tag 'u-boot-imx-next-20240317' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx into next
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/19975 - Select polling-rate from cpu-thermal devicetree node on imx_tmu. - Re-organize the U-Boot environment and add RAUC logic for phycore_imx8mp. - Enable watchdog on colibri-imx7. - Move imx8mm-venice to use OF_UPSTREAM.
Diffstat (limited to 'drivers/thermal/imx_tmu.c')
-rw-r--r--drivers/thermal/imx_tmu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
index 4721cfbc021..c7fe0f07a60 100644
--- a/drivers/thermal/imx_tmu.c
+++ b/drivers/thermal/imx_tmu.c
@@ -570,12 +570,14 @@ static int imx_tmu_parse_fdt(struct udevice *dev)
{
struct imx_tmu_plat *pdata = dev_get_plat(dev), *p_parent_data;
struct ofnode_phandle_args args;
- ofnode trips_np;
+ ofnode trips_np, cpu_thermal_np;
int ret;
dev_dbg(dev, "%s\n", __func__);
- pdata->polling_delay = IMX_TMU_POLLING_DELAY_MS;
+ cpu_thermal_np = ofnode_path("/thermal-zones/cpu-thermal");
+ pdata->polling_delay = ofnode_read_u32_default(cpu_thermal_np, "polling-delay",
+ IMX_TMU_POLLING_DELAY_MS);
if (pdata->zone_node) {
pdata->regs = (union tmu_regs *)dev_read_addr_ptr(dev);