Conditionally #include mc1468181rtc if CMOS_POST is enabled

This will omit the mc1468181rtc header if it is not needed. Currently
it contains a lot of inlined functions which depend on architecture-
specific IO.

Change-Id: I4ef1bc1362c159e0c780c3eade01af04f029f949
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/1916
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
David Hendricks 2012-11-26 15:07:39 -08:00
parent 6b908d08ab
commit 534c8a013f
1 changed files with 2 additions and 0 deletions

View File

@ -21,7 +21,9 @@
#include <arch/io.h> #include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#if CONFIG_CMOS_POST
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#endif
#include <elog.h> #include <elog.h>
/* Write POST information */ /* Write POST information */