summaryrefslogtreecommitdiff
path: root/src/console/post.c
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-11-26 15:07:39 -0800
committerDavid Hendricks <dhendrix@chromium.org>2012-11-27 02:03:27 +0100
commit534c8a013ff57c2b7dc15f55dea0cf4dbf3ce7bd (patch)
treebbad86d4236cbe60bf01a88fc50a9f1dbb7e9fa5 /src/console/post.c
parent6b908d08ab4c256b6a8d4f7d863fe9eb65ea6fe3 (diff)
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)
Diffstat (limited to 'src/console/post.c')
-rw-r--r--src/console/post.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console/post.c b/src/console/post.c
index 81a9d398c7..f55683e4d1 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -21,7 +21,9 @@
#include <arch/io.h>
#include <console/console.h>
+#if CONFIG_CMOS_POST
#include <pc80/mc146818rtc.h>
+#endif
#include <elog.h>
/* Write POST information */