dm: rtc: Add a uclass for real-time clocks
authorSimon Glass <sjg@chromium.org>
Mon, 20 Apr 2015 18:37:23 +0000 (12:37 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:39 +0000 (20:58 -0600)
commitdbeda5b2255089889788e0dd3478680feec86139
treee4640d8cee4a8aaf6c13c23e1bd067a3b981e8fd
parent94eefdee2f5db36d52e817a01b07c8255527e193
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>
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/rtc.h