From 1990ab9f151ce3c2ccc2a4c84fd6cda5a5b0e2c1 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 23 May 2013 13:26:37 +0200 Subject: [PATCH] OT200: bring LEDs into a defined state Keep in mind that we can _NOT_ read back the current state of the LEDS as some crazy FPGA designer wanted it that way. Change-Id: I5cd1ac598072318b3234d1ec35a79271655b46ac Signed-off-by: Christian Gmeiner Reviewed-on: http://review.coreboot.org/3271 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/mainboard/bachmann/ot200/mainboard.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mainboard/bachmann/ot200/mainboard.c b/src/mainboard/bachmann/ot200/mainboard.c index 0ea053aad0..d4b0b2daae 100644 --- a/src/mainboard/bachmann/ot200/mainboard.c +++ b/src/mainboard/bachmann/ot200/mainboard.c @@ -22,6 +22,7 @@ #include #include #include +#include /* overwrite a weak function to fill SMBIOS table with a custom value */ static u8 hw_rev = 0; @@ -52,6 +53,14 @@ static void init(struct device *dev) return; } + /* turn off all leds except led_ini */ + outb(0x02, 0x5a); /* bit0 - led_run */ + /* bit1 - led_ini */ + /* bit2 - led_err */ + /* bit3-bit7 - write has no effect */ + outb(0x00, 0x49); /* bit0-bit6 - led_7-led_1 */ + /* bit7 - write has no effect */ + /* read the whole block and check if checksum is okay */ for (i = 0; i < 20; i++) { block[i] = smbus_read_byte(eeprom_dev, i);