9 #include <vendorcode/google/chromeos/chromeos.h>
12 #define WP_STATUS_PAD_CFG0 0x4838
13 #define WP_STATUS_PAD_CFG1 0x483C
15 #define WP_GPIO GP_E_22
22 struct lb_gpio chromeos_gpios[] = {
39 if (
CONFIG(BOARD_GOOGLE_CYAN)) {
50 if (
CONFIG(BOARD_GOOGLE_CYAN)) {
void fill_lb_gpios(struct lb_gpios *gpios)
int get_write_protect_state(void)
Only used if CONFIG(CHROMEOS) is set.
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
int gfx_get_init_done(void)
DECLARE_CROS_GPIOS(cros_gpios)
int get_ec_is_trusted(void)
#define WP_STATUS_PAD_CFG1
#define WP_STATUS_PAD_CFG0
static const struct cros_gpio cros_gpios[]
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_pullup(gpio_t gpio)
#define CROS_GPIO_DEVICE_NAME
#define PAD_CONFIG1_DEFAULT0
#define PAD_CONFIG0_GPI_DEFAULT
#define COMMUNITY_GPEAST_BASE