diff options
author | Tim Harvey <tharvey@gateworks.com> | 2022-11-04 08:43:06 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-11-08 17:35:00 +0100 |
commit | 630abef2f1feff4b51170696deca3fde72c03b78 (patch) | |
tree | 8bfe1194b135b6961cee92aee23d0ca5785cb7ab /board | |
parent | cf8ffbe36fe9de6b23bb19b84498e483e43153fe (diff) | |
download | u-boot-630abef2f1feff4b51170696deca3fde72c03b78.zip u-boot-630abef2f1feff4b51170696deca3fde72c03b78.tar.gz u-boot-630abef2f1feff4b51170696deca3fde72c03b78.tar.bz2 |
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.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/gateworks/venice/venice.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index d94f6b8..c4d86c2 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -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); |