summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/kukui/chromeos.c2
-rw-r--r--src/mainboard/google/kukui/gpio.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/google/kukui/chromeos.c b/src/mainboard/google/kukui/chromeos.c
index 9184d8835d..bb14b1cc70 100644
--- a/src/mainboard/google/kukui/chromeos.c
+++ b/src/mainboard/google/kukui/chromeos.c
@@ -21,12 +21,14 @@
void setup_chromeos_gpios(void)
{
+ gpio_input_pullup(EC_IN_RW);
gpio_input_pullup(EC_IRQ);
}
void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio chromeos_gpios[] = {
+ {EC_IN_RW.id, ACTIVE_HIGH, -1, "EC in RW"},
{EC_IRQ.id, ACTIVE_LOW, -1, "EC interrupt"},
};
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
diff --git a/src/mainboard/google/kukui/gpio.h b/src/mainboard/google/kukui/gpio.h
index cb9ad24906..a2f77606ac 100644
--- a/src/mainboard/google/kukui/gpio.h
+++ b/src/mainboard/google/kukui/gpio.h
@@ -18,7 +18,8 @@
#include <soc/gpio.h>
-#define EC_IRQ GPIO(PERIPHERAL_EN1)
+#define EC_IRQ GPIO(PERIPHERAL_EN1)
+#define EC_IN_RW GPIO(PERIPHERAL_EN14)
void setup_chromeos_gpios(void);