[coreboot-gerrit] New patch to review for coreboot: c3a5c16 OT200: bring LEDs into a defined state
Christian Gmeiner (christian.gmeiner@gmail.com)
gerrit at coreboot.org
Thu May 23 12:56:35 CEST 2013
Christian Gmeiner (christian.gmeiner at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3271
-gerrit
commit c3a5c16b1bcc0915581393e8f7dd7aa50335e2b9
Author: Christian Gmeiner <christian.gmeiner at gmail.com>
Date: Thu May 23 13:26:37 2013 +0200
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 at gmail.com>
---
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 0ea053a..d4b0b2d 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);
More information about the coreboot-gerrit
mailing list