summaryrefslogtreecommitdiff
path: root/src/pc80/mc146818rtc.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-09-01 16:27:13 +0000
committerStefan Reinauer <stepan@openbios.org>2010-09-01 16:27:13 +0000
commitc3fad5633b8b17dc15c56733188fd27aa02589d9 (patch)
tree1d72feb1d214da19fdaecc78f1c228d40b9398b1 /src/pc80/mc146818rtc.c
parenta7f2b0e339a2a051d5e0269eaa8fbb84530b6058 (diff)
Fix race condition in option_table.h generation by moving the include statement
to those files that actually need it. This significantly reduces the number of dependencies, so it's no longer extremely ugly to specify them manually (see the src/pc80/Makefile.inc portion) Also, drop the AMD DBM690T work around for the issue. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5762 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/pc80/mc146818rtc.c')
-rw-r--r--src/pc80/mc146818rtc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c
index 23b834c06a..d32b862317 100644
--- a/src/pc80/mc146818rtc.c
+++ b/src/pc80/mc146818rtc.c
@@ -2,6 +2,9 @@
#include <pc80/mc146818rtc.h>
#include <boot/coreboot_tables.h>
#include <string.h>
+#if CONFIG_USE_OPTION_TABLE
+#include <option_table.h>
+#endif
/* control registers - Moto names
*/