thermal: imx_tmu: enable monitoring and default alert/critical
authorTim Harvey <tharvey@gateworks.com>
Sat, 6 Feb 2021 00:11:05 +0000 (16:11 -0800)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Mar 2021 09:21:36 +0000 (10:21 +0100)
commitdeb78ff34ec0c188c433e9b1280a3deecc4eec28
tree8cfdb7c3e4651d3effd8a8366aa2b7cfa0ae6d7a
parent1ce6e10c61c7d74fce79749ef37066dcf5b52b41
thermal: imx_tmu: enable monitoring and default alert/critical

Set default critical/alert temperature and enabling monoitoring.

Without calling imx_tmu_enable_msite() monitoring will not be enabled
and read_temperature will return 0. Additionally without setting alert
temperature will cause imx_tmu_get_temp() to spin indefiniately thinking
the system needs to cool.

This resolves the board spinning endlessly when enabling IMX_TMU in the
SPL.

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/thermal/imx_tmu.c