summaryrefslogtreecommitdiff
path: root/src/mainboard/purism
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@puri.sm>2022-05-26 16:39:25 -0500
committerMartin L Roth <gaumless@tutanota.com>2022-06-02 19:45:18 +0000
commit88698b4a83cf9f44bbdf65efc41ee890ebac62d5 (patch)
treef7f86f199f4c716c528a35c68b02c2e84da6a926 /src/mainboard/purism
parent4c8f7785f9a4d197d9bfa081850f46731e724be2 (diff)
mb/purism/librem_mini: Hide Linux GPIO LED from Windows
Hide the Linux gpio-led ACPI device from Windows by setting the device status (_STA) to 0xB (enabled, hidden) so Windows doesn't show an unknown device/missing drivers in Device Manger. Linux doesn't care about the _STA value. Test: build/boot Windows (10/11) and Linux (PureOS 10) on a Librem Mini v2, verify LED works under Linux, is ignored under Windows Change-Id: If3ee0db685a2f7dab505602afa98c3c2d5adf5d3 Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64710 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/mainboard/purism')
-rw-r--r--src/mainboard/purism/librem_cnl/variants/librem_mini/include/variant/acpi/variant.asl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainboard/purism/librem_cnl/variants/librem_mini/include/variant/acpi/variant.asl b/src/mainboard/purism/librem_cnl/variants/librem_mini/include/variant/acpi/variant.asl
index 727a9d4ff5..4f4374e3b5 100644
--- a/src/mainboard/purism/librem_cnl/variants/librem_mini/include/variant/acpi/variant.asl
+++ b/src/mainboard/purism/librem_cnl/variants/librem_mini/include/variant/acpi/variant.asl
@@ -21,6 +21,7 @@ Scope (\_SB)
{
Name (_HID, "PRP0001")
Name (_DDN, "GPIO LEDs device")
+ Name (_STA, 0xb)
Name (_CRS, ResourceTemplate () {
GpioIo (