Antonello Dettori (dev@dettori.io) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16240
-gerrit
commit 21c0b80d347ec11840b31621d17c2366a1f7f873 Author: Antonello Dettori dev@dettori.io Date: Wed Aug 17 19:35:27 2016 +0200
pc80/mc146818rtc.h: Replace leftover macro token
Replace a token that is not used anymore while keeping the original functionality.
Change-Id: I36fffd1b713ae46be972803279fc993254bb5806 Signed-off-by: Antonello Dettori dev@dettori.io --- src/include/pc80/mc146818rtc.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index f5630c5..c5ccb59 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -101,7 +101,7 @@ #define PC_CKS_RANGE_END 45 #define PC_CKS_LOC 46
-#ifndef UTIL_BUILD_OPTION_TABLE +#if CONFIG_USE_OPTION_TABLE static inline unsigned char cmos_read(unsigned char addr) { int offs = 0; @@ -168,6 +168,14 @@ static inline void cmos_write32(u8 offset, u32 value) for (i = 0; i < sizeof(value); ++i) cmos_write((value >> (i << 3)) & 0xff, offset + i); } +#else +static inline unsigned char cmos_read(unsigned char addr) { return 0; } +static inline void cmos_write_inner(unsigned char val, unsigned char addr) {} +static inline void cmos_write(unsigned char val, unsigned char addr) {} +static inline void cmos_disable_rtc(void) {} +static inline void cmos_enable_rtc(void) {} +static inline u32 cmos_read32(u8 offset) { return 0; } +static inline void cmos_write32(u8 offset, u32 value) {} #endif
#if !defined(__ROMCC__)