diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/reef/variants/baseboard/gpio.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mainboard/google/reef/variants/baseboard/gpio.c b/src/mainboard/google/reef/variants/baseboard/gpio.c index e8b86001ec..d13f65bf0f 100644 --- a/src/mainboard/google/reef/variants/baseboard/gpio.c +++ b/src/mainboard/google/reef/variants/baseboard/gpio.c @@ -392,11 +392,18 @@ variant_sleep_gpio_table(u8 slp_typ, size_t *num) return sleep_gpio_table; } +/* GPIOs needed to be set in romstage. */ +static const struct pad_config romstage_gpio_table[] = { + /* Enable touchscreen, hold in reset */ + PAD_CFG_GPO(GPIO_152, 1, DEEP), /* Touch enable */ + PAD_CFG_GPO(GPIO_36, 1, DEEP), /* Touch reset */ +}; + /* Weak implementation of romstage gpio */ const struct pad_config *__weak variant_romstage_gpio_table(size_t *num) { - *num = 0; - return NULL; + *num = ARRAY_SIZE(romstage_gpio_table); + return romstage_gpio_table; } static const struct cros_gpio cros_gpios[] = { |