| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <console/console.h> |
| 5 |
#include <device/device.h> |
| 6 |
#include <fw_config.h> |
| 7 |
#include <sar.h> |
| 8 |
#include <static.h> |
| 9 |
|
| 10 |
const char *get_wifi_sar_cbfs_filename(void) |
| 11 |
{ |
| 12 |
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); |
| 13 |
} |
| 14 |
|
| 15 |
void variant_devtree_update(void) |
| 16 |
{ |
| 17 |
struct device *emmc = DEV_PTR(emmc); |
| 18 |
struct device *nvme_rp = DEV_PTR(pcie_rp9); |
| 19 |
|
| 20 |
if (!fw_config_is_provisioned()) { |
| 21 |
printk(BIOS_INFO, "fw_config unprovisioned so enable all storage devices\n"); |
| 22 |
return; |
| 23 |
} |
| 24 |
|
| 25 |
if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_EMMC))) { |
| 26 |
printk(BIOS_INFO, "eMMC disabled by fw_config\n"); |
| 27 |
emmc->enabled = 0; |
| 28 |
} |
| 29 |
|
| 30 |
if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_NVME))) { |
| 31 |
printk(BIOS_INFO, "NVMe disabled by fw_config\n"); |
| 32 |
nvme_rp->enabled = 0; |
| 33 |
} |
| 34 |
} |