[U-Boot] [PATCH 00/20] dm: rtc: Add driver model support for real-time clocks

Simon Glass sjg at chromium.org
Wed Apr 29 04:43:47 CEST 2015


Hi,

On 20 April 2015 at 12:37, Simon Glass <sjg at chromium.org> wrote:
> When driver model is used for I2C, the real-time clock functionality does
> not work (e.g. the 'date' command gives build errors when CONFIG_DM_I2C is
> defined). It is possible to work around this by using driver model I2C
> functions. But what is really needed is an RTC uclass.
>
> This series:
> - renames some RTC functions to have an rtc_ prefix
> - adds sandbox support for RTC and an emulated I2C RTC device
> - adds a driver model RTC uclass and associated tests
> - corrects various minor driver model I2C issues that were discovered
>
> With this it should be fairly easy to convert an existing RTC driver to
> driver model, but this series does not include that as I'm not sure if any
> of the boards I have include an RTC.
>
>
> Simon Glass (20):
>   dm: spi: Correct the comment on spi_get_ops()
>   dm: i2c: sandbox: Add debugging to the speed limit
>   dm: i2c: Add functions to read and write a register
>   dm: i2c: Add an explicit test mode to the sandbox I2C driver
>   fdt: Correct warning in fdt_setup_simplefb_node()
>   dm: rtc: Rename gregorian day function
>   dm: rtc: Rename to_tm() to rtc_to_tm() and add error code
>   dm: rtc: Rename mktime() and reduce the number of parameters
>   dm: Remove unnecessary types in bcd.h
>   dm: rtc: Split structure definition into its own file
>   dm: sandbox: Add os_localtime() to obtain the system time
>   dm: rtc: Add a uclass for real-time clocks
>   dm: rtc: sandbox: Add an emulated I2C RTC device
>   dm: rtc: sandbox: Add a driver for the sandbox I2C RTC
>   dm: rtc: Convert 'date' command to support driver model
>   dm: net: rtc: Support using driver model for rtc in sntp
>   dm: sandbox: dts: Add a real-time clock attached to I2C
>   dm: rtc: sandbox: Enable real-time clock support
>   dm: test: dts: Sort the aliases in the test device tree file
>   dm: rtc: Add tests for real-time clocks

Thanks for the various reviews on this series. If there is nothing
else, I will pull this in soon.

Regards,
Simon


More information about the U-Boot mailing list