]> git.sur5r.net Git - u-boot/blobdiff - drivers/rtc/mc146818.c
clk: Add Actions Semi OWL clock support
[u-boot] / drivers / rtc / mc146818.c
index da804d54595f6fab83fd86396eb8ca59eef262f8..500eef2ee0c520d3ab145ec65a6aa9bce5751304 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2001
  * Denis Peter MPL AG Switzerland. d.peter@mpl.ch
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -14,7 +13,7 @@
 #include <dm.h>
 #include <rtc.h>
 
-#if defined(__I386__) || defined(CONFIG_MALTA)
+#if defined(CONFIG_X86) || defined(CONFIG_MALTA)
 #include <asm/io.h>
 #define in8(p) inb(p)
 #define out8(p, v) outb(v, p)
@@ -100,7 +99,7 @@ static int mc146818_get(struct rtc_time *tmp)
 #ifdef RTC_DEBUG
        printf("Get RTC year: %02x mon/cent: %02x mday: %02x wday: %02x hr: %02x min: %02x sec: %02x\n",
               year, mon, mday, wday, hour, min, sec);
-       printf("Alarms: month: %02x hour: %02x min: %02x sec: %02x\n",
+       printf("Alarms: mday: %02x hour: %02x min: %02x sec: %02x\n",
               mc146818_read8(RTC_CONFIG_D) & 0x3f,
               mc146818_read8(RTC_HOURS_ALARM),
               mc146818_read8(RTC_MINUTES_ALARM),