diff options
-rw-r--r-- | src/mainboard/google/corsola/Kconfig | 3 | ||||
-rw-r--r-- | src/mainboard/google/corsola/gpio.h | 3 | ||||
-rw-r--r-- | src/mainboard/google/corsola/mainboard.c | 5 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/mainboard/google/corsola/Kconfig b/src/mainboard/google/corsola/Kconfig index 88b390d987..7bf557fd2c 100644 --- a/src/mainboard/google/corsola/Kconfig +++ b/src/mainboard/google/corsola/Kconfig @@ -55,7 +55,8 @@ config BOOT_DEVICE_SPI_FLASH_BUS config SDCARD_INIT bool - default n + default y if BOARD_GOOGLE_KINGLER_COMMON + default n if BOARD_GOOGLE_KRABBY_COMMON config DRIVER_TPM_SPI_BUS hex diff --git a/src/mainboard/google/corsola/gpio.h b/src/mainboard/google/corsola/gpio.h index 8f8fb72776..d42a5ef0f8 100644 --- a/src/mainboard/google/corsola/gpio.h +++ b/src/mainboard/google/corsola/gpio.h @@ -26,6 +26,9 @@ #define GPIO_EN_SPK GPIO(PERIPHERAL_EN3) #define GPIO_BEEP_ON GPIO(PERIPHERAL_EN4) +/* GPIOs for SD card */ +#define GPIO_EN_PP3300_SDBRDG_X GPIO(PERIPHERAL_EN7) + /* GPIOs for display */ #define GPIO_AP_EDP_BKLTEN GPIO(PERIPHERAL_EN5) #define GPIO_BL_PWM_1V8 GPIO(DISP_PWM) diff --git a/src/mainboard/google/corsola/mainboard.c b/src/mainboard/google/corsola/mainboard.c index 959dca6767..c0a6449b39 100644 --- a/src/mainboard/google/corsola/mainboard.c +++ b/src/mainboard/google/corsola/mainboard.c @@ -4,6 +4,7 @@ #include <bootmode.h> #include <console/console.h> #include <device/device.h> +#include <gpio.h> #include <soc/msdc.h> #include <soc/spm.h> #include <soc/usb.h> @@ -41,7 +42,9 @@ static void mainboard_init(struct device *dev) if (CONFIG(SDCARD_INIT)) { printk(BIOS_INFO, "SD card init\n"); - mtk_msdc_configure_sdcard(); + + /* External SD Card connected via USB */ + gpio_output(GPIO_EN_PP3300_SDBRDG_X, 1); } setup_usb_host(); |