[PATCH V2 8/9] cpu: imx_cpu: Print the CPU temperature for iMX8QM A72

Simon Glass sjg at chromium.org
Sun May 3 04:26:53 CEST 2020


Hi Peng,

On Fri, 1 May 2020 at 07:22, Peng Fan <peng.fan at nxp.com> wrote:
>
> From: Ye Li <ye.li at nxp.com>
>
> iMX8QM registers two thermal devices for CPUs, get the temperature
> from "cpu-thermal1" device for A72
>
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>
> V2:
>  Per Simon's comments, use uclass_get_device
>
>  drivers/cpu/imx8_cpu.c | 18 ++++++++++++------
>  1 file changed, 12 insertions(+), 6 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

This is still very strange code, but OK.


More information about the U-Boot mailing list