Ronald G. Minnich (rminnich(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3987
-gerrit
commit c1291d3497be29674e6d7c3f05cd1c39772ab9f4
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Mon Oct 21 20:23:35 2013 +0200
google/parrot/smihandler.c: Use `battery_critical_logged` only with `ELOG_GSMI`
Make the declaration and use of it conditional on the ELOG_GSMI Kconfig variable.
Change-Id: I2ef291d2f3e7d35545014e03ba8e0045da6050e5
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/mainboard/google/parrot/smihandler.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c
index a5f6ba2..ec2c9ea 100644
--- a/src/mainboard/google/parrot/smihandler.c
+++ b/src/mainboard/google/parrot/smihandler.c
@@ -94,7 +94,9 @@ static u8 mainboard_smi_ec(void)
{
u8 src;
u32 pm1_cnt;
+#if CONFIG_ELOG_GSMI
static int battery_critical_logged;
+#endif
ec_kbc_write_cmd(0x56);
src = ec_kbc_read_ob();
@@ -106,8 +108,8 @@ static u8 mainboard_smi_ec(void)
if (!battery_critical_logged)
elog_add_event_byte(ELOG_TYPE_EC_EVENT,
EC_EVENT_BATTERY_CRITICAL);
-#endif
battery_critical_logged = 1;
+#endif
break;
case EC_LID_CLOSE:
printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n");
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3987
-gerrit
commit e773d51e9f7988aef065a99d5fece932d6f28ce7
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Mon Oct 21 20:23:35 2013 +0200
google/parrot/smihandler.c: Use `battery_critical_logged` only with `ELOG_GSMI`
Removing `-Wno-unused-but-set-variable` from `CFLAGS` results in the
following error.
CC mainboard/google/parrot/smihandler.smm.o
src/mainboard/google/parrot/smihandler.c: In function 'mainboard_smi_ec':
src/mainboard/google/parrot/smihandler.c:97:13: error: variable 'battery_critical_logged' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
As the variable is only used, when the Kconfig variable `ELOG_GSMI` is
not zero, only declare and set it in that case.
Change-Id: I2ef291d2f3e7d35545014e03ba8e0045da6050e5
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/mainboard/google/parrot/smihandler.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c
index a5f6ba2..ec2c9ea 100644
--- a/src/mainboard/google/parrot/smihandler.c
+++ b/src/mainboard/google/parrot/smihandler.c
@@ -94,7 +94,9 @@ static u8 mainboard_smi_ec(void)
{
u8 src;
u32 pm1_cnt;
+#if CONFIG_ELOG_GSMI
static int battery_critical_logged;
+#endif
ec_kbc_write_cmd(0x56);
src = ec_kbc_read_ob();
@@ -106,8 +108,8 @@ static u8 mainboard_smi_ec(void)
if (!battery_critical_logged)
elog_add_event_byte(ELOG_TYPE_EC_EVENT,
EC_EVENT_BATTERY_CRITICAL);
-#endif
battery_critical_logged = 1;
+#endif
break;
case EC_LID_CLOSE:
printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n");
the following patch was just integrated into master:
commit 1ce4860405d995585d08350481932238ee2f8c4a
Author: Andrew Wu <arw(a)dmp.com.tw>
Date: Sat Oct 19 01:33:08 2013 +0800
vortex86ex: Defer checking PS/2 keyboard controller system flag
Don't check keyboard controller system flag until before calling
pc_keyboard_init(). This makes waiting time shorter.
Change-Id: I2cdb533a5b25575e1717434533a60decf748f6d8
Signed-off-by: Andrew Wu <arw(a)dmp.com.tw>
Reviewed-on: http://review.coreboot.org/3958
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich(a)gmail.com>
See http://review.coreboot.org/3958 for details.
-gerrit
the following patch was just integrated into master:
commit ac164057993e9edbfe78537efbbc9ef5f75cd67c
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Fri Oct 11 21:14:59 2013 +0300
usbdebug: Fix boards without EARLY_CBMEM_INIT
The main usbdebug file lib/usbdebug.c was removed from romstage
build with commit f8bf5a10 but the chipset-specific parts were not,
leading to unresolved symbol errors for AMD platforms.
Add a silent Kconfig variable USBDEBUG_IN_ROMSTAGE for convenient
use of this feature.
Change-Id: I0cd3fccf2612cf08497aa5c3750c89bf43ff69be
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Reviewed-on: http://review.coreboot.org/3983
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)google.com>
See http://review.coreboot.org/3983 for details.
-gerrit