summaryrefslogtreecommitdiff
path: root/src/mainboard/google/geralt/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/geralt/chromeos.c')
-rw-r--r--src/mainboard/google/geralt/chromeos.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mainboard/google/geralt/chromeos.c b/src/mainboard/google/geralt/chromeos.c
index eb93be20c4..1723e6bfa8 100644
--- a/src/mainboard/google/geralt/chromeos.c
+++ b/src/mainboard/google/geralt/chromeos.c
@@ -7,9 +7,27 @@
#include "gpio.h"
+void setup_chromeos_gpios(void)
+{
+ /* Set up open-drain pins */
+ gpio_input(GPIO_EC_AP_INT_ODL);
+ gpio_input(GPIO_GSC_AP_INT_ODL);
+ gpio_input(GPIO_AP_WP_ODL);
+
+ /* Set up GPOs */
+ gpio_output(GPIO_AP_EC_WARM_RST_REQ, 0);
+ gpio_output(GPIO_EN_SPKR, 0);
+ gpio_output(GPIO_XHCI_INIT_DONE, 0);
+}
+
void fill_lb_gpios(struct lb_gpios *gpios)
{
- /* TODO: add Chrome specific gpios */
+ struct lb_gpio chromeos_gpios[] = {
+ {GPIO_EC_AP_INT_ODL.id, ACTIVE_LOW, -1, "EC interrupt"},
+ {GPIO_GSC_AP_INT_ODL.id, ACTIVE_HIGH, -1, "TPM interrupt"},
+ {GPIO_EN_SPKR.id, ACTIVE_HIGH, -1, "speaker enable"},
+ };
+ lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}
int tis_plat_irq_status(void)