提交 db41e7e3 编写于 作者: W weety

[BSP][DM365] update mmcsd driver.

上级 222edd25
...@@ -67,9 +67,6 @@ int main(void) ...@@ -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) ...@@ -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: ...@@ -1477,3 +1477,6 @@ err:
return -RT_ENOMEM; return -RT_ENOMEM;
} }
INIT_DEVICE_EXPORT(rt_hw_mmcsd_init);
...@@ -140,6 +140,6 @@ typedef struct { ...@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册