diff options
author | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2015-03-28 14:59:50 -0500 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-03-29 00:42:34 +0100 |
commit | a080260dbde6d3e9baee8cb9f54ce24d7e0dc272 (patch) | |
tree | 9bc0f78d9060f252fa2e7c4f32059a422499bf76 /src/drivers | |
parent | 68bfe16b4448c818b9ae6b9d7d8b08b14a0d7712 (diff) |
drivers/pc80/mc146818rtc_early: Honor Kconfig reboot count clear setting
Change-Id: I6426ea2ca1732a6edfae059fe5dbf4f398bc9b98
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: http://review.coreboot.org/9155
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/pc80/mc146818rtc_early.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/pc80/mc146818rtc_early.c b/src/drivers/pc80/mc146818rtc_early.c index 145fe214d1..421af2f92f 100644 --- a/src/drivers/pc80/mc146818rtc_early.c +++ b/src/drivers/pc80/mc146818rtc_early.c @@ -67,10 +67,10 @@ static inline __attribute__((unused)) int do_normal_boot(void) /* The RTC_BOOT_BYTE is now o.k. see where to go. */ byte = cmos_read(RTC_BOOT_BYTE); - /* Are we in normal mode? */ - if (byte & 1) { - byte &= 0x0f; /* yes, clear the boot count */ - } + if (!IS_ENABLED(CONFIG_SKIP_MAX_REBOOT_CNT_CLEAR)) + /* Are we in normal mode? */ + if (byte & 1) + byte &= 0x0f; /* yes, clear the boot count */ /* Properly set the last boot flag */ byte &= 0xfc; |