summaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2020-07-06 23:01:15 +0300
committerHeiko Schocher <hs@denx.de>2020-07-09 07:02:45 +0300
commit803a859884b73dbc10826ed26fbf62d487ddc5c7 (patch)
tree61b92770f773494abb2229196202a46dfc6d31d5 /cmd/Kconfig
parent29f965a7ec2bc32be3282eac0645b6e5ea2112ab (diff)
downloadu-boot-803a859884b73dbc10826ed26fbf62d487ddc5c7.tar.xz
rtc: add rtc command
Mostly as an aid for debugging RTC drivers, provide a command that can be used to read/write arbitrary registers (assuming the driver provides the read/write methods or their single-register-at-a-time variants). Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 2b823dd260..846c905c9c 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1739,6 +1739,12 @@ config CMD_DATE
Enable the 'date' command for getting/setting the time/date in RTC
devices.
+config CMD_RTC
+ bool "rtc"
+ depends on DM_RTC
+ help
+ Enable the 'rtc' command for low-level access to RTC devices.
+
config CMD_TIME
bool "time"
help