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 (DT_DEP_ORD(DT_NODELABEL(ocram)) != DT_DEP_ORD(DT_CHOSEN(zephyr_sram))) && \ 30 CONFIG_OCRAM_NOCACHE 31 /* OCRAM addresses will be defined by linker */ 32 extern char __ocram_start; 33 extern char __ocram_bss_start; 34 extern char __ocram_bss_end; 35 extern char __ocram_noinit_start; 36 extern char __ocram_noinit_end; 37 extern char __ocram_data_start; 38 extern char __ocram_data_end; 39 extern char __ocram_end; 40 extern char __ocram_data_load_start; 41 #endif 42 #if CONFIG_MIPI_DSI 43 void imxrt_pre_init_display_interface(void); 44 45 void imxrt_post_init_display_interface(void); 46 #endif 47 48 void flexspi_clock_set_div(uint32_t value); 49 uint32_t flexspi_clock_get_freq(void); 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif /* !_ASMLANGUAGE */ 56 57 #endif /* _SOC__H_ */ 58