56 struct lb_gpio chromeos_gpios[] = {
88 #define WIPEOUT_MODE_DELAY_MS (8 * 1000)
89 #define RECOVERY_MODE_EXTRA_DELAY_MS (8 * 1000)
104 if (!sampled_value) {
void fill_lb_gpios(struct lb_gpios *gpios)
int get_write_protect_state(void)
Only used if CONFIG(CHROMEOS) is set.
static const u32 pattern[8]
#define printk(level,...)
uint32_t board_id(void)
board_id() - Get the board version
int get_ec_is_trusted(void)
int get_recovery_mode_switch(void)
HACK: Use Fn-Key as recovery mode switch.
static int read_gpio(gpio_t gpio_num)
static enum switch_state get_switch_state(void)
#define WIPEOUT_MODE_DELAY_MS
static void display_pattern(int pattern)
static int get_rec_sw_gpio_pin(void)
#define RECOVERY_MODE_EXTRA_DELAY_MS
int get_wipeout_mode_switch(void)
static int get_wp_status_gpio_pin(void)
void lb_add_gpios(struct lb_gpios *gpios, const struct lb_gpio *gpio_table, size_t count)
int gpio_get(gpio_t gpio)
static int stopwatch_expired(struct stopwatch *sw)
static void stopwatch_init_msecs_expire(struct stopwatch *sw, long ms)
#define BIOS_INFO
BIOS_INFO - Expected events.
void gpio_tlmm_config_set(gpio_t gpio, unsigned int func, unsigned int pull, unsigned int drvstr, unsigned int enable)
#define GPIO_FUNC_DISABLE
int ww_ring_display_pattern(unsigned int i2c_bus, enum display_pattern pattern)