11 #define GPIO_WP GPIO(7, A, 6)
12 #define GPIO_LID GPIO(0, A, 6)
13 #define GPIO_POWER GPIO(0, A, 5)
14 #define GPIO_RECOVERY GPIO(0, B, 1)
15 #define GPIO_ECINRW GPIO(0, A, 7)
16 #define GPIO_ECIRQ GPIO(7, A, 7)
29 struct lb_gpio chromeos_gpios[] = {
void fill_lb_gpios(struct lb_gpios *gpios)
int get_write_protect_state(void)
Only used if CONFIG(CHROMEOS) is set.
uint64_t google_chromeec_get_events_b(void)
@ EC_HOST_EVENT_KEYBOARD_RECOVERY
#define EC_HOST_EVENT_MASK(event_code)
int get_ec_is_trusted(void)
void setup_chromeos_gpios(void)
int get_recovery_mode_switch(void)
HACK: Use Fn-Key as recovery mode switch.
void lb_add_gpios(struct lb_gpios *gpios, const struct lb_gpio *gpio_table, size_t count)
int gpio_get(gpio_t gpio)
void gpio_input(gpio_t gpio)
void gpio_input_pullup(gpio_t gpio)
unsigned long long uint64_t