Revert 5762. It silently broke a lot of boards because abuild was broken.
[coreboot.git] / src / include / pc80 / mc146818rtc.h
index 032e3858bf8312f4467240e8ee8caf2657a61199..0abb2a6b4b5f91437f9c3d5a6ca7631402dcc687 100644 (file)
 #define PC_CKS_RANGE_END       45
 #define PC_CKS_LOC             46
 
+/* coreboot cmos checksum is usually only built over bytes 49..125
+ * LB_CKS_RANGE_START, LB_CKS_RANGE_END and LB_CKS_LOC are defined
+ * in option_table.h
+ */
+#if CONFIG_HAVE_OPTION_TABLE
+#include <option_table.h>
+#endif
+
 #ifndef UTIL_BUILD_OPTION_TABLE
 #include <arch/io.h>
 static inline unsigned char cmos_read(unsigned char addr)