]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: rtc: add max313xx series rtc driver
authorChris Packham <judge.packham@gmail.com>
Sun, 19 Mar 2023 21:23:44 +0000 (10:23 +1300)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commit0798a1ce0f6439dfb80d310e11bc8993e09baf08
treefbababa9e40e67408baa71cfa4b9a065bf19763e
parentb5f045e12fea0a64a3749c4da1bdfd579530b67e
drivers: rtc: add max313xx series rtc driver

Adding support for Analog Devices MAX313XX series RTCs.

This is ported from the Linux driver and adapted for use in u-boot.
Notable differences are
- handling of tm_year and tm_mon differ
- clock source support is omitted
- hwmon support for the MAX31328 and MAX31343 is omitted
- rtc_ops->reset is added

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
configs/sandbox_defconfig
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/max313xx.c [new file with mode: 0644]