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-only */
2 
3 #ifndef LUMPY_ONBOARD_H
4 #define LUMPY_ONBOARD_H
5 
6 #define BOARD_LIGHTSENSOR_NAME "lightsensor"
7 #define BOARD_LIGHTSENSOR_I2C_ADDR 0x44
8 #define BOARD_LIGHTSENSOR_IRQ 20
9 
10 #define BOARD_TRACKPAD_NAME "trackpad"
11 #define BOARD_TRACKPAD_I2C_ADDR 0x67
12 #define BOARD_TRACKPAD_IRQ 21
13 #define BOARD_TRACKPAD_WAKE_GPIO 0x1b
14 
15 /* Write Protect: GPIO24 = KBC3_SPI_WP#, active high */
16 #define GPIO_SPI_WP 24
17 
18 /* Recovery: GPIO42 = CHP3_REC_MODE#, active low */
19 #define GPIO_REC_MODE 42
20 
21 #ifndef __ACPI__
22 int get_power_switch(void);
23 #endif
24 
25 #endif
int get_power_switch(void)
Definition: chromeos.c:50