首页 | 本学科首页   官方微博 | 高级检索  
     

基于SPI模式的SD卡驱动的分析与设计
引用本文:张宏科,李斌,陈丹熠. 基于SPI模式的SD卡驱动的分析与设计[J]. 计算机与网络, 2013, 0(21): 58-60
作者姓名:张宏科  李斌  陈丹熠
作者单位:[1]中国电子科技集团公司第五十四研究所,河北石家庄050081 [2]中国电子科技集团公司第五十八研究所,江苏无锡214035
摘    要:SD卡作为媒体存储设备应用广泛,但很多SoC并未设计SDIO接口,故这种SoC只能通过SPI与SD卡通信,不能直接使用linux内核提供的现有的sD卡驱动。Bitbang协议是一种GPIO模拟SPI接口与sD卡通信的协议。Platform_driver是2.6版本内核以后新提出的驱动结构,有着规范和高效的特点。针对这种情况,采用了Bitbang协议和Platform架构,提出了一种基于SPI模式的sD卡驱动的解决方案。对Bitbang协议和Platform_driver结构的原理和实现方法进行了较为详细的论述,对驱动进行了测试,并最终给出了测试结果。

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

Analysis and Design on SD Card Driver Based on SPI Mode
ZHANG Hong-ke,LI Bin,CHEN Dan-yi. Analysis and Design on SD Card Driver Based on SPI Mode[J]. China Computer & Network, 2013, 0(21): 58-60
Authors:ZHANG Hong-ke  LI Bin  CHEN Dan-yi
Affiliation:1. The 54th Research Institute ofCETC, Shijiazhuang Hebei 050081, China; 2. The 58th Research Institute ofCETC, WuxiJiangsu 214035, China)
Abstract: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.
Keywords:Linux driver  SD card  bitbang protocol  SPI mode  platform_driver
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号