]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: rtc: sandbox: Add an emulated I2C RTC device
authorSimon Glass <sjg@chromium.org>
Mon, 20 Apr 2015 18:37:24 +0000 (12:37 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:14 +0000 (22:37 +0200)
commit39cb22ad8b9db7c90cf88aabab5f25c8da65992a
tree33e86c1299c42d3634fd2aa7deb64cb092592eb0
parenta3001f0775ccbad99ecdd91e424e54739308a107
dm: rtc: sandbox: Add an emulated I2C RTC device

Add a sandbox I2C emulation device which emulates a real-time clock. The
clock works off an offset from the current system time, and supports setting
and getting the clock, as well as access to byte-width regisers in the RTC.
It does not support changing the system time.

This device can be used for testing the 'date' command on sandbox, as well
as the RTC uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/rtc.h [new file with mode: 0644]
arch/sandbox/include/asm/test.h
drivers/rtc/Makefile
drivers/rtc/i2c_rtc_emul.c [new file with mode: 0644]