Commit 381d4f02 authored by Marc Jones's avatar Marc Jones Committed by chrome-bot
Browse files

kahlee: Add SDHCI/MMC boot support



Add support and required SDHCI quirks settings for StoneyRidge SOC.

BUG=b:63891719
BRANCH=none
TEST=Boot Kahlee onboard MMC.

Change-Id: I4fecfc532e364a99450340d86bf6a6b502475e36
Signed-off-by: default avatarMarc Jones <marcj303@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/584031


Commit-Ready: Marc Jones <marc.jones@scarletltd.com>
Tested-by: default avatarMarc Jones <marc.jones@scarletltd.com>
Reviewed-by: default avatarAaron Durbin <adurbin@chromium.org>
parent aacca183
......@@ -27,3 +27,6 @@ CONFIG_DRIVER_POWER_FCH=y
CONFIG_DRIVER_AHCI=y
CONFIG_DRIVER_TPM_LPC=y
CONFIG_DRIVER_SOUND_HDA=y
CONFIG_DRIVER_SDHCI=y
CONFIG_DRIVER_STORAGE_MMC=y
CONFIG_DRIVER_STORAGE_SDHCI_PCI=y
......@@ -27,10 +27,15 @@
#include "drivers/sound/sound.h"
#include "drivers/storage/ahci.h"
#include "drivers/storage/blockdev.h"
#include "drivers/storage/sdhci.h"
#include "drivers/tpm/lpc.h"
#include "drivers/bus/usb/usb.h"
#include "vboot/util/flag.h"
#define EMMC_SD_CLOCK_MIN 400000
#define EMMC_CLOCK_MAX 200000000
#define SD_CLOCK_MAX 52000000
static int board_setup(void)
{
sysinfo_install_flags(NULL);
......@@ -64,6 +69,13 @@ static int board_setup(void)
list_insert_after(&usb_xchi->list_node, &usb_host_controllers);
}
SdhciHost *emmc;
emmc = new_pci_sdhci_host(PCI_DEV(0, 0x14, 7),
SDHCI_PLATFORM_NO_EMMC_HS200,
EMMC_SD_CLOCK_MIN, EMMC_CLOCK_MAX);
list_insert_after(&emmc->mmc_ctrlr.ctrlr.list_node,
&fixed_block_dev_controllers);
power_set_ops(&kern_power_ops);
tpm_set_ops(&new_lpc_tpm((void *)(uintptr_t)0xfed40000)->ops);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment