1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
5 #include <device/device.h>
10 void variant_devtree_update(void)
12 struct device
*emmc
= DEV_PTR(emmc
);
13 struct device
*ufs
= DEV_PTR(ufs
);
14 struct device
*ish
= DEV_PTR(ish
);
16 if (!fw_config_is_provisioned()) {
17 printk(BIOS_INFO
, "fw_config unprovisioned so enable all storage devices\n");
21 if (!fw_config_probe(FW_CONFIG(STORAGE
, STORAGE_EMMC
))) {
22 printk(BIOS_INFO
, "eMMC disabled by fw_config\n");
26 if (!fw_config_probe(FW_CONFIG(STORAGE
, STORAGE_UFS
))) {
27 printk(BIOS_INFO
, "UFS disabled by fw_config\n");
33 const char *get_wifi_sar_cbfs_filename(void)
35 return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID2
));