1 /* 2 * Copyright (c) 2016, Freescale Semiconductor, Inc. 3 * Copyright 2016-2017 NXP 4 * All rights reserved. 5 * 6 * SPDX-License-Identifier: BSD-3-Clause 7 */ 8 #ifndef _CLOCK_CONFIG_H_ 9 #define _CLOCK_CONFIG_H_ 10 11 #include "fsl_common.h" 12 13 /******************************************************************************* 14 * DEFINITION 15 ******************************************************************************/ 16 #define BOARD_XTAL0_CLK_HZ 24000000U 17 #define BOARD_XTAL32K_CLK_HZ 32768U 18 19 typedef void (*BOARD_SetRunModeFunc)( 20 SCG_Type *scg, uint32_t scgRunConfig, QuadSPI_Type *qspi, clock_ip_name_t qspiClock, uint32_t qspiClockConfig); 21 22 /******************************************************************************* 23 * API 24 ******************************************************************************/ 25 #if defined(__cplusplus) 26 extern "C" { 27 #endif /* __cplusplus*/ 28 29 void BOARD_BootClockVLPR(void); 30 void BOARD_BootClockRUN(void); 31 void BOARD_BootClockHSRUN(void); 32 33 #if defined(__cplusplus) 34 } 35 #endif /* __cplusplus*/ 36 37 #endif /* _CLOCK_CONFIG_H_ */ 38