Merge pull request #8486 from NXPmicro/Update_LPC546XX_Core_Freq

LPC54608: Raise the core freq on LPC54608 targets
pull/8495/head
Cruz Monrreal 2018-10-22 11:43:13 -05:00 committed by GitHub
commit 93c5573b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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();
}
}

View File

@ -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

View File

@ -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();
}
}