diff options
author | Mario Scheithauer <mario.scheithauer@siemens.com> | 2017-05-08 16:09:26 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-05-11 16:46:16 +0200 |
commit | 7fd20beaf81455cc29271283426e25e722b90fe1 (patch) | |
tree | c45ed3aa1a27021cbf4c7c979a1ddda812d670f5 /src/drivers/i2c/rx6110sa/chip.h | |
parent | a5fcc2e42776b94c5dbb281589d49a84db601f4e (diff) |
drivers/i2c: Add new driver for RTC type RX6110 SA
This driver enables the usage of the external RTC chip RX6110 SA
(http://www5.epsondevice.com/en/products/i2c/rx6110sab.html) which is
connected to the I2C bus. The I2C address of this device is fixed. One
can change parameters in the device tree so that the used setup can be
adapted to match the configuration of the device on the mainboard.
Change-Id: I1290a10c2d5ad76a317c99c8b92a013309a605d6
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/19625
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/drivers/i2c/rx6110sa/chip.h')
-rw-r--r-- | src/drivers/i2c/rx6110sa/chip.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/drivers/i2c/rx6110sa/chip.h b/src/drivers/i2c/rx6110sa/chip.h new file mode 100644 index 0000000000..b90a52963b --- /dev/null +++ b/src/drivers/i2c/rx6110sa/chip.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2017 Siemens AG + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "rx6110sa.h" + +struct drivers_i2c_rx6110sa_config { + /* The day (of the week) is indicated by 7 bits, bit 0 to bit 6. */ + unsigned char user_weekday; /* User day of the week to set */ + unsigned char user_day; /* User day to set */ + unsigned char user_month; /* User month to set */ + unsigned char user_year; /* User year to set */ + unsigned char set_user_date; /* Use user date from device tree */ + unsigned char cof_selection; /* Set up "clock out" frequency */ +}; |