The driver for the RTC RX6110SA is designed to be used with I2C bus. This patch adds the possibility to use SMBus operations to access the RTC. For this purpose the Kconfig switch RX6110SA_USE_SMBUS is added. It is not enabled per default so that I2C will be used. One can set this switch on board level to use SMBus instead.
57cbd21 rx6110sa: Add possibility to use both I2C and SMBus for the RTC
src/drivers/i2c/rx6110sa/Kconfig | 7 +++
src/drivers/i2c/rx6110sa/rx6110sa.c | 90 ++++++++++++++++++++++---------------
2 files changed, 60 insertions(+), 37 deletions(-)