Skip to content

Commit

Permalink
Merge pull request #8486 from NXPmicro/Update_LPC546XX_Core_Freq
Browse files Browse the repository at this point in the history
LPC54608: Raise the core freq on LPC54608 targets
  • Loading branch information
Cruz Monrreal authored Oct 22, 2018
2 parents 4a2cfbe + 118bde5 commit 93c5573
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/* Defines used by the sleep code */
#define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M()
#define LPC_CLOCK_RUN ((SYSCON->DEVICE_ID0 == 0xFFF54628) ? \
BOARD_BootClockPLL220M() : BOARD_BootClockFROHF48M())
BOARD_BootClockPLL220M() : BOARD_BootClockPLL180M())

#define DEVICE_ID_LENGTH 24

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
void mbed_sdk_init()
{
if (SYSCON->DEVICE_ID0 == 0xFFF54628) {
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
/* LPC54628 runs at a higher core speed */
BOARD_BootClockPLL220M();
} else {
BOARD_BootClockFROHF48M();
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
BOARD_BootClockPLL180M();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/* Defines used by the sleep code */
#define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M()
#define LPC_CLOCK_RUN ((SYSCON->DEVICE_ID0 == 0xFFF54628) ? \
BOARD_BootClockPLL220M() : BOARD_BootClockFROHF48M())
BOARD_BootClockPLL220M() : BOARD_BootClockPLL180M())

#define DEVICE_ID_LENGTH 24

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ uint32_t FLASHIAP_ReadUid(uint32_t *addr)
void mbed_sdk_init()
{
if (SYSCON->DEVICE_ID0 == 0xFFF54628) {
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
/* LPC54628 runs at a higher core speed */
BOARD_BootClockPLL220M();
} else {
BOARD_BootClockFROHF48M();
BOARD_BootClockFROHF96M(); /* Boot up FROHF96M for SPIFI to use*/
BOARD_BootClockPLL180M();
}
}

Expand Down

0 comments on commit 93c5573

Please sign in to comment.