diff options
author | Anatolij Gustschin <agust@denx.de> | 2020-05-20 02:31:44 +0300 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2020-05-22 14:27:46 +0300 |
commit | 74e8fb03bdafd096bcfaa36268376874dfb5c7d4 (patch) | |
tree | 3ed22b51f4ab6a7cbb069859d24506959ec4d39e /drivers/thermal | |
parent | 69365540cf607d5212ebd014869e4f55c1de8044 (diff) | |
download | u-boot-74e8fb03bdafd096bcfaa36268376874dfb5c7d4.tar.xz |
cpu: imx8: use intended cpu-thermal device when getting temp value
This fixes getting DT alert and critical pdata values in imx_scu_thermal
driver. On i.MX8QXP using not initialized alert pdata value resulted in
boot hang and endless loop outputting:
CPU Temperature (47200C) has beyond alert (0C), close to critical (0C) waiting...
While at it, preset CPU type values once to avoid multiple calls
of device_is_compatible() for same property.
Fixes: 3ee6ea443eb4 ("cpu: imx_cpu: Print the CPU temperature for iMX8QM A72")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions