Author: svens Date: Tue Apr 5 15:00:14 2011 New Revision: 6480 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6480
Log: X60: move ec version info code to log_ec_version()
Signed-off-by: Sven Schnelle svens@stackframe.org Acked-by: Sven Schnelle svens@stackframe.org
Modified: trunk/src/mainboard/lenovo/x60/mainboard.c
Modified: trunk/src/mainboard/lenovo/x60/mainboard.c ============================================================================== --- trunk/src/mainboard/lenovo/x60/mainboard.c Mon Apr 4 17:19:59 2011 (r6479) +++ trunk/src/mainboard/lenovo/x60/mainboard.c Tue Apr 5 15:00:14 2011 (r6480) @@ -49,11 +49,10 @@ ec_write(0x3a, 0x20); }
-static void mainboard_enable(device_t dev) +static void log_ec_version(void) { unsigned char ecfw[9], c; u16 fwvh, fwvl; - device_t dev0; int i;
for(i = 0; i < 8; i++) { @@ -69,9 +68,17 @@
printk(BIOS_INFO, "EC Firmware ID %s, Version %d.%d%d%c\n", ecfw, fwvh >> 4, fwvh & 0x0f, fwvl >> 4, 0x41 + (fwvl & 0xf)); +} + +static void mainboard_enable(device_t dev) +{ + device_t dev0; + + log_ec_version();
backlight_enable(); trackpoint_enable(); + /* FIXME: this should be ACPI's task * but for now, enable it here */ wlan_enable();