coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
acpi/acpi_device.h
>
4
5
/*
6
* Dialog Semiconductor DA7219 Audio Codec devicetree bindings
7
* linux/Documentation/devicetree/bindings/sound/da7219.txt
8
*/
9
struct
drivers_i2c_da7219_config
{
10
/* Interrupt configuration */
11
struct
acpi_irq
irq
;
12
13
/* Use GPIO based interrupt instead of PIRQ */
14
struct
acpi_gpio
irq_gpio
;
15
16
/* I2C Bus Frequency in Hertz (default 400kHz) */
17
unsigned
int
bus_speed
;
18
19
/*
20
* micbias-lvl : Voltage (mV) for Mic Bias
21
* [<1600>, <1800>, <2000>, <2200>, <2400>, <2600>]
22
*/
23
unsigned
int
micbias_lvl
;
24
25
/*
26
* mic-amp-in-sel : Mic input source type
27
* ["diff", "se_p", "se_n"]
28
*/
29
const
char
*
mic_amp_in_sel
;
30
31
/*
32
* Properties for da7219_aad child node
33
*/
34
35
/*
36
* micbias-pulse-lvl : Mic bias higher voltage pulse level (mV)
37
* [<2800>, <2900>]
38
*/
39
unsigned
int
micbias_pulse_lvl
;
40
41
/*
42
* micbias-pulse-time : Mic bias higher voltage pulse duration (ms)
43
*/
44
unsigned
int
micbias_pulse_time
;
45
46
/*
47
* btn-cfg : Periodic button press measurements for 4-pole jack (ms)
48
* [<2>, <5>, <10>, <50>, <100>, <200>, <500>]
49
*/
50
unsigned
int
btn_cfg
;
51
52
/*
53
* mic-det-thr : Impedance threshold for mic detection measurement (Ohms)
54
* [<200>, <500>, <750>, <1000>]
55
*/
56
unsigned
int
mic_det_thr
;
57
58
/*
59
* jack-ins-deb : Debounce time for jack insertion (ms)
60
* [<5>, <10>, <20>, <50>, <100>, <200>, <500>, <1000>]
61
*/
62
unsigned
int
jack_ins_deb
;
63
64
/*
65
* jack-det-rate : Jack type detection latency (3/4 pole)
66
* ["32ms_64ms", "64ms_128ms", "128ms_256ms", "256ms_512ms"]
67
*/
68
const
char
*
jack_det_rate
;
69
70
/*
71
* jack-rem-deb : Debounce time for jack removal (ms)
72
* [<1>, <5>, <10>, <20>]
73
*/
74
unsigned
int
jack_rem_deb
;
75
76
/*
77
* a-d-btn-thr : Impedance threshold between buttons A and D
78
* [0x0 - 0xFF]
79
*/
80
unsigned
int
a_d_btn_thr
;
81
82
/*
83
* d-b-btn-thr : Impedance threshold between buttons D and B
84
* [0x0 - 0xFF]
85
*/
86
unsigned
int
d_b_btn_thr
;
87
88
/*
89
* b-c-btn-thr : Impedance threshold between buttons B and C
90
* [0x0 - 0xFF]
91
*/
92
unsigned
int
b_c_btn_thr
;
93
94
/*
95
* c-mic-btn-thr : Impedance threshold between button C and Mic
96
* [0x0 - 0xFF]
97
*/
98
unsigned
int
c_mic_btn_thr
;
99
100
/*
101
* btn-avg : Number of 8-bit readings for averaged button measurement
102
* [<1>, <2>, <4>, <8>]
103
*/
104
unsigned
int
btn_avg
;
105
106
/*
107
* adc-1bit-rpt : Repeat count for 1-bit button measurement
108
* [<1>, <2>, <4>, <8>]
109
*/
110
unsigned
int
adc_1bit_rpt
;
111
112
/*
113
* mclk-name : Pass the system clk to da7219
114
* ["name of mclk" ]
115
*/
116
const
char
*
mclk_name
;
117
};
acpi_device.h
acpi_gpio
Definition:
acpi_device.h:164
acpi_irq
Definition:
acpi_device.h:88
drivers_i2c_da7219_config
Definition:
chip.h:9
drivers_i2c_da7219_config::jack_det_rate
const char * jack_det_rate
Definition:
chip.h:68
drivers_i2c_da7219_config::irq_gpio
struct acpi_gpio irq_gpio
Definition:
chip.h:14
drivers_i2c_da7219_config::jack_rem_deb
unsigned int jack_rem_deb
Definition:
chip.h:74
drivers_i2c_da7219_config::b_c_btn_thr
unsigned int b_c_btn_thr
Definition:
chip.h:92
drivers_i2c_da7219_config::mic_amp_in_sel
const char * mic_amp_in_sel
Definition:
chip.h:29
drivers_i2c_da7219_config::micbias_pulse_time
unsigned int micbias_pulse_time
Definition:
chip.h:44
drivers_i2c_da7219_config::irq
struct acpi_irq irq
Definition:
chip.h:11
drivers_i2c_da7219_config::micbias_lvl
unsigned int micbias_lvl
Definition:
chip.h:23
drivers_i2c_da7219_config::a_d_btn_thr
unsigned int a_d_btn_thr
Definition:
chip.h:80
drivers_i2c_da7219_config::micbias_pulse_lvl
unsigned int micbias_pulse_lvl
Definition:
chip.h:39
drivers_i2c_da7219_config::d_b_btn_thr
unsigned int d_b_btn_thr
Definition:
chip.h:86
drivers_i2c_da7219_config::bus_speed
unsigned int bus_speed
Definition:
chip.h:17
drivers_i2c_da7219_config::c_mic_btn_thr
unsigned int c_mic_btn_thr
Definition:
chip.h:98
drivers_i2c_da7219_config::adc_1bit_rpt
unsigned int adc_1bit_rpt
Definition:
chip.h:110
drivers_i2c_da7219_config::mic_det_thr
unsigned int mic_det_thr
Definition:
chip.h:56
drivers_i2c_da7219_config::mclk_name
const char * mclk_name
Definition:
chip.h:116
drivers_i2c_da7219_config::jack_ins_deb
unsigned int jack_ins_deb
Definition:
chip.h:62
drivers_i2c_da7219_config::btn_avg
unsigned int btn_avg
Definition:
chip.h:104
drivers_i2c_da7219_config::btn_cfg
unsigned int btn_cfg
Definition:
chip.h:50
src
drivers
i2c
da7219
chip.h
Generated by
1.9.1