Browse Source

boards: nxp: frdm_mcxa156: Correct macros values

Update macros CLOCK_INIT_CORE_CLOCK and BOARD_BOOTCLOCKFRO96M_CORE_CLOCK
value to 96Mhz, not 960Mhz.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
pull/89972/merge
Neil Chen 1 month ago committed by Benjamin Cabé
parent
commit
4427880741
  1. 8
      boards/nxp/frdm_mcxa156/board.c

8
boards/nxp/frdm_mcxa156/board.c

@ -9,9 +9,9 @@ @@ -9,9 +9,9 @@
#include <fsl_spc.h>
#include <soc.h>
/* Core clock frequency: 150MHz */
#define CLOCK_INIT_CORE_CLOCK 960000000U
#define BOARD_BOOTCLOCKFRO96M_CORE_CLOCK 960000000U
/* Core clock frequency: 96MHz */
#define CLOCK_INIT_CORE_CLOCK 96000000U
#define BOARD_BOOTCLOCKFRO96M_CORE_CLOCK 96000000U
/* System clock frequency. */
extern uint32_t SystemCoreClock;
@ -39,7 +39,7 @@ void board_early_init_hook(void) @@ -39,7 +39,7 @@ void board_early_init_hook(void)
(void)SPC_SetSRAMOperateVoltage(SPC0, &sramOption);
}
CLOCK_SetupFROHFClocking(96000000U); /*!< Enable FRO HF(96MHz) output */
CLOCK_SetupFROHFClocking(CLOCK_INIT_CORE_CLOCK); /*!< Enable FRO HF(96MHz) output */
CLOCK_SetupFRO12MClocking(); /*!< Setup FRO12M clock */

Loading…
Cancel
Save