]> git.baikalelectronics.ru Git - uboot.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)
commite1acf35b1885fc6959beb8823d036fe2a590ad74
treefbababa9e40e67408baa71cfa4b9a065bf19763e
parenta5491e927ff5b222628c5fd5f755dfb47318657a
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]