diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-12-16 06:54:11 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-12-20 17:44:43 +0000 |
commit | 836b8d2e4509fb041a15df6d1ce3b20e205260bb (patch) | |
tree | 38fcf7c2ed23202a9207d936e783cea69438e52d /src/include/pc80 | |
parent | b2f3698781f8a77e4d08cdde841d8a0785c3592b (diff) |
drivers/pc80: Move normal/fallback mechanism outside __ROMCC__
Change-Id: I840885ca543375c77b7406434fd8bb4085e26938
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37759
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/include/pc80')
-rw-r--r-- | src/include/pc80/mc146818rtc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index 6fa5e46404..afa4d9714c 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -178,18 +178,18 @@ static inline void cmos_write32(u8 offset, u32 value) cmos_write((value >> (i << 3)) & 0xff, offset + i); } -#if !defined(__ROMCC__) void cmos_init(bool invalid); void cmos_check_update_date(void); +int cmos_error(void); +int cmos_chksum_valid(void); enum cb_err set_option(const char *name, void *val); enum cb_err get_option(void *dest, const char *name); unsigned int read_option_lowlevel(unsigned int start, unsigned int size, unsigned int def); -#else /* defined(__ROMCC__) */ -#include <drivers/pc80/rtc/mc146818rtc_romcc.c> -#endif /* !defined(__ROMCC__) */ +int do_normal_boot(void); + #define read_option(name, default) read_option_lowlevel(CMOS_VSTART_ ##name, \ CMOS_VLEN_ ##name, (default)) |