summaryrefslogtreecommitdiff
path: root/src/include/pc80/mc146818rtc.h
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-03-29 17:14:28 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-29 17:14:28 +0000
commitb5828d74455a91553d78ef3077936693ae36213f (patch)
tree193d5967d93635d2b00b141dcac866f6f69956ad /src/include/pc80/mc146818rtc.h
parent002c9ff3e453b5c93e1681c4ddc7624a4bf9e5a1 (diff)
This patch drops the coreboot CMOS checksum ranges from Kconfig because
the information is already specified in cmos.layout. coreboot is changed to use that version instead. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmai.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5313 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/pc80/mc146818rtc.h')
-rw-r--r--src/include/pc80/mc146818rtc.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h
index 1561e4e811..9fb04c220a 100644
--- a/src/include/pc80/mc146818rtc.h
+++ b/src/include/pc80/mc146818rtc.h
@@ -81,15 +81,9 @@
#define PC_CKS_RANGE_END 45
#define PC_CKS_LOC 46
-/* Linux bios checksum is built only over bytes 49..125 */
-#ifndef CONFIG_LB_CKS_RANGE_START
-#define CONFIG_LB_CKS_RANGE_START 49
-#endif
-#ifndef CONFIG_LB_CKS_RANGE_END
-#define CONFIG_LB_CKS_RANGE_END 125
-#endif
-#ifndef CONFIG_LB_CKS_LOC
-#define CONFIG_LB_CKS_LOC 126
+/* coreboot cmos checksum is usually only built over bytes 49..125 */
+#ifdef AUTOCONF_INCLUDED
+#include <option_table.h>
#endif
#if !defined(ASSEMBLY)
@@ -97,7 +91,8 @@ void rtc_init(int invalid);
#if CONFIG_USE_OPTION_TABLE == 1
int get_option(void *dest, const char *name);
#else
-static inline int get_option(void *dest, const char *name) { return -2; }
+static inline int get_option(void *dest __attribute__((unused)),
+ const char *name __attribute__((unused))) { return -2; }
#endif
#endif