summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2013-05-23 13:26:37 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2013-06-10 08:45:50 +0200
commit1990ab9f151ce3c2ccc2a4c84fd6cda5a5b0e2c1 (patch)
treea15c7b07d4206da2f8e00844245ed9888fbe923f /src
parent641f00ce643fe661de494d3c29118f836664a02d (diff)
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 <christian.gmeiner@gmail.com> Reviewed-on: http://review.coreboot.org/3271 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/bachmann/ot200/mainboard.c9
1 files changed, 9 insertions, 0 deletions
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 <smbios.h>
#include <console/console.h>
#include <cpu/x86/msr.h>
+#include <arch/io.h>
/* 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);