From 187ec7986d5a68723cf3f92f461cfbd5ac1648e8 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Mon, 4 Mar 2024 15:12:55 +0000 Subject: [PATCH] acpi: Guard CBMEM driver against Chrome devices Commit ce10b6f82185baa2a777d946ca6c9ba72d3d6ef8 unhid the BOOT0000 device from Windows. It requires a driver that's available from Coolstars EC bundle. Guard this against the ChromeEC, so that non-Chromebooks don't get an error device in Device Manager. Signed-off-by: Sean Rhodes Change-Id: I6645c1be7d602a2775f703f5cf56e4c9d6f3bb76 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81029 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/acpi/acpi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 06aa038caa..ffd9b7911f 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -304,7 +304,10 @@ static void acpi_ssdt_write_cbtable(void) acpigen_write_device("CTBL"); acpigen_write_coreboot_hid(COREBOOT_ACPI_ID_CBTABLE); acpigen_write_name_integer("_UID", 0); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + if (CONFIG(EC_GOOGLE_CHROMEEC)) + acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + else + acpigen_write_STA(ACPI_STATUS_DEVICE_HIDDEN_ON); acpigen_write_name("_CRS"); acpigen_write_resourcetemplate_header(); acpigen_resource_consumer_mmio(base, base + size - 1,