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
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();