mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-12 01:01:56 +00:00
Implementation of pinmux of usdhc depends on board design. Usdhc driver could change pinmux according to SD mode, SoC should provide API for this. Board pinmux should register its pinmux function to SoC. Signed-off-by: Jun Yang <jun.yang@nxp.com>
46 lines
827 B
C
46 lines
827 B
C
/*
|
|
* Copyright (c) 2017, NXP
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _SOC__H_
|
|
#define _SOC__H_
|
|
|
|
#include <sys/util.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
#include <fsl_common.h>
|
|
|
|
/* ARM CMSIS definitions must be included before kernel_includes.h.
|
|
* Therefore, it is essential to include kernel_includes.h after including
|
|
* core SOC-specific headers.
|
|
*/
|
|
#include <kernel_includes.h>
|
|
|
|
#if defined(CONFIG_DISK_ACCESS_USDHC1) || \
|
|
defined(CONFIG_DISK_ACCESS_USDHC2)
|
|
|
|
typedef void (*usdhc_pin_cfg_cb)(u16_t nusdhc, bool init,
|
|
u32_t speed, u32_t strength);
|
|
|
|
void imxrt_usdhc_pinmux(u16_t nusdhc,
|
|
bool init, u32_t speed, u32_t strength);
|
|
|
|
void imxrt_usdhc_pinmux_cb_register(usdhc_pin_cfg_cb cb);
|
|
|
|
#endif
|
|
|
|
#endif /* !_ASMLANGUAGE */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SOC__H_ */
|