Skip to content

Commit faf5593

Browse files
danieldegrassefabiobaltieri
authored andcommitted
soc: arm: nxp_lpc: Only clock core from PLL1 when CONFIG_FLASH=n
Do not clock the LPC55xxx cores from PLL1 when CONFIG_FLASH is set. This is required due to the following limitation of the flash controller (documented in the reference manual): Flash operations (erase, blank check, program) and reading a single word can only be performed for CPU frequencies of up to 100 MHz. These operations cannot be performed for frequencies above 100 MHz. The PLL1 clock source will result in a core clock of 150MHz, which violates this requirement. Fixes #62963 Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 7a96008 commit faf5593

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

soc/arm/nxp_lpc/lpc55xxx/Kconfig.soc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ config INIT_PLL0
123123
config INIT_PLL1
124124
bool "Initialize PLL1"
125125
default "y"
126-
depends on !SOC_LPC55S06
126+
depends on !(SOC_LPC55S06 || FLASH)
127127
help
128128
In the LPC55XXX Family, this is currently being used to set the
129129
core clock value at it's highest frequency which clocks at 150MHz.
130+
Note that flash programming operations are limited to 100MHz, and
131+
this PLL should not be used as the core clock in those cases.
130132

131133
config SECOND_CORE_MCUX
132134
bool "LPC55xxx's second core"

0 commit comments

Comments
 (0)