kconfig: refactor xtal freq kconfig to common configuration item

This commit is contained in:
jingli
2022-07-13 10:54:41 +08:00
parent a61abcc22e
commit ee3423834e
54 changed files with 197 additions and 154 deletions

View File

@@ -170,7 +170,7 @@ typedef struct {
* Default initializer for rtc_clk_config_t
*/
#define RTC_CLK_CONFIG_DEFAULT() { \
.xtal_freq = RTC_XTAL_FREQ_40M, \
.xtal_freq = CONFIG_XTAL_FREQ, \
.cpu_freq_mhz = 80, \
.fast_clk_src = SOC_RTC_FAST_CLK_SRC_RC_FAST, \
.slow_clk_src = SOC_RTC_SLOW_CLK_SRC_RC_SLOW, \