瀏覽代碼

update SDIO driver

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2027 bbd45198-f89e-11dd-88c7-29a3b14d5316
luohui2320@gmail.com 13 年之前
父節點
當前提交
9c804a28a4
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      components/drivers/sdio/mmcsd_core.c

+ 5 - 0
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);