mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / intel / coffeelake_rvp / chromeos.c
blob85587d94c5d739510d4a5584b6c45e9db00fcae5
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootmode.h>
4 #include <boot/coreboot_tables.h>
5 #include <gpio.h>
6 #include <types.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)
20 /* Lid always open */
21 return 1;
24 int get_recovery_mode_switch(void)
26 return 0;
29 int get_write_protect_state(void)
31 /* No write protect */
32 return 0;