From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 2 May 2020 20:26:53 -0600 Subject: [PATCH V2 8/9] cpu: imx_cpu: Print the CPU temperature for iMX8QM A72 In-Reply-To: <20200501134418.7319-8-peng.fan@nxp.com> References: <20200501134418.7319-1-peng.fan@nxp.com> <20200501134418.7319-8-peng.fan@nxp.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Peng, On Fri, 1 May 2020 at 07:22, Peng Fan wrote: > > From: Ye Li > > iMX8QM registers two thermal devices for CPUs, get the temperature > from "cpu-thermal1" device for A72 > > Signed-off-by: Ye Li > Signed-off-by: Peng Fan > --- > > 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 This is still very strange code, but OK.