Commit Graph

3 Commits

Author SHA1 Message Date
Ye Li 1288dc25fb MLK-18686-2 sc_thermal: Fix interpreting tenths as millicelsius
When calculate the temperature in millicelsius, the tenths are
handled incorrectly.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 72796a2e138bb7b5b4db9f771a3f9b823b66ade5)
2018-07-01 20:57:48 -07:00
Ye Li c1e72c232d MLK-18686-1 sc_thermal: Update thermal resources for iMX8QXP
Since the DRC_0 thermal is disabled by SCFW, we should use SC_R_SYSTEM for
CPU thermal. Update the resources table to align with kernel.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 3f8e5aaa173b5d3cdf05df7867cdca8776854fd6)
2018-07-01 20:57:38 -07:00
Ye Li 0873cbf1aa MLK-16208-1 thermal: Add driver to support i.MX8QM/QXP CPU thermal sensor
Add the DM thermal driver for i.MX8QM and QXP. The driver depends on DTB thermal
sensor nodes. Will create device for each thermal in thermal-zones. User can
use the thermal name to get the device from UCLASS_THERMAL.

The driver flag is set to DM_FLAG_PRE_RELOC, to support run it at early stage,
need add "u-boot,dm-pre-reloc" property to the thermal node.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 98005e0b5a46bd17160fac18be2374c15dba54f9)
2018-04-27 02:32:34 -07:00