summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-08 15:20:36 +0000
committer[email protected] <[email protected]>2012-04-08 15:20:36 +0000
commit9c804a28a442837d222358b63821c0ebf4efc811 (patch)
tree7e40bde56c689d9feb62402a934a0bc2e4e6e6fc
parent7f98c2e5e99b4d376e2d048bd21d99296c985214 (diff)
update SDIO driver
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2027 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/drivers/sdio/mmcsd_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c
index ad1483f54f..777f15f2bb 100644
--- a/components/drivers/sdio/mmcsd_core.c
+++ b/components/drivers/sdio/mmcsd_core.c
@@ -622,6 +622,11 @@ struct rt_mmcsd_host *mmcsd_alloc_host(void)
rt_memset(host, 0, sizeof(struct rt_mmcsd_host));
+ host->max_seg_size = 65535;
+ host->max_dma_segs = 1;
+ host->max_blk_size = 512;
+ host->max_blk_count = 4096;
+
rt_sem_init(&host->bus_lock, "sd_bus_lock", 1, RT_IPC_FLAG_FIFO);
rt_sem_init(&host->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO);