[BSP][AT91SAM9260] update sdio drivers.
This commit is contained in:
parent
e4dd86a1b7
commit
222edd25c0
|
@ -73,9 +73,6 @@ int main(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_SDIO
|
#ifdef RT_USING_SDIO
|
||||||
rt_mmcsd_core_init();
|
|
||||||
rt_mmcsd_blk_init();
|
|
||||||
at91_mci_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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -834,7 +834,7 @@ static void mci_gpio_init()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
rt_int32_t at91_mci_init(void)
|
int at91_mci_init(void)
|
||||||
{
|
{
|
||||||
struct rt_mmcsd_host *host;
|
struct rt_mmcsd_host *host;
|
||||||
struct at91_mci *mci;
|
struct at91_mci *mci;
|
||||||
|
@ -903,6 +903,7 @@ err:
|
||||||
return -RT_ENOMEM;
|
return -RT_ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_DEVICE_EXPORT(at91_mci_init);
|
||||||
|
|
||||||
#include "finsh.h"
|
#include "finsh.h"
|
||||||
FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init);
|
FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init);
|
||||||
|
|
|
@ -119,6 +119,6 @@
|
||||||
#define AT91_MCI_IDR 0x48 /* Interrupt Disable Register */
|
#define AT91_MCI_IDR 0x48 /* Interrupt Disable Register */
|
||||||
#define AT91_MCI_IMR 0x4c /* Interrupt Mask Register */
|
#define AT91_MCI_IMR 0x4c /* Interrupt Mask Register */
|
||||||
|
|
||||||
extern rt_int32_t at91_mci_init(void);
|
extern int at91_mci_init(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue