mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-23 21:28:15 +08:00
* [sdio][dm] import Kconfig for DM Signed-off-by: GuEe-GUI <2991707448@qq.com> * [sdio] fixup IRQ and mmcsd threads' stack size default Signed-off-by: GuEe-GUI <2991707448@qq.com> * [sdio][dm] Support DM mode 1. Support features read by DM. 2. Support regulator API in drivers. 3. Support send tuning option CMD. 4. Replace `switch_uhs_voltage` by `signal_voltage_switch`. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][sdhci] Cleanup the SDHCI Signed-off-by: GuEe-GUI <2991707448@qq.com> * [sdio][dm] add new SDIO/SDHCI drivers 1. SDHCI support on PCI bus 2. Synopsys DesignWare MMC Family(MMIO/PCI) Signed-off-by: GuEe-GUI <2991707448@qq.com> --------- Signed-off-by: GuEe-GUI <2991707448@qq.com>
40 lines
1.1 KiB
C
Executable File
40 lines
1.1 KiB
C
Executable File
/*
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2022-12-06 GuEe-GUI first version
|
|
*/
|
|
|
|
#ifndef __DEV_SDIO_DM_H__
|
|
#define __DEV_SDIO_DM_H__
|
|
|
|
#include <rthw.h>
|
|
#include <rtthread.h>
|
|
#include <rtdevice.h>
|
|
|
|
int sdio_host_set_name(struct rt_mmcsd_host *host, char *out_devname);
|
|
|
|
#ifdef RT_USING_REGULATOR
|
|
rt_err_t sdio_regulator_set_ocr(struct rt_mmcsd_host *host,
|
|
struct rt_regulator *supply, rt_uint16_t vdd_bit);
|
|
rt_err_t sdio_regulator_set_vqmmc(struct rt_mmcsd_host *host,
|
|
struct rt_mmcsd_io_cfg *ios);
|
|
rt_err_t sdio_regulator_get_supply(struct rt_device *dev, struct rt_mmcsd_host *host);
|
|
rt_err_t sdio_regulator_enable_vqmmc(struct rt_mmcsd_host *host);
|
|
void sdio_regulator_disable_vqmmc(struct rt_mmcsd_host *host);
|
|
#endif /* RT_USING_REGULATOR */
|
|
|
|
#ifdef RT_USING_OFW
|
|
rt_err_t sdio_ofw_parse(struct rt_ofw_node *dev_np, struct rt_mmcsd_host *host);
|
|
#else
|
|
rt_inline rt_err_t sdio_ofw_parse(struct rt_ofw_node *dev_np, struct rt_mmcsd_host *host)
|
|
{
|
|
return RT_EOK;
|
|
}
|
|
#endif /* RT_USING_OFW */
|
|
|
|
#endif /* __DEV_SDIO_DM_H__ */
|