From 936dbe1d064b24bb5f38889d50795e68a2309e62 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Mon, 10 Sep 2018 10:51:26 +0800 Subject: sconfig: Allow setting device status in device tree For devices supporting both Linux and Windows, we may find some ACPI devices that only need drivers in Linux and should not even be shown in Windows Device Manager UI. The new 'hidden' keyword in device tree 'device' statement allows devices sharing same driver to call acpi_gen_writeSTA with different values. BUG=b:72200466 BRANCH=eve TEST=Builds and boots properly on device eve Change-Id: Iae881a294b122d3a581b456285d2992ab637fb8e Signed-off-by: Hung-Te Lin Reviewed-on: https://review.coreboot.org/28566 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie --- src/include/device/device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/device/device.h') diff --git a/src/include/device/device.h b/src/include/device/device.h index 1c8f1db3c0..6713c9492c 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -133,6 +133,7 @@ struct device { unsigned int initialized : 1; /* 1 if we have initialized the device */ unsigned int on_mainboard : 1; unsigned int disable_pcie_aspm : 1; + unsigned int hidden : 1; /* set if we should hide from UI */ struct pci_irq_info pci_irq_info[4]; u8 command; -- cgit v1.2.3