Debian Codegraph @

src/mainboard/intel/coffeelake_rvp/chromeos.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <bootmode.h>
4 #include <boot/coreboot_tables.h>
5 #include <gpio.h>
6 #include <types.h>
7
8 void fill_lb_gpios(struct lb_gpios *gpios)
9 {
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"},
14 };
15 lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
16 }
17
18 int get_lid_switch(void)
19 {
20 /* Lid always open */
21 return 1;
22 }
23
24 int get_recovery_mode_switch(void)
25 {
26 return 0;
27 }
28
29 int get_write_protect_state(void)
30 {
31 /* No write protect */
32 return 0;
33 }