Skip to content

Commit 93c5573

Browse files
author
Cruz Monrreal
authored
Merge pull request #8486 from NXPmicro/Update_LPC546XX_Core_Freq
LPC54608: Raise the core freq on LPC54608 targets
2 parents 4a2cfbe + 118bde5 commit 93c5573

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_FF_LPC546XX/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/* Defines used by the sleep code */
2828
#define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M()
2929
#define LPC_CLOCK_RUN ((SYSCON->DEVICE_ID0 == 0xFFF54628) ? \
30-
BOARD_BootClockPLL220M() : BOARD_BootClockFROHF48M())
30+
BOARD_BootClockPLL220M() : BOARD_BootClockPLL180M())
3131

3232
#define DEVICE_ID_LENGTH 24
3333

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_FF_LPC546XX/mbed_overrides.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
void mbed_sdk_init()
4242
{
4343
if (SYSCON->DEVICE_ID0 == 0xFFF54628) {
44+
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
4445
/* LPC54628 runs at a higher core speed */
4546
BOARD_BootClockPLL220M();
4647
} else {
47-
BOARD_BootClockFROHF48M();
48+
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
49+
BOARD_BootClockPLL180M();
4850
}
4951
}
5052

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_LPCXpresso/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/* Defines used by the sleep code */
2828
#define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M()
2929
#define LPC_CLOCK_RUN ((SYSCON->DEVICE_ID0 == 0xFFF54628) ? \
30-
BOARD_BootClockPLL220M() : BOARD_BootClockFROHF48M())
30+
BOARD_BootClockPLL220M() : BOARD_BootClockPLL180M())
3131

3232
#define DEVICE_ID_LENGTH 24
3333

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_LPCXpresso/mbed_overrides.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ uint32_t FLASHIAP_ReadUid(uint32_t *addr)
5757
void mbed_sdk_init()
5858
{
5959
if (SYSCON->DEVICE_ID0 == 0xFFF54628) {
60+
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
6061
/* LPC54628 runs at a higher core speed */
6162
BOARD_BootClockPLL220M();
6263
} else {
63-
BOARD_BootClockFROHF48M();
64+
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
65+
BOARD_BootClockPLL180M();
6466
}
6567
}
6668

0 commit comments

Comments
 (0)