summaryrefslogtreecommitdiff
path: root/src/mainboard/google/herobrine/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/herobrine/chromeos.c')
-rw-r--r--src/mainboard/google/herobrine/chromeos.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/herobrine/chromeos.c b/src/mainboard/google/herobrine/chromeos.c
index c46bf7c2ad..643dcc2477 100644
--- a/src/mainboard/google/herobrine/chromeos.c
+++ b/src/mainboard/google/herobrine/chromeos.c
@@ -6,10 +6,15 @@
void setup_chromeos_gpios(void)
{
-
+ gpio_input_pullup(GPIO_SD_CD_L);
}
void fill_lb_gpios(struct lb_gpios *gpios)
{
+ struct lb_gpio chromeos_gpios[] = {
+ {GPIO_SD_CD_L.addr, ACTIVE_LOW, gpio_get(GPIO_SD_CD_L),
+ "SD card detect"},
+ };
+ lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}