summaryrefslogtreecommitdiff
path: root/cmd/Makefile
diff options
context:
space:
mode:
authorRobert Marko <[email protected]>2022-09-06 13:30:33 +0200
committerTom Rini <[email protected]>2022-10-11 15:40:48 -0400
commit7f673bb8f52894eec641b287d9bb19fa603142c6 (patch)
treeedb703622a3b64f38e806da32791e7092a5fda56 /cmd/Makefile
parent23c0df6e7cd3f220a81151b662f0280bba0054b9 (diff)
cmd: add temperature command
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/Makefile')
-rw-r--r--cmd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Makefile b/cmd/Makefile
index d9bbd0b9fda..c95e09d0580 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -156,6 +156,7 @@ obj-$(CONFIG_CMD_STRINGS) += strings.o
obj-$(CONFIG_CMD_SMC) += smccc.o
obj-$(CONFIG_CMD_SYSBOOT) += sysboot.o
obj-$(CONFIG_CMD_STACKPROTECTOR_TEST) += stackprot_test.o
+obj-$(CONFIG_CMD_TEMPERATURE) += temperature.o
obj-$(CONFIG_CMD_TERMINAL) += terminal.o
obj-$(CONFIG_CMD_TIME) += time.o
obj-$(CONFIG_CMD_TIMER) += timer.o