[coreboot] New patch to review for coreboot: aadf4c5 X60/T60: reset baudrate loglevel to sane values

Sven Schnelle (svens@stackframe.org) gerrit at coreboot.org
Mon Nov 28 21:24:55 CET 2011


Sven Schnelle (svens at stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/459

-gerrit

commit aadf4c5effd7f31579d6105d82a7006d08eeab3e
Author: Sven Schnelle <svens at stackframe.org>
Date:   Mon Nov 28 21:12:11 2011 +0100

    X60/T60: reset baudrate loglevel to sane values
    
    Change-Id: Iaf5861e9db0a41a184da6d2e515e3b9afe0655d6
    Signed-off-by: Sven Schnelle <svens at stackframe.org>
---
 src/mainboard/lenovo/t60/mainboard.c |    4 ++++
 src/mainboard/lenovo/x60/mainboard.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/mainboard/lenovo/t60/mainboard.c b/src/mainboard/lenovo/t60/mainboard.c
index 19ac221..a1de756 100644
--- a/src/mainboard/lenovo/t60/mainboard.c
+++ b/src/mainboard/lenovo/t60/mainboard.c
@@ -90,6 +90,10 @@ static void mainboard_enable(device_t dev)
 		printk(BIOS_INFO, "Restoring CMOS defaults\n");
 		set_option("tft_brightness", &(u8[]){ 0xff });
 		set_option("volume", &(u8[]){ 0x03 });
+		/* set baudrate to 115200 baud */
+		set_option("baud_rate", &(u8[]){ 0x05 });
+		/* set default debug_level (DEFAULT_CONSOLE_LOGLEVEL starts at 1) */
+		set_option("debug_level", &(u8[]) { CONFIG_DEFAULT_CONSOLE_LOGLEVEL+1 });
 		set_option("cmos_defaults_loaded", &(u8[]){ 0x01 });
 	}
 }
diff --git a/src/mainboard/lenovo/x60/mainboard.c b/src/mainboard/lenovo/x60/mainboard.c
index 5bc1dca..ee6ac14 100644
--- a/src/mainboard/lenovo/x60/mainboard.c
+++ b/src/mainboard/lenovo/x60/mainboard.c
@@ -88,6 +88,10 @@ static void mainboard_enable(device_t dev)
 		printk(BIOS_INFO, "Restoring CMOS defaults\n");
 		set_option("tft_brightness", &(u8[]){ 0xff });
 		set_option("volume", &(u8[]){ 0x03 });
+		/* set baudrate to 115200 baud */
+		set_option("baud_rate", &(u8[]){ 0x05 });
+		/* set default debug_level (DEFAULT_CONSOLE_LOGLEVEL starts at 1) */
+		set_option("debug_level", &(u8[]) { CONFIG_DEFAULT_CONSOLE_LOGLEVEL+1 });
 		set_option("cmos_defaults_loaded", &(u8[]){ 0x01 });
 	}
 }




More information about the coreboot mailing list