1 /* 2 * Copyright (c) 2017, NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _SOC__H_ 8 #define _SOC__H_ 9 10 #include <zephyr/sys/util.h> 11 12 #ifndef _ASMLANGUAGE 13 14 #include <fsl_common.h> 15 16 /* Add include for DTS generated information */ 17 #include <zephyr/devicetree.h> 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #if CONFIG_I2S_MCUX_SAI 24 void imxrt_audio_codec_pll_init(uint32_t clock_name, uint32_t clk_src, 25 uint32_t clk_pre_div, uint32_t clk_src_div); 26 27 #endif 28 29 #if CONFIG_MIPI_DSI 30 void imxrt_pre_init_display_interface(void); 31 32 void imxrt_post_init_display_interface(void); 33 #endif 34 35 #if CONFIG_VIDEO_MCUX_MIPI_CSI2RX 36 int mipi_csi2rx_clock_set_freq(clock_root_t clock_root, uint32_t rate); 37 #endif 38 39 void flexspi_clock_set_div(uint32_t value); 40 uint32_t flexspi_clock_get_freq(void); 41 42 #ifdef CONFIG_MEMC 43 uint32_t flexspi_clock_set_freq(uint32_t clock_name, uint32_t rate); 44 #endif 45 46 #ifdef __cplusplus 47 } 48 #endif 49 50 #endif /* !_ASMLANGUAGE */ 51 52 #endif /* _SOC__H_ */ 53