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