diff options
author | Ren Kuo <ren.kuo@quanta.corp-partner.google.com> | 2024-08-21 15:40:46 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-08-22 13:54:38 +0000 |
commit | 89869144bfe75efb3d224fb6e5a5e95700f7b0f9 (patch) | |
tree | 002fe09b5b88d3771aa74443c571fe2bc41d189f /src/mainboard | |
parent | 60d9121073e28c8457ba38e34a0dd13054b29ea2 (diff) |
mb/google/brox/var/jubilant: Enable devices on unprovisioned fw_config
Add the condition of unprovisioned fw_config to enable all storages
and devices. It's for first boot on all storags and preliminary test
in factory when fw_config is unprovisioned.
BUG=None
TEST=Build jubilant firmware and boot to OS on storages when fw_config
is unprovisioned and ensure all devices are enable.
Change-Id: Ia14632744c34548e2c201dfc58d82515cdd02df0
Signed-off-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84002
Reviewed-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Reviewed-by: Kenneth Chan <kenneth.chan@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
3 files changed, 11 insertions, 4 deletions
diff --git a/src/mainboard/google/brox/variants/jubilant/fw_config.c b/src/mainboard/google/brox/variants/jubilant/fw_config.c index ec95c5773b..7341afe9df 100644 --- a/src/mainboard/google/brox/variants/jubilant/fw_config.c +++ b/src/mainboard/google/brox/variants/jubilant/fw_config.c @@ -60,7 +60,7 @@ static const struct pad_config nvme_disable_pads[] = { static void fw_config_handle(void *unused) { if (!fw_config_is_provisioned()) { - printk(BIOS_WARNING, "FW_CONFIG is not provisioned. Exiting...\n"); + printk(BIOS_WARNING, "FW_CONFIG is unprovisioned. Skip disable device's pads.\n"); return; } diff --git a/src/mainboard/google/brox/variants/jubilant/overridetree.cb b/src/mainboard/google/brox/variants/jubilant/overridetree.cb index 01ac731cf5..6d7c3f834f 100644 --- a/src/mainboard/google/brox/variants/jubilant/overridetree.cb +++ b/src/mainboard/google/brox/variants/jubilant/overridetree.cb @@ -232,6 +232,7 @@ chip soc/intel/alderlake register "type" = "UPC_TYPE_INTERNAL" device ref usb2_port4 on probe DB_USB DB_1A_LTE + probe unprovisioned end end chip drivers/usb/acpi @@ -281,6 +282,7 @@ chip soc/intel/alderlake register "type" = "UPC_TYPE_INTERNAL" device ref usb3_port4 on probe DB_USB DB_1A_LTE + probe unprovisioned end end end @@ -308,6 +310,7 @@ chip soc/intel/alderlake register "add_acpi_dma_property" = "true" device pci 00.0 on probe WIFI_BT WIFI_BT_PCIE + probe unprovisioned end end chip soc/intel/common/block/pcie/rtd3 @@ -317,6 +320,7 @@ chip soc/intel/alderlake device generic 0 on end end probe WIFI_BT WIFI_BT_PCIE + probe unprovisioned end device ref cnvi_wifi on chip drivers/wifi/generic @@ -326,6 +330,7 @@ chip soc/intel/alderlake device generic 0 on end end probe WIFI_BT WIFI_BT_CNVI + probe unprovisioned end device ref ish on chip drivers/intel/ish @@ -441,6 +446,7 @@ chip soc/intel/alderlake register "input_analog_gain" = "1" device i2c 28 on probe DB_USB DB_1A_LTE + probe unprovisioned end end end @@ -458,6 +464,7 @@ chip soc/intel/alderlake register "enable_delay_ms" = "3" device spi 0 on probe FPMCU FPMCU_NUVOTON + probe unprovisioned end end # FPMCU end diff --git a/src/mainboard/google/brox/variants/jubilant/variant.c b/src/mainboard/google/brox/variants/jubilant/variant.c index c6b2626009..4b214aace6 100644 --- a/src/mainboard/google/brox/variants/jubilant/variant.c +++ b/src/mainboard/google/brox/variants/jubilant/variant.c @@ -9,7 +9,7 @@ void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) { - if (fw_config_probe(FW_CONFIG(WIFI_BT, WIFI_BT_CNVI))) { + if (fw_config_probe(FW_CONFIG(WIFI_BT, WIFI_BT_CNVI)) || (!fw_config_is_provisioned())) { printk(BIOS_INFO, "CNVi bluetooth enabled by fw_config\n"); config->cnvi_bt_core = true; config->cnvi_bt_audio_offload = true; @@ -31,8 +31,8 @@ void variant_devtree_update(void) struct device *ish = DEV_PTR(ish); struct device *nvme_rp = DEV_PTR(pcie4_0); - if (fw_config_probe(FW_CONFIG(STORAGE, STORAGE_UNKNOWN))) { - printk(BIOS_INFO, "fw_config storage is unknown so enable all storage devices.\n"); + if (fw_config_probe(FW_CONFIG(STORAGE, STORAGE_UNKNOWN)) || (!fw_config_is_provisioned())) { + printk(BIOS_INFO, "fw_config is unprovisioned or storage is unknown so enable all storage's configs.\n"); return; } |