[PATCH v3 1/4] cmd: add temperature command

Tom Rini trini at konsulko.com
Tue Oct 11 23:37:03 CEST 2022


On Tue, Sep 06, 2022 at 01:30:33PM +0200, Robert Marko wrote:

> Currently, there is no way for users to check the readings from thermal
> sensors from U-boot console, only some boards print it during boot.
> 
> So, lets add a simple "temperature" command that allows listing thermal
> uclass devices and getting their value.
> 
> Note that the thermal devices are intenionally probed if list is used as
> almost always they will not get probed otherwise and there is no way for
> users to manually call probe on a certain device from console.
> 
> Assumption is made that temperature is returned in degrees C and not
> milidegrees like in Linux as this is what most drivers seem to return.
> 
> Signed-off-by: Robert Marko <robert.marko at sartura.hr>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221011/3bae5f88/attachment.sig>


More information about the U-Boot mailing list