From a90c7859d9c7cec337a8148e186344a1ca152b40 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 15 Apr 2015 13:46:08 +0200 Subject: mb/kontron/ktqm77: Let suspend LED flash slowly in S3/S4 Change-Id: Idb37abea01831631aadba66ecd42bc7df03aa857 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/16727 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/mainboard/kontron/ktqm77/acpi/platform.asl | 12 +++++++++++- src/mainboard/kontron/ktqm77/romstage.c | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/kontron/ktqm77/acpi/platform.asl b/src/mainboard/kontron/ktqm77/acpi/platform.asl index 9567c8df59..49bcea191f 100644 --- a/src/mainboard/kontron/ktqm77/acpi/platform.asl +++ b/src/mainboard/kontron/ktqm77/acpi/platform.asl @@ -20,12 +20,22 @@ Method(_PTS,1) { - + /* Let suspend LED flash slowly in S3 and S4 */ + If (LOr (LEqual (Arg0, 3), LEqual (Arg0, 4))) + { + \_SB.PCI0.LPCB.SIO0.SUSL (0x06) + } + Else + { + \_SB.PCI0.LPCB.SIO0.SUSL (0x02) + } } /* The _WAK method is called on system wakeup */ Method(_WAK,1) { + /* Disable suspend LED during normal operation */ + \_SB.PCI0.LPCB.SIO0.SUSL (0x02) Return(Package(){0,0}) } diff --git a/src/mainboard/kontron/ktqm77/romstage.c b/src/mainboard/kontron/ktqm77/romstage.c index 973119b69f..57a7fa2e59 100644 --- a/src/mainboard/kontron/ktqm77/romstage.c +++ b/src/mainboard/kontron/ktqm77/romstage.c @@ -94,6 +94,7 @@ void mainboard_config_superio(void) /* Values can only be changed, when devices are enabled. */ pnp_write_config(dev, 0xe3, 0xdd); /* GPIO2 bits 1, 5 are output */ pnp_write_config(dev, 0xe4, (dis_bl_inv << 5) | (lvds_3v << 1)); /* GPIO2 bits 1, 5 */ + pnp_write_config(dev, 0xf3, 0x40); /* Disable suspend LED during normal operation */ pnp_exit_ext_func_mode(dev); } -- cgit v1.2.3