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  */
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 };
const char * jack_det_rate
Definition: chip.h:68
struct acpi_gpio irq_gpio
Definition: chip.h:14
unsigned int jack_rem_deb
Definition: chip.h:74
unsigned int b_c_btn_thr
Definition: chip.h:92
const char * mic_amp_in_sel
Definition: chip.h:29
unsigned int micbias_pulse_time
Definition: chip.h:44
struct acpi_irq irq
Definition: chip.h:11
unsigned int micbias_lvl
Definition: chip.h:23
unsigned int a_d_btn_thr
Definition: chip.h:80
unsigned int micbias_pulse_lvl
Definition: chip.h:39
unsigned int d_b_btn_thr
Definition: chip.h:86
unsigned int bus_speed
Definition: chip.h:17
unsigned int c_mic_btn_thr
Definition: chip.h:98
unsigned int adc_1bit_rpt
Definition: chip.h:110
unsigned int mic_det_thr
Definition: chip.h:56
const char * mclk_name
Definition: chip.h:116
unsigned int jack_ins_deb
Definition: chip.h:62
unsigned int btn_avg
Definition: chip.h:104
unsigned int btn_cfg
Definition: chip.h:50