console: Make use of CONFIG_USE_OPTION_TABLE

It makes much more sense to use CONFIG_USE_OPTION_TABLE instead
of CONFIG_HAVE_CMOS_DEFAULT. As we want to read the used
debug_level from our CMOS. This change makes it possible to
change log_debug via nvramtool and make use of the new
value after a reboot/poweroff.

CONFIG_HAVE_CMOS_DEFAULT does have an other meaning

Change-Id: I438dd01a2b4171dba2b73f2001511c71f4317725
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-on: http://review.coreboot.org/2381
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Christian Gmeiner 2013-02-13 11:07:38 +01:00 committed by Stefan Reinauer
parent d2be1f11e1
commit 8b5b764af6
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
* storage can be used. This will benefit machines without CMOS as well as those * storage can be used. This will benefit machines without CMOS as well as those
* without a battery-backed CMOS (e.g. some laptops). * without a battery-backed CMOS (e.g. some laptops).
*/ */
#if CONFIG_HAVE_CMOS_DEFAULT #if CONFIG_USE_OPTION_TABLE
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#else #else
static inline int get_option(void *dest, const char *name) { return -1; } static inline int get_option(void *dest, const char *name) { return -1; }