|
|
Wishbone SD Card Controller IP Core
|
Wishbone SD Card Controller IP Core
|
===================================
|
===================================
|
|
|
The Wishbone SD Card Controller IP Core is MMC/SD communication controller designed to be
|
The Wishbone SD Card Controller IP Core is MMC/SD communication controller designed to be
|
used in a System-on-Chip. IP core provides simple interface for any CPU with Wishbone
|
used in a System-on-Chip. IP core provides simple interface for any CPU with Wishbone
|
bus. The communication between the MMC/SD card controller and MMC/SD card is performed
|
bus. The communication between the MMC/SD card controller and MMC/SD card is performed
|
according to the MMC/SD protocol.
|
according to the MMC/SD protocol.
|
|
|
Introduction
|
Introduction
|
------------
|
------------
|
This core is based on the "sd card controller" project from
|
This core is based on the "sd card controller" project from
|
http://opencores.org/project,sdcard_mass_storage_controller
|
http://opencores.org/project,sdcard_mass_storage_controller
|
but has been largely rewritten. A lot of effort has been made
|
but has been largely rewritten. A lot of effort has been made
|
to make the core more generic and easily usable
|
to make the core more generic and easily usable
|
with OSs like Linux.
|
with OSs like Linux.
|
- data transfer commands are not fixed
|
- data transfer commands are not fixed
|
- data transfer block size is configurable
|
- data transfer block size is configurable
|
- multiple block transfer support
|
- multiple block transfer support
|
- R2 responses (136 bit) support
|
- R2 responses (136 bit) support
|
|
|
Features
|
Features
|
--------
|
--------
|
|
|
The MMC/SD card controller provides following features:
|
The MMC/SD card controller provides following features:
|
|
|
- 1- or 4-bit MMC/SD mode (does not support SPI mode),
|
- 1- or 4-bit MMC/SD mode (does not support SPI mode),
|
- 32-bit Wishbone interface,
|
- 32-bit Wishbone interface,
|
- DMA engine for data transfers,
|
- DMA engine for data transfers,
|
- Interrupt generation on completion of data and command transactions,
|
- Interrupt generation on completion of data and command transactions,
|
- Configurable data transfer block size,
|
- Configurable data transfer block size,
|
- Support for any command code (including multiple data block tranfser),
|
- Support for any command code (including multiple data block tranfser),
|
- Support for R1, R1b, R2(136-bit), R3, R6 and R7 responses.
|
- Support for R1, R1b, R2(136-bit), R3, R6 and R7 responses.
|
|
|
Documentation
|
Documentation
|
-------------
|
-------------
|
|
|
The documentation is located in the doc/ directory.
|
The documentation is located in the doc/ directory.
|
|
|
Examples
|
Examples
|
--------
|
--------
|
|
|
A sample ORPSoC project that make use of this core is located at:
|
A sample ORPSoC project that make use of this core is located at:
|
|
|
https://github.com/mczerski/orpsoc-de0_nano
|
https://github.com/mczerski/orpsoc-de0_nano
|
|
|
The project is based on de0_nano board with custom made expansion board
|
The project is based on de0_nano board with custom made expansion board
|
with SD Card connector.
|
with SD Card connector.
|
|
|
There is also u-boot project port for this board located at:
|
There is also u-boot project port for this board located at:
|
|
|
https://github.com/mczerski/u-boot
|
https://github.com/mczerski/u-boot
|
|
|
This u-boot project contains driver for Wishbone SD Card Controller IP Core
|
This u-boot project contains driver for Wishbone SD Card Controller IP Core
|
and can be configured for de0_nano board (with custom made expansion board).
|
and can be configured for de0_nano board (with custom made expansion board).
|
|
|
|
Also in the plan is the driver for Linux. The initial work can be found at:
|
|
|
|
https://bitbucket.org/rozpruwacz/linux-openrisc
|
|
|
|
the driver is named ocsdc and is located in drivers/mmc/host directory.
|
|
|
|
|