基于SPI模式的SD卡驱动的分析与设计  被引量:2

Analysis and Design on SD Card Driver Based on SPI Mode

在线阅读下载全文

作  者:张宏科[1] 李斌[2] 陈丹熠 

机构地区:[1]中国电子科技集团公司第五十四研究所,河北石家庄050081 [2]中国电子科技集团公司第五十八研究所,江苏无锡214035

出  处:《计算机与网络》2013年第21期58-60,共3页Computer & Network

摘  要:SD卡作为媒体存储设备应用广泛,但很多SoC并未设计SDIO接口,故这种SoC只能通过SPI与SD卡通信,不能直接使用linux内核提供的现有的SD卡驱动。Bitbang协议是一种GPIO模拟SPI接口与SD卡通信的协议。Platform_driver是2.6版本内核以后新提出的驱动结构,有着规范和高效的特点。针对这种情况,采用了Bitbang协议和Platform架构,提出了一种基于SPI模式的SD卡驱动的解决方案。对Bitbang协议和Platform_driver结构的原理和实现方法进行了较为详细的论述,对驱动进行了测试,并最终给出了测试结果。The SD card is used widely as media storage device, but many kinds of SoC have not SDIO interface, such SoCs can communicate with the SD card only through SPI interface and can not directly use the current SD card driver provided by Linux kernel. The Bitbang protocol is a protocol that the GPIO simulates the SPI interface to communicate with the SD card. The Platform_driver is a new proposed drive structure after the kernel version 2.6 of Linux, which has such characteristics as standard and high efficiency. Aiming at this situation, the Bitbang protocol and the Platform architecture are used, and the solution of SD card driver based on SPI mode is proposed. The principles and implement methods of Bitbang protocol and Platform_driver architecture are discussed in detail, the driver is tested and the test results are given finally.

关 键 词:LINUX驱动 SD卡 bitbang协议 SPI模式 platform驱动 

分 类 号:TP333[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象