[U-Boot] [PATCH 13/20] dm: rtc: sandbox: Add an emulated I2C RTC device
Simon Glass
sjg at chromium.org
Mon May 4 16:20:34 CEST 2015
On 20 April 2015 at 12:37, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> arch/sandbox/include/asm/rtc.h | 28 +++++
> arch/sandbox/include/asm/test.h | 21 ++++
> drivers/rtc/Makefile | 1 +
> drivers/rtc/i2c_rtc_emul.c | 236 ++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 286 insertions(+)
> create mode 100644 arch/sandbox/include/asm/rtc.h
> create mode 100644 drivers/rtc/i2c_rtc_emul.c
Applied to u-boot-dm.
More information about the U-Boot
mailing list