mimxrt1050: fix dcdc value change process
- to check status bit to make sure DCDC output is stable Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
This commit is contained in:
parent
282d95f655
commit
5757b4482e
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@ static ALWAYS_INLINE void clkInit(void)
|
||||||
/* Setting the VDD_SOC to 1.5V. It is necessary to config AHB to 600Mhz
|
/* Setting the VDD_SOC to 1.5V. It is necessary to config AHB to 600Mhz
|
||||||
*/
|
*/
|
||||||
DCDC->REG3 = (DCDC->REG3 & (~DCDC_REG3_TRG_MASK)) | DCDC_REG3_TRG(0x12);
|
DCDC->REG3 = (DCDC->REG3 & (~DCDC_REG3_TRG_MASK)) | DCDC_REG3_TRG(0x12);
|
||||||
|
/* Waiting for DCDC_STS_DC_OK bit is asserted */
|
||||||
|
while (DCDC_REG0_STS_DC_OK_MASK !=
|
||||||
|
(DCDC_REG0_STS_DC_OK_MASK & DCDC->REG0)) {
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_INIT_ARM_PLL
|
#ifdef CONFIG_INIT_ARM_PLL
|
||||||
CLOCK_InitArmPll(&armPllConfig); /* Configure ARM PLL to 1200M */
|
CLOCK_InitArmPll(&armPllConfig); /* Configure ARM PLL to 1200M */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue