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 <sys/util.h> 11 12 #ifndef _ASMLANGUAGE 13 14 #include <fsl_common.h> 15 16 /* Add include for DTS generated information */ 17 #include <devicetree.h> 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #if CONFIG_DISK_DRIVER_SDMMC && \ 24 (DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) || \ 25 DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc2), okay)) 26 27 typedef void (*usdhc_pin_cfg_cb)(uint16_t nusdhc, bool init, 28 uint32_t speed, uint32_t strength); 29 30 void imxrt_usdhc_pinmux(uint16_t nusdhc, 31 bool init, uint32_t speed, uint32_t strength); 32 33 void imxrt_usdhc_pinmux_cb_register(usdhc_pin_cfg_cb cb); 34 35 #endif 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* !_ASMLANGUAGE */ 42 43 #endif /* _SOC__H_ */ 44