Go to the documentation of this file.
236 #ifndef SKIP_SYSCLK_INIT
249 #if !(defined(XIP_EXTERNAL_FLASH) && (XIP_EXTERNAL_FLASH == 1))
371 #ifndef SKIP_SYSCLK_INIT
372 #if defined(XIP_BOOT_HEADER_DCD_ENABLE) && (XIP_BOOT_HEADER_DCD_ENABLE == 1)
373 #warning "SKIP_SYSCLK_INIT should be defined to keep system pll (selected to be SEMC source clock in SDK projects) unchanged."
391 #if !(defined(XIP_EXTERNAL_FLASH) && (XIP_EXTERNAL_FLASH == 1))
#define XTALOSC24M_OSC_CONFIG2_ENABLE_1M_MASK
#define CCM_CCOSR_CLKO2_DIV(x)
PLL configuration for AUDIO and VIDEO.
#define CCM_ANALOG_PLL_VIDEO_POST_DIV_SELECT(x)
const clock_video_pll_config_t videoPllConfig_BOARD_BootClockRUN
Video PLL set for BOARD_BootClockRUN configuration.
@ kIOMUXC_MqsPwmOverSampleRate32
#define CCM_CCOSR_CLKO1_DIV(x)
#define CCM_CCOSR_CLKO2_EN_MASK
void CLOCK_DeinitAudioPll(void)
De-initialize the Audio PLL.
#define CCM_ANALOG_PLL_VIDEO_BYPASS_CLK_SRC(x)
static void CLOCK_SetPllBypass(CCM_ANALOG_Type *base, clock_pll_t pll, bool bypass)
PLL bypass setting.
#define DCDC_REG3_TRG_MASK
#define IOMUXC_GPR_GPR5_VREF_1M_CLK_GPT1_MASK
#define CCM_ANALOG_PLL_VIDEO_POWERDOWN_MASK
@ kIOMUXC_GPR_SAI1MClk1Sel
#define CCM_ANALOG_MISC2_VIDEO_DIV_MASK
#define CCM_ANALOG_MISC2_AUDIO_DIV_MSB_MASK
#define CCM_ANALOG_PLL_VIDEO_NUM_A(x)
#define CCM_CCOSR_CLKO1_SEL_MASK
#define CCM_ANALOG_MISC1_LVDS1_CLK_SEL(x)
#define IOMUXC_GPR_GPR5_VREF_1M_CLK_GPT2_MASK
#define CCM_ANALOG_PLL_VIDEO_ENABLE_MASK
#define CCM_CCOSR_CLKO2_DIV_MASK
#define CCM_ANALOG_PLL_VIDEO_PFD_OFFSET_EN_MASK
#define BOARD_BOOTCLOCKRUN_CORE_CLOCK
static void IOMUXC_MQSConfig(IOMUXC_GPR_Type *base, iomuxc_mqs_pwm_oversample_rate_t rate, uint8_t divider)
Configure MQS PWM oversampling rate compared with mclk and divider ratio control for mclk from hmclk.
@ kIOMUXC_GPR_SAI2MClk3Sel
#define DCDC_REG0_STS_DC_OK_MASK
static void IOMUXC_SetSaiMClkClockSource(IOMUXC_GPR_Type *base, iomuxc_gpr_saimclk_t mclk, uint8_t clkSrc)
Sets IOMUXC general configuration for SAI MCLK selection.
void CLOCK_InitUsb1Pfd(clock_pfd_t pfd, uint8_t pfdFrac)
Initialize the USB1 PLL PFD.
#define CCM_ANALOG_MISC1_LVDS1_CLK_SEL_MASK
PLL configuration for ARM.
void CLOCK_DeinitUsb2Pll(void)
Deinitialize the USB2 PLL.
#define CCM_ANALOG_PLL_ENET_DIV_SELECT_MASK
#define CCM_ANALOG_PLL_VIDEO_LOCK_MASK
const clock_arm_pll_config_t armPllConfig_BOARD_BootClockRUN
Arm PLL set for BOARD_BootClockRUN configuration.
#define CCM_ANALOG_PLL_ENET_DIV_SELECT(x)
#define CCM_ANALOG_PLL_VIDEO_DIV_SELECT_MASK
#define CCM_CCOSR_CLKO1_EN_MASK
#define CCM_ANALOG_PLL_USB2_ENABLE_MASK
@ kIOMUXC_GPR_SAI1MClk2Sel
#define CCM_ANALOG_PLL_AUDIO_ENABLE_MASK
static void CLOCK_SetRtcXtalFreq(uint32_t freq)
Set the RTC XTAL (32K OSC) frequency based on board setting.
void BOARD_InitBootClocks(void)
This function executes default configuration of clocks.
void CLOCK_InitSysPfd(clock_pfd_t pfd, uint8_t pfdFrac)
Initialize the System PLL PFD.
void CLOCK_InitRcOsc24M(void)
Initialize the RC oscillator 24MHz clock.
static void CLOCK_SetMux(clock_mux_t mux, uint32_t value)
Set CCM MUX node to certain value.
#define CCM_ANALOG_PLL_VIDEO_BYPASS_MASK
#define CCM_ANALOG_PLL_ENET_ENABLE_MASK
PLL configuration for USB.
void CLOCK_InitUsb1Pll(const clock_usb_pll_config_t *config)
Initialize the USB1 PLL.
static void CLOCK_SetDiv(clock_div_t divider, uint32_t value)
Set CCM DIV node to certain value.
#define CCM_ANALOG_PLL_USB1_EN_USB_CLKS_MASK
void CLOCK_SwitchOsc(clock_osc_t osc)
Switch the OSC.
#define CCM_ANALOG_MISC2_VIDEO_DIV(x)
void CLOCK_InitSysPll(const clock_sys_pll_config_t *config)
Initialize the System PLL.
void CLOCK_DeinitEnetPll(void)
Deinitialize the ENET PLL.
#define CCM_ANALOG_PLL_SYS_PFD_OFFSET_EN_MASK
#define CCM_CCOSR_CLK_OUT_SEL_MASK
#define CCM_ANALOG_PLL_ENET_ENET_25M_REF_EN_MASK
static void CLOCK_DisableClock(clock_ip_name_t name)
Disable the clock for specific IP.
#define CCM_CCR_OSCNT_MASK
#define CCM_ANALOG_PLL_VIDEO_DENOM_B(x)
#define CCM_CCOSR_CLKO1_DIV_MASK
void CLOCK_InitExternalClk(bool bypassXtalOsc)
Initialize the external 24MHz clock.
@ kIOMUXC_GPR_SAI1MClk3Sel
#define CCM_ANALOG_MISC2_AUDIO_DIV_LSB_MASK
static void CLOCK_SetXtalFreq(uint32_t freq)
Set the XTAL (24M OSC) frequency based on board setting.
#define CCM_ANALOG_PLL_VIDEO_BYPASS_CLK_SRC_MASK
void BOARD_BootClockRUN(void)
This function executes configuration of clocks.
void CLOCK_InitArmPll(const clock_arm_pll_config_t *config)
Initialize the ARM PLL.
#define CCM_CCOSR_CLKO2_SEL(x)
#define CCM_CCOSR_CLKO2_SEL_MASK
#define XTALOSC24M_OSC_CONFIG2_MUX_1M_MASK
PLL configuration for System.
#define CCM_CCOSR_CLKO1_SEL(x)
static void IOMUXC_EnableMode(IOMUXC_GPR_Type *base, uint32_t mode, bool enable)
Sets IOMUXC general configuration for some mode.
@ kIOMUXC_GPR_SAI3MClk3Sel
const clock_usb_pll_config_t usb1PllConfig_BOARD_BootClockRUN
Usb1 PLL set for BOARD_BootClockRUN configuration.
#define CCM_ANALOG_PLL_VIDEO_DIV_SELECT(x)
const clock_sys_pll_config_t sysPllConfig_BOARD_BootClockRUN
Sys PLL for BOARD_BootClockRUN configuration.
@ kIOMUXC_GPR_ENET1RefClkMode