diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-11-30 12:03:46 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2012-11-30 21:33:35 +0100 |
commit | 859e808709c352210eb1ad92bf805e3c36c06ec5 (patch) | |
tree | 06897f0e3865de0ca865682b41911209c9f4890b /src/lib | |
parent | 3d6eb29099162b0b632032c6a42b97cf263ce00e (diff) | |
download | coreboot-859e808709c352210eb1ad92bf805e3c36c06ec5.tar.xz |
Make set_boot_successful depend on PC80_SYSTEM
Set_boot_successful depends on CMOS parts that non-PC80
platforms do not have. For now, make the current path
depend on CONFIG_PC80_SYSTEM, and make the alternative
empty.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Change-Id: I68cf63367c8054d09a7a22303e7c04fb35ad0153
Reviewed-on: http://review.coreboot.org/1954
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/fallback_boot.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c index b5ec6c3030..ce1ba851fe 100644 --- a/src/lib/fallback_boot.c +++ b/src/lib/fallback_boot.c @@ -1,11 +1,12 @@ #include <console/console.h> #include <fallback.h> #include <watchdog.h> -#include <pc80/mc146818rtc.h> #include <arch/io.h> +#if CONFIG_PC80_SYSTEM +#include <pc80/mc146818rtc.h> -void set_boot_successful(void) +static void set_boot_successful(void) { /* Remember I succesfully booted by setting * the initial boot direction @@ -25,6 +26,12 @@ void set_boot_successful(void) byte &= 0x0f; outb(byte, RTC_PORT(1)); } +#else +static void set_boot_successful(void) +{ + /* To be implemented */ +} +#endif void boot_successful(void) { |