diff options
author | Chuanhua Han <chuanhua.han@nxp.com> | 2019-07-26 19:24:00 +0800 |
---|---|---|
committer | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2019-08-22 09:07:36 +0530 |
commit | db07c447caacd5f9003a57ef2802afa8a4c81348 (patch) | |
tree | 03bd2a7657d4cfecd4a9684fbc87c7c29eac1da0 /board/freescale/ls2080aqds/ls2080aqds.c | |
parent | 6672ab1628a7837361524ebbc5e2119be9202fa7 (diff) |
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>
Diffstat (limited to 'board/freescale/ls2080aqds/ls2080aqds.c')
-rw-r--r-- | board/freescale/ls2080aqds/ls2080aqds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c index e9c055745f..dc239cf35c 100644 --- a/board/freescale/ls2080aqds/ls2080aqds.c +++ b/board/freescale/ls2080aqds/ls2080aqds.c @@ -225,7 +225,9 @@ int board_init(void) gd->env_addr = (ulong)&default_environment[0]; #endif select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT); +#ifdef CONFIG_RTC_ENABLE_32KHZ_OUTPUT rtc_enable_32khz_output(); +#endif #ifdef CONFIG_FSL_CAAM sec_init(); #endif |