Commit a843f262 authored by YH Lin's avatar YH Lin Committed by chrome-bot
Browse files

kahlee: select emmc boot first if available



If available, select eMMC over SATA for booting.

BUG=b:63891719
BRANCH=None
TEST=build/flash/boot

Change-Id: I78b0e778be1afc9851f995ea63a95779428cf6b8
Signed-off-by: default avatarYH Lin <yueherngl@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/617200

Reviewed-by: default avatarAaron Durbin <adurbin@chromium.org>
parent f05c35a9
......@@ -49,6 +49,13 @@ static int board_setup(void)
HdaCodec *codec = new_hda_codec();
sound_set_ops(&codec->ops);
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);
AhciCtrlr *ahci = new_ahci_ctrlr(PCI_DEV(0, 17, 0));
list_insert_after(&ahci->ctrlr.list_node, &fixed_block_dev_controllers);
......@@ -69,13 +76,6 @@ 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