diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-04-04 12:33:54 +0000 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2011-04-04 12:33:54 +0000 |
commit | bdb10594aa4fcff3c2200224fb33052cbbe753be (patch) | |
tree | 34beb583c41c1f106d8534d3e742216871db4b21 /src/mainboard | |
parent | 8099cbf76402e3ea6d5f8505426e4e224ead84cb (diff) | |
download | coreboot-bdb10594aa4fcff3c2200224fb33052cbbe753be.tar.xz |
X60: log firmware version
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Sven Schnelle <svens@stackframe.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6478 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/lenovo/x60/mainboard.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/mainboard.c b/src/mainboard/lenovo/x60/mainboard.c index 740e846786..d396b5b1d0 100644 --- a/src/mainboard/lenovo/x60/mainboard.c +++ b/src/mainboard/lenovo/x60/mainboard.c @@ -51,7 +51,24 @@ static void wlan_enable(void) static void mainboard_enable(device_t dev) { + unsigned char ecfw[9], c; + u16 fwvh, fwvl; device_t dev0; + int i; + + for(i = 0; i < 8; i++) { + c = ec_read(0xf0 + i); + if (c < 0x20 || c > 0x7f) + break; + ecfw[i] = c; + } + ecfw[i] = '\0'; + + fwvh = ec_read(0xe9); + fwvl = ec_read(0xe8); + + printk(BIOS_INFO, "EC Firmware ID %s, Version %d.%d%d%c\n", ecfw, + fwvh >> 4, fwvh & 0x0f, fwvl >> 4, 0x41 + (fwvl & 0xf)); backlight_enable(); trackpoint_enable(); |