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>
This commit is contained in:
Stefan Reinauer 2012-11-30 12:03:46 -08:00 committed by Ronald G. Minnich
parent 3d6eb29099
commit 859e808709
2 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,6 @@
#if !defined(__ASSEMBLER__) && !defined(__PRE_RAM__)
void set_boot_successful(void);
void boot_successful(void);
#endif /* __ASSEMBLER__ */

View File

@ -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)
{