mb/google/corsola: Enable the SD card reader
The Kingler board has an SD card reader connected via USB and can be enabled by setting GPIO EN_PP3300_SDBRDG_X to output mode and activated. BUG=b:211385131 TEST=boot kernel using SD card. Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I903731ea4906328b2f0f5a7c6c06bd9c964d24ec Reviewed-on: https://review.coreboot.org/c/coreboot/+/60780 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
8eedca3e9e
commit
1e9dfd9d8c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue