summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/x60/mainboard.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-04-04 10:57:17 +0000
committerSven Schnelle <svens@stackframe.org>2011-04-04 10:57:17 +0000
commit8099cbf76402e3ea6d5f8505426e4e224ead84cb (patch)
treee8450f7fe8158550fbec7106cc80d5c0286b892d /src/mainboard/lenovo/x60/mainboard.c
parent5fc5a80ce375a14cf69e8644a3a80821ce6d848d (diff)
downloadcoreboot-8099cbf76402e3ea6d5f8505426e4e224ead84cb.tar.xz
X60: blink suspend LED during resume
Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Sven Schnelle <svens@stackframe.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6477 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/lenovo/x60/mainboard.c')
-rw-r--r--src/mainboard/lenovo/x60/mainboard.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/mainboard.c b/src/mainboard/lenovo/x60/mainboard.c
index 6606a87695..740e846786 100644
--- a/src/mainboard/lenovo/x60/mainboard.c
+++ b/src/mainboard/lenovo/x60/mainboard.c
@@ -32,6 +32,7 @@
#include <arch/io.h>
#include <ec/lenovo/pmh7/pmh7.h>
#include <ec/acpi/ec.h>
+#include <northbridge/intel/i945/i945.h>
static void backlight_enable(void)
{
@@ -50,6 +51,8 @@ static void wlan_enable(void)
static void mainboard_enable(device_t dev)
{
+ device_t dev0;
+
backlight_enable();
trackpoint_enable();
/* FIXME: this should be ACPI's task
@@ -77,6 +80,11 @@ static void mainboard_enable(device_t dev)
/* enable Audio */
ec_clr_bit(0x3a, 0);
+
+ /* If we're resuming from suspend, blink suspend LED */
+ dev0 = dev_find_slot(0, PCI_DEVFN(0,0));
+ if (dev0 && pci_read_config32(dev0, SKPAD) == 0xcafed00d)
+ ec_write(0x0c, 0xc7);
}
struct chip_operations mainboard_ops = {