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)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:39 +0000 (20:58 -0600)
commitdd18e5d8441e12e4ed084dfe7400112851b807f8
tree5da479ed00917a6f39fcef4a6d67f556f23a6de8
parentdbeda5b2255089889788e0dd3478680feec86139
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]