diff options
author | Priyanka Jain <Priyanka.Jain@freescale.com> | 2015-06-29 15:39:23 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-09-01 21:37:23 -0500 |
commit | c340941e443748bbcd0e35172b481ea2077d2582 (patch) | |
tree | f90085efd86b1abdb69abb100135ca190055dfdf /include/rtc.h | |
parent | b7e84c93c450480ca4ff51ad2eb56bd83c1dc368 (diff) |
rtc:ds3232/ds3231: Add support to generate 32KHz output
RTC devices can generate 32KHz output if for
-DS3232 device, EN32KHz bit and BB32KHz bit are set
-DS3231 device, EN32KHz bit is set, BB32KHz bit is don't care
Patch adds rtc_enable_32khz_output() which when called
will enable 32KHz output on 32KHz pin
Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/rtc.h')
-rw-r--r-- | include/rtc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtc.h b/include/rtc.h index bd8621d60b..69fe8d4db0 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -151,6 +151,7 @@ int rtc_write32(struct udevice *dev, unsigned int reg, u32 value); int rtc_get (struct rtc_time *); int rtc_set (struct rtc_time *); void rtc_reset (void); +void rtc_enable_32khz_output(void); /** * rtc_read8() - Read an 8-bit register |