summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-06-17 21:26:28 +0200
committerSven Schnelle <svens@stackframe.org>2011-06-18 10:02:09 +0200
commit00d46499a2b4a62af4ad5c22e229460d4da13449 (patch)
tree893cbb53f97f62d885207b6046122a24458b44a5 /src/mainboard
parentc045b4cc458a62dbb1dd99ae6a9343e52d1fe1e0 (diff)
T60: set dock LED's in mainboard.c
The docking takes place in romstage to have early serial I/O for debugging. But to keep romstage small and prevent linking the EC code to romstage, set the status LED's in ramstage. Change-Id: I89fadbd61b6bfd9aff8c22370e51c84325f24751 Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/42 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/lenovo/t60/mainboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/t60/mainboard.c b/src/mainboard/lenovo/t60/mainboard.c
index b58ca4c436..371085bd49 100644
--- a/src/mainboard/lenovo/t60/mainboard.c
+++ b/src/mainboard/lenovo/t60/mainboard.c
@@ -60,6 +60,9 @@ static void mainboard_enable(device_t dev)
ec_write(0x0c, 0x04);
}
+ /* set dock status led */
+ ec_write(0x0c, inb(0x164c) & 8 ? 0x88 : 0x08);
+
if (get_option(&defaults_loaded, "cmos_defaults_loaded") < 0) {
printk(BIOS_INFO, "failed to get cmos_defaults_loaded");
defaults_loaded = 0;