[BSP][DM365] update mmcsd driver.
This commit is contained in:
parent
222edd25c0
commit
db41e7e30e
|
@ -67,9 +67,6 @@ int main(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_SDIO
|
#ifdef RT_USING_SDIO
|
||||||
rt_mmcsd_core_init();
|
|
||||||
rt_mmcsd_blk_init();
|
|
||||||
rt_hw_mmcsd_init();
|
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2))
|
while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1388,7 +1388,7 @@ static void rt_hw_edma_init(void)
|
||||||
** 调用模块: 无
|
** 调用模块: 无
|
||||||
**
|
**
|
||||||
********************************************************************************************************/
|
********************************************************************************************************/
|
||||||
rt_int32_t rt_hw_mmcsd_init(void)
|
int rt_hw_mmcsd_init(void)
|
||||||
{
|
{
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
struct mmc_dm365_host *dm365_host;
|
struct mmc_dm365_host *dm365_host;
|
||||||
|
@ -1477,3 +1477,6 @@ err:
|
||||||
|
|
||||||
return -RT_ENOMEM;
|
return -RT_ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_DEVICE_EXPORT(rt_hw_mmcsd_init);
|
||||||
|
|
||||||
|
|
|
@ -140,6 +140,6 @@ typedef struct {
|
||||||
volatile rt_uint32_t MMCFIFOCTL;
|
volatile rt_uint32_t MMCFIFOCTL;
|
||||||
}mmcsd_regs_t;
|
}mmcsd_regs_t;
|
||||||
|
|
||||||
extern rt_int32_t rt_hw_mmcsd_init(void);
|
extern int rt_hw_mmcsd_init(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue