coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variant.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <baseboard/variants.h>
4
5
void
variant_devtree_update
(
void
)
6
{
7
struct
soc_amd_picasso_config
*cfg;
8
9
cfg =
config_of_soc
();
10
11
/*
12
* Enable eMMC if eMMC bit is set in FW_CONFIG or device is unprovisioned.
13
*/
14
if
(!(
variant_has_emmc
() ||
boot_is_factory_unprovisioned
()))
15
cfg->
emmc_config
.
timing
=
SD_EMMC_DISABLE
;
16
}
variant_devtree_update
void variant_devtree_update(void)
Definition:
variant.c:53
config_of_soc
#define config_of_soc()
Definition:
device.h:394
boot_is_factory_unprovisioned
int boot_is_factory_unprovisioned(void)
Definition:
sku_id.c:14
soc_amd_picasso_config
Definition:
chip.h:97
soc_amd_picasso_config::emmc_config
struct soc_amd_picasso_config::@417 emmc_config
soc_amd_picasso_config::SD_EMMC_DISABLE
@ SD_EMMC_DISABLE
Definition:
chip.h:185
soc_amd_picasso_config::timing
enum soc_amd_picasso_config::@417::@422 timing
variant_has_emmc
int variant_has_emmc(void)
Definition:
helpers.c:103
src
mainboard
google
zork
variants
morphius
variant.c
Generated by
1.9.1