summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/rtc
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2020-04-12 00:10:51 +0200
committerNico Huber <nico.h@gmx.de>2020-04-18 21:54:41 +0000
commit64ba44f7fb7a64c5cc1e9155758b57589320b1a5 (patch)
tree5d829f0aa3d8f796d798fe0a66f0dea7a2303eb8 /src/drivers/pc80/rtc
parent3e7633a6fe48c09e08bdea06c93afbf61fb7f7c2 (diff)
drivers/pc80/rtc: Turn comment into warning message
Change-Id: I80786042b1c464268cae8093bd5d3e8d73be5aee Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40320 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/drivers/pc80/rtc')
-rw-r--r--src/drivers/pc80/rtc/mc146818rtc_boot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/pc80/rtc/mc146818rtc_boot.c b/src/drivers/pc80/rtc/mc146818rtc_boot.c
index 37f1470b9f..d470d8fcfb 100644
--- a/src/drivers/pc80/rtc/mc146818rtc_boot.c
+++ b/src/drivers/pc80/rtc/mc146818rtc_boot.c
@@ -2,6 +2,7 @@
/* This file is part of the coreboot project. */
#include <stdint.h>
+#include <console/console.h>
#include <option.h>
#include <pc80/mc146818rtc.h>
#include <fallback.h>
@@ -35,9 +36,8 @@ int do_normal_boot(void)
unsigned char byte;
if (cmos_error() || (CONFIG(USE_OPTION_TABLE) && !cmos_lb_cks_valid())) {
- /* Invalid CMOS checksum detected!
- * Force fallback boot...
- */
+ printk(BIOS_WARNING,
+ "Invalid CMOS checksum detected! Force fallback boot...\n");
byte = cmos_read(RTC_BOOT_BYTE);
byte &= boot_set_fallback(byte) & 0x0f;
byte |= 0xf << 4;