bsps/shared: Add Abracom EOZ9 RTC driver

The EOZ9 RTC has a similar register interface like the MCP7940M (and
quite some other I2C RTCs). This commit:

* Extracts the generic parts from MCP7940M and moves it into a generic
  i2c-rtc driver.
* Uses the new i2c-rtc for the MCP7940M.
* Uses the new i2c-rtc for the new Abracom EOZ9.
This commit is contained in:
Christian Mauderer
2024-07-31 15:22:06 +02:00
committed by Amar Takhar
parent acf7c725ca
commit 3b053f6919
7 changed files with 787 additions and 324 deletions

View File

@@ -30,12 +30,14 @@ install:
- bsps/include/ofw/ofw_compat.h
- destination: ${BSP_INCLUDEDIR}/libchip
source:
- bsps/include/libchip/abeoz9-rtc.h
- bsps/include/libchip/ata.h
- bsps/include/libchip/ata_internal.h
- bsps/include/libchip/disp_hcms29xx.h
- bsps/include/libchip/ds1375-rtc.h
- bsps/include/libchip/i2c-2b-eeprom.h
- bsps/include/libchip/i2c-ds1621.h
- bsps/include/libchip/i2c-rtc.h
- bsps/include/libchip/i2c-sc620.h
- bsps/include/libchip/icm7170.h
- bsps/include/libchip/ide_ctrl.h
@@ -83,7 +85,9 @@ source:
- bsps/shared/dev/ide/ata.c
- bsps/shared/dev/ide/ata_util.c
- bsps/shared/dev/ide/ide_controller.c
- bsps/shared/dev/rtc/abeoz9.c
- bsps/shared/dev/rtc/ds1375.c
- bsps/shared/dev/rtc/i2c-rtc.c
- bsps/shared/dev/rtc/icm7170.c
- bsps/shared/dev/rtc/icm7170_reg.c
- bsps/shared/dev/rtc/icm7170_reg2.c