mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
xtensa/esp32s3: Update the rtc code to fix system blocking issue
1. For some reasons, the bootloader will set CPU source to BBPLL and enable it,
but there are calibration issues, so we need turn off the BBPLL and do calibration again to fix the issue.
2. Corresponding issue link: https://github.com/espressif/esp-idf/commit/89cc9084ab5d889761cb5eff7560a2661236842a
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
83932d115b
commit
cde0de00fe
File diff suppressed because it is too large
Load Diff
@@ -301,22 +301,6 @@ enum esp32s3_rtc_xtal_freq_e esp32s3_rtc_clk_xtal_freq_get(void);
|
||||
|
||||
void esp32s3_rtc_update_to_xtal(int freq, int div);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: esp32s3_rtc_bbpll_enable
|
||||
*
|
||||
* Description:
|
||||
* Reset BBPLL configuration.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void esp32s3_rtc_bbpll_enable(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: esp32s3_rtc_clk_set
|
||||
*
|
||||
@@ -434,22 +418,6 @@ uint64_t esp32s3_rtc_time_slowclk_to_us(uint64_t rtc_cycles,
|
||||
|
||||
uint32_t esp32s3_clk_slowclk_cal_get(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: esp32s3_rtc_bbpll_disable
|
||||
*
|
||||
* Description:
|
||||
* disable BBPLL.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void esp32s3_rtc_bbpll_disable(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: esp32s3_rtc_sleep_set_wakeup_time
|
||||
*
|
||||
|
||||
@@ -5843,6 +5843,13 @@
|
||||
#define RTC_CNTL_DATE_V 0x0fffffff
|
||||
#define RTC_CNTL_DATE_S 0
|
||||
|
||||
/* LDO SLAVE : R/W ;bitpos:[18:13] ; default: 6'd0 ; */
|
||||
|
||||
#define RTC_CNTL_SLAVE_PD 0x0000003F
|
||||
#define RTC_CNTL_SLAVE_PD_M ((RTC_CNTL_SLAVE_PD_V)<<(RTC_CNTL_SLAVE_PD_S))
|
||||
#define RTC_CNTL_SLAVE_PD_V 0x3f
|
||||
#define RTC_CNTL_SLAVE_PD_S 13
|
||||
|
||||
/* Deep sleep (power down digital domain) */
|
||||
|
||||
#define RTC_SLEEP_PD_DIG BIT(0)
|
||||
|
||||
Reference in New Issue
Block a user