You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @note enum starts from 1, to save 0 for special purpose
82
+
*/
83
+
typedefenum {
84
+
// For CPU domain
85
+
SOC_MOD_CLK_CPU=1, /*!< CPU_CLK can be sourced from XTAL, PLL, or RC_FAST by configuring soc_cpu_clk_src_t */
86
+
// For RTC domain
87
+
SOC_MOD_CLK_RTC_FAST, /*!< RTC_FAST_CLK can be sourced from XTAL_D2 or RC_FAST by configuring soc_rtc_fast_clk_src_t */
88
+
SOC_MOD_CLK_RTC_SLOW, /*!< RTC_SLOW_CLK can be sourced from RC_SLOW, XTAL32K, or OSC_SLOW by configuring soc_rtc_slow_clk_src_t */
89
+
// For digital domain: peripherals, WIFI, BLE
90
+
SOC_MOD_CLK_PLL_F12M, /*!< PLL_F12M_CLK is derived from SPLL (clock gating + fixed divider of 40), it has a fixed frequency of 12MHz */
91
+
SOC_MOD_CLK_PLL_F20M, /*!< PLL_F20M_CLK is derived from SPLL (clock gating + fixed divider of 24), it has a fixed frequency of 20MHz */
92
+
SOC_MOD_CLK_PLL_F40M, /*!< PLL_F40M_CLK is derived from SPLL (clock gating + fixed divider of 12), it has a fixed frequency of 40MHz */
93
+
SOC_MOD_CLK_PLL_F48M, /*!< PLL_F48M_CLK is derived from SPLL (clock gating + fixed divider of 10), it has a fixed frequency of 48MHz */
94
+
SOC_MOD_CLK_PLL_F60M, /*!< PLL_F60M_CLK is derived from SPLL (clock gating + fixed divider of 8), it has a fixed frequency of 60MHz */
95
+
SOC_MOD_CLK_PLL_F80M, /*!< PLL_F80M_CLK is derived from SPLL (clock gating + fixed divider of 6), it has a fixed frequency of 80MHz */
96
+
SOC_MOD_CLK_PLL_F120M, /*!< PLL_F120M_CLK is derived from SPLL (clock gating + fixed divider of 4), it has a fixed frequency of 120MHz */
97
+
SOC_MOD_CLK_PLL_F160M, /*!< PLL_F160M_CLK is derived from SPLL (clock gating + fixed divider of 3), it has a fixed frequency of 160MHz */
98
+
SOC_MOD_CLK_MODEM_APB=SOC_MOD_CLK_PLL_F160M, /*!< Modem APB clock comes from the CLK_160M_REF */
99
+
SOC_MOD_CLK_PLL_F240M, /*!< PLL_F240M_CLK is derived from SPLL (clock gating + fixed divider of 2), it has a fixed frequency of 240MHz */
100
+
SOC_MOD_CLK_SPLL, /*!< SPLL is from the main XTAL oscillator frequency multipliers, it has a "fixed" frequency of 480MHz */
101
+
SOC_MOD_CLK_XTAL32K, /*!< XTAL32K_CLK comes from the external 32kHz crystal, passing a clock gating to the peripherals */
102
+
SOC_MOD_CLK_RC_FAST, /*!< RC_FAST_CLK comes from the internal 20MHz rc oscillator, passing a clock gating to the peripherals */
103
+
SOC_MOD_CLK_XTAL, /*!< XTAL_CLK comes from the external 48MHz crystal */
104
+
// For LP peripherals
105
+
SOC_MOD_CLK_XTAL_D2, /*!< XTAL_D2_CLK comes from the external 48MHz crystal, passing a div of 2 to the LP peripherals */
106
+
SOC_MOD_CLK_INVALID, /*!< Indication of the end of the available module clock sources */
107
+
} soc_module_clk_t;
108
+
75
109
/**
76
110
* @brief CPU_CLK mux inputs, which are the supported clock sources for the CPU_CLK
77
111
* @note Enum values are matched with the register field values on purpose
78
112
*/
79
113
typedefenum {
80
-
SOC_CPU_CLK_SRC_XTAL=0,/*!< Select XTAL_CLK as CPU_CLK source */
81
-
SOC_CPU_CLK_SRC_RC_FAST=1,/*!< Select RC_FAST_CLK as CPU_CLK source */
82
-
SOC_CPU_CLK_SRC_PLL_F160M=2, /*!< Select PLL_F160M_CLK as CPU_CLK source (PLL_F160M_CLK is derived from SPLL (480MHz), which is the output of the main crystal oscillator frequency multiplier) */
83
-
SOC_CPU_CLK_SRC_PLL_F240M=3, /*!< Select PLL_F240M_CLK as CPU_CLK source (PLL_F240M_CLK is derived from SPLL (480MHz), which is the output of the main crystal oscillator frequency multiplier) */
SOC_CPU_CLK_SRC_XTAL=SOC_MOD_CLK_XTAL,/*!< Select XTAL_CLK as CPU_CLK source */
115
+
SOC_CPU_CLK_SRC_RC_FAST=SOC_MOD_CLK_RC_FAST,/*!< Select RC_FAST_CLK as CPU_CLK source */
116
+
SOC_CPU_CLK_SRC_PLL_F160M=SOC_MOD_CLK_PLL_F160M,/*!< Select PLL_F160M_CLK as CPU_CLK source (PLL_F160M_CLK is derived from SPLL (480MHz), which is the output of the main crystal oscillator frequency multiplier) */
117
+
SOC_CPU_CLK_SRC_PLL_F240M=SOC_MOD_CLK_PLL_F240M,/*!< Select PLL_F240M_CLK as CPU_CLK source (PLL_F240M_CLK is derived from SPLL (480MHz), which is the output of the main crystal oscillator frequency multiplier) */
0 commit comments