coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
onboard.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef ONBOARD_H
4 #define ONBOARD_H
5 
6 /*
7  * Calculation of gpio based irq.
8  * Gpio banks ordering : GPSW, GPNC, GPEC, GPSE
9  * Max direct irq (MAX_DIRECT_IRQ) is 114.
10  * Size of gpio banks are
11  * GPSW_SIZE = 98
12  * GPNC_SIZE = 73
13  * GPEC_SIZE = 27
14  * GPSE_SIZE = 86
15  */
16 
17 /* Audio: Gpio index in SW bank */
18 #define JACK_DETECT_GPIO_INDEX 77
19 
20 /* SCI: Gpio index in N bank */
21 #define BOARD_SCI_GPIO_INDEX 15
22 
23 #define SDCARD_CD 81
24 
25 #define AUDIO_CODEC_HID "10EC5670"
26 #define AUDIO_CODEC_CID "10EC5670"
27 #define AUDIO_CODEC_DDN "RTEK Codec Controller "
28 #define AUDIO_CODEC_I2C_ADDR 0x1C
29 
30 #define BCRD2_PMIC_I2C_BUS 0x01
31 
32 #endif