projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm: core: Allow iterating devices without uclass_get()
[oweals/u-boot.git]
/
include
/
rtc.h
diff --git
a/include/rtc.h
b/include/rtc.h
index b255bdc7a3311017f65e0e62e937808b92a52c51..8aabfc1162a47a304efa53993cbffbd8a91ad0f0 100644
(file)
--- a/
include/rtc.h
+++ b/
include/rtc.h
@@
-18,6
+18,8
@@
#ifdef CONFIG_DM_RTC
#ifdef CONFIG_DM_RTC
+struct udevice;
+
struct rtc_ops {
/**
* get() - get the current time
struct rtc_ops {
/**
* get() - get the current time
@@
-166,11
+168,17
@@
int rtc_read32(struct udevice *dev, unsigned int reg, u32 *valuep);
*/
int rtc_write32(struct udevice *dev, unsigned int reg, u32 value);
*/
int rtc_write32(struct udevice *dev, unsigned int reg, u32 value);
+#ifdef CONFIG_RTC_ENABLE_32KHZ_OUTPUT
+int rtc_enable_32khz_output(int busnum, int chip_addr);
+#endif
+
#else
int rtc_get (struct rtc_time *);
int rtc_set (struct rtc_time *);
void rtc_reset (void);
#else
int rtc_get (struct rtc_time *);
int rtc_set (struct rtc_time *);
void rtc_reset (void);
+#ifdef CONFIG_RTC_ENABLE_32KHZ_OUTPUT
void rtc_enable_32khz_output(void);
void rtc_enable_32khz_output(void);
+#endif
/**
* rtc_read8() - Read an 8-bit register
/**
* rtc_read8() - Read an 8-bit register