1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <boot/coreboot_tables.h>
8 void fill_lb_gpios(struct lb_gpios
*gpios
)
10 struct lb_gpio chromeos_gpios
[] = {
11 {-1, ACTIVE_HIGH
, get_lid_switch(), "lid"},
12 {-1, ACTIVE_HIGH
, 0, "power"},
13 {-1, ACTIVE_HIGH
, gfx_get_init_done(), "oprom"},
15 lb_add_gpios(gpios
, chromeos_gpios
, ARRAY_SIZE(chromeos_gpios
));
18 int get_lid_switch(void)
24 int get_recovery_mode_switch(void)
29 int get_write_protect_state(void)
31 /* No write protect */