Debian Codegraph @

src/drivers/i2c/rx6110sa/chip.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef __DRIVERS_I2C_RX6110SA_CHIP_H__
4 #define __DRIVERS_I2C_RX6110SA_CHIP_H__
5
6 #include "rx6110sa.h"
7
8 struct drivers_i2c_rx6110sa_config {
9 unsigned int bus_speed; /* Bus clock in Hz */
10 /* The day (of the week) is indicated by 7 bits, bit 0 to bit 6. */
11 unsigned char user_weekday; /* User day of the week to set */
12 unsigned char user_day; /* User day to set */
13 unsigned char user_month; /* User month to set */
14 unsigned char user_year; /* User year to set */
15 unsigned char set_user_date; /* Use user date from device tree */
16 unsigned char cof_selection; /* Set up "clock out" frequency */
17 unsigned char timer_clk; /* Set up timer clock */
18 unsigned char timer_irq_en; /* Interrupt generation on timer */
19 unsigned short timer_preset; /* Preset value for the timer */
20 unsigned char timer_mode; /* Set the timer mode of operation */
21 unsigned char timer_en; /* Enable timer operation */
22 unsigned char irq_output_pin; /* 0: IRQ2 pin used, 1: IRQ1 pin used */
23 unsigned char fout_output_pin; /* 0: IRQ2, 1: IRQ1, 2: DO/FOUT */
24 unsigned char enable_1hz_out; /* If set enables 1 Hz output on IRQ1 */
25 unsigned char pmon_sampling; /* Select power monitor sampling time */
26 /* The following two bits set the power monitor and backup mode. */
27 unsigned char bks_on;
28 unsigned char bks_off;
29 unsigned char iocut_en; /* Disable backup of I/O circuit. */
30 };
31
32 #endif /* __DRIVERS_I2C_RX6110SA_CHIP_H__ */