Files
rt-thread/components/drivers/sdio/dev_sdhci_dm.h
GUI c6498b5f65 [sdio][dm] update for DM (#11078)
* [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>
2025-12-26 21:04:42 +08:00

69 lines
1.7 KiB
C
Executable File

/*
* Copyright (c) 2006-2024 RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2024-08-16 zhujiale first version
*/
#ifndef __DEV_SDHCI_DM_H__
#define __DEV_SDHCI_DM_H__
#include <rtthread.h>
#include <rtdevice.h>
struct rt_sdhci_pltfm_data
{
const struct rt_sdhci_ops *ops;
rt_uint32_t quirks;
rt_uint32_t quirks2;
};
struct rt_sdhci_pltfm_host
{
struct rt_clk *clk;
rt_uint32_t clock;
rt_uint16_t xfer_mode_shadow;
rt_ubase_t private[];
};
void rt_sdhci_get_property(struct rt_platform_device *pdev);
rt_inline void rt_sdhci_get_of_property(struct rt_platform_device *pdev)
{
return rt_sdhci_get_property(pdev);
}
extern struct rt_sdhci_host *rt_sdhci_pltfm_init(struct rt_platform_device *pdev,
const struct rt_sdhci_pltfm_data *pdata,
rt_size_t priv_size);
extern void rt_sdhci_pltfm_free(struct rt_platform_device *pdev);
extern rt_err_t rt_sdhci_pltfm_init_and_add_host(struct rt_platform_device *pdev,
const struct rt_sdhci_pltfm_data *pdata,
rt_size_t priv_size);
extern rt_err_t rt_sdhci_pltfm_remove(struct rt_platform_device *pdev);
extern rt_uint32_t rt_sdhci_pltfm_clk_get_max_clock(struct rt_sdhci_host *host);
rt_inline void *rt_sdhci_pltfm_priv(struct rt_sdhci_pltfm_host *host)
{
return host->private;
}
rt_inline rt_err_t rt_sdhci_pltfm_suspend(struct rt_device *dev)
{
return RT_EOK;
}
rt_inline rt_err_t rt_sdhci_pltfm_resume(struct rt_device *dev)
{
return RT_EOK;
}
#endif /* __DEV_SDHCI_DM_H__ */