mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
rtc: ds3232/ds3231: Add support to generate 32KHz output for driver module
Add an implementation of the rtc_enable_32khz_output() that uses the driver model i2c APIs. Also put code related to rtc_enable_32khz_output under CONFIG_RTC_ENABLE_32KHZ_OUTPUT. Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
This commit is contained in:
committed by
Prabhakar Kushwaha
parent
6672ab1628
commit
db07c447ca
@@ -166,11 +166,17 @@ int rtc_read32(struct udevice *dev, unsigned int reg, u32 *valuep);
|
||||
*/
|
||||
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);
|
||||
#ifdef CONFIG_RTC_ENABLE_32KHZ_OUTPUT
|
||||
void rtc_enable_32khz_output(void);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* rtc_read8() - Read an 8-bit register
|
||||
|
Reference in New Issue
Block a user