aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/rx6110sa/chip.h
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2017-06-07 09:51:06 +0200
committerWerner Zeh <werner.zeh@siemens.com>2017-06-09 06:31:21 +0200
commit0dc405de980a22721e9faba9127321f4849d10ab (patch)
treecc5fe375be0a67d74fc816328f5d25bbeeac37d3 /src/drivers/i2c/rx6110sa/chip.h
parent37afb270b461314978ce741cffa3b896673eb829 (diff)
rx6110sa: Add more chip configuration options to chip
The RTC RX6110SA has several configuration options which might be interesting to set. To make this setup independent of the driver itself but let it still be configurable on mainboard level, add more configuration options to the chip driver. Change-Id: I7f8b2aa7cd001a887f271be36f655e10e60e778b Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/20084 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/drivers/i2c/rx6110sa/chip.h')
-rw-r--r--src/drivers/i2c/rx6110sa/chip.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/drivers/i2c/rx6110sa/chip.h b/src/drivers/i2c/rx6110sa/chip.h
index b90a52963b..76db780f9a 100644
--- a/src/drivers/i2c/rx6110sa/chip.h
+++ b/src/drivers/i2c/rx6110sa/chip.h
@@ -23,4 +23,17 @@ struct drivers_i2c_rx6110sa_config {
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 */
+ unsigned char timer_clk; /* Set up timer clock */
+ unsigned char timer_irq_en; /* Interrupt generation on timer */
+ unsigned short timer_preset; /* Preset value for the timer */
+ unsigned char timer_mode; /* Set the timer mode of operation */
+ unsigned char timer_en; /* Enable timer operation */
+ unsigned char irq_output_pin; /* 0: IRQ2 pin used, 1: IRQ1 pin used */
+ unsigned char fout_output_pin; /* 0: IRQ2, 1: IRQ1, 2: DO/FOUT */
+ unsigned char enable_1hz_out; /* If set enables 1 Hz output on IRQ1 */
+ unsigned char pmon_sampling; /* Select power monitor sampling time */
+ /* The following two bits set the power monitor and backup mode. */
+ unsigned char bks_on;
+ unsigned char bks_off;
+ unsigned char iocut_en; /* Disable backup of I/O circuit. */
};