From b9b2c6fef2e61721e5425345ff7951697b257569 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Fri, 13 Nov 2015 16:21:48 +0800 Subject: google/oak: Configurate SD card detection pin BRANCH=none BUG=chrome-os-partner:47609 TEST=remove servo board connection and insert/remove an empty SD card in recovery mode. Change-Id: I89a1cb6914d634f07ff71b9793eb29b711381524 Signed-off-by: Patrick Georgi Original-Commit-Id: d21bf091a576574cb9e976447ee2b9a69748d2b6 Original-Change-Id: I2083605c9ad88841885dfaad48dcd27e6fb5161d Original-Signed-off-by: Yidi Lin Original-Reviewed-on: https://chromium-review.googlesource.com/313073 Original-Reviewed-by: Julius Werner Reviewed-on: https://review.coreboot.org/13099 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/oak/mainboard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c index fbdddb6930..52d6bd41d7 100644 --- a/src/mainboard/google/oak/mainboard.c +++ b/src/mainboard/google/oak/mainboard.c @@ -110,6 +110,9 @@ static void mainboard_init(device_t dev) */ mt6391_gpio_output(MT6391_KP_ROW2, 1); + /* Config SD card detection pin */ + gpio_input(PAD_EINT1); /* SD_DET */ + configure_audio(); configure_backlight(); configure_usb(); -- cgit v1.2.3