]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:14 +0000 (22:37 +0200)
commita3001f0775ccbad99ecdd91e424e54739308a107
treebc7a793b4d472fa311c944227c8a353f8b3464c5
parent71da63f3bb9a29ade2464b0bb060529fa6169a04
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