mb/google/zork: disable eMMC per FW_CONFIG for Morphius
Morphius has SSD/eMMC SKU, we should turn off eMMC if storage is NVMe SSD. BUG=b:169211959 BRANCH=zork TEST=1. emerge-zork coreboot 2. Check eMMC is enabled or disabled based on the eMMC bit in FW_CONFIG. Change-Id: I67d5d77ce3d827ae89b82529de59925f67eaf894 Signed-off-by: Kevin Chiu <kevin.chiu@quantatw.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45755 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Kangheui Won <khwon@chromium.org>
This commit is contained in:
parent
263e2e15ba
commit
03902a01da
|
@ -3,3 +3,4 @@
|
||||||
subdirs-y += ./spd
|
subdirs-y += ./spd
|
||||||
|
|
||||||
ramstage-y += gpio.c
|
ramstage-y += gpio.c
|
||||||
|
ramstage-y += variant.c
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
|
#include <baseboard/variants.h>
|
||||||
|
|
||||||
|
void variant_devtree_update(void)
|
||||||
|
{
|
||||||
|
struct soc_amd_picasso_config *cfg;
|
||||||
|
|
||||||
|
cfg = config_of_soc();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable eMMC if eMMC bit is set in FW_CONFIG or device is unprovisioned.
|
||||||
|
*/
|
||||||
|
if (!(variant_has_emmc() || boot_is_factory_unprovisioned()))
|
||||||
|
cfg->emmc_config.timing = SD_EMMC_DISABLE;
|
||||||
|
}
|
Loading…
Reference in New Issue