]> Git Repo - J-u-boot.git/blobdiff - drivers/rtc/rv3029.c
Merge patch series "mtd: spi-nor: Add support for S25FS-S family"
[J-u-boot.git] / drivers / rtc / rv3029.c
index 38acb9c9924d13015ab25ca23ea646cbcbc326ee..8c80fe9cb790decee5d17821fdbddc177534c498 100644 (file)
@@ -7,11 +7,14 @@
  *   Michael Buesch <[email protected]>
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <rtc.h>
+#include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define RTC_RV3029_PAGE_LEN             7
 
@@ -70,7 +73,6 @@
                                         RV3029_TRICKLE_80K)
 #define RV3029_TRICKLE_SHIFT           4
 
-
 static int rv3029_rtc_get(struct udevice *dev, struct rtc_time *tm)
 {
        u8 regs[RTC_RV3029_PAGE_LEN];
@@ -124,7 +126,6 @@ static int rv3029_rtc_set(struct udevice *dev, const struct rtc_time *tm)
              __func__, tm->tm_year, tm->tm_mon, tm->tm_mday,
              tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec);
 
-
        if (tm->tm_year < 2000) {
                printf("%s: year %d (before 2000) not supported\n",
                       __func__, tm->tm_year);
This page took 0.025596 seconds and 4 git commands to generate.