diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-20 12:37:23 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-05 20:58:39 -0600 |
commit | dbeda5b2255089889788e0dd3478680feec86139 (patch) | |
tree | e4640d8cee4a8aaf6c13c23e1bd067a3b981e8fd /include/dm/uclass-id.h | |
parent | 94eefdee2f5db36d52e817a01b07c8255527e193 (diff) | |
download | u-boot-imx-dbeda5b2255089889788e0dd3478680feec86139.zip u-boot-imx-dbeda5b2255089889788e0dd3478680feec86139.tar.gz u-boot-imx-dbeda5b2255089889788e0dd3478680feec86139.tar.bz2 |
dm: rtc: Add a uclass for real-time clocks
Add a uclass for real-time clocks which support getting the current time,
setting it and resetting the chip to a known-working state. Some RTCs have
additional registers which can be used to store settings, so also provide
an interface to these.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/uclass-id.h')
-rw-r--r-- | include/dm/uclass-id.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index 395e25a..08f1bad 100644 --- a/include/dm/uclass-id.h +++ b/include/dm/uclass-id.h @@ -46,6 +46,7 @@ enum uclass_id { UCLASS_USB_DEV_GENERIC, /* USB generic device */ UCLASS_MASS_STORAGE, /* Mass storage device */ UCLASS_CPU, /* CPU, typically part of an SoC */ + UCLASS_RTC, /* Real time clock device */ UCLASS_COUNT, UCLASS_INVALID = -1, |