Last change
on this file since 950 was
552,
checked in by bouyer, 11 years ago
|
Add a SPI SD/MMC card model. Write command not implemented yet.
Known to work with the TSAR SPI boot loader and NetBSD's sdmmc driver.
The data are backed by a file in the host's filesystem, as vci_block_device
does.
The purpose of this model is to provide a sdmmc device to the vci_spi
controller. It's not intended to respect timings or a real SD/MMC device.
|
File size:
707 bytes
|
Line | |
---|
1 | |
---|
2 | # -*- python -*- |
---|
3 | |
---|
4 | Module('caba:sdmmc', |
---|
5 | classname = 'soclib::caba::SdMMC', |
---|
6 | |
---|
7 | header_files = [ |
---|
8 | '../source/include/sdmmc.h', |
---|
9 | ], |
---|
10 | |
---|
11 | implementation_files = [ |
---|
12 | '../source/src/sdmmc.cpp', |
---|
13 | ], |
---|
14 | |
---|
15 | ports = [ |
---|
16 | Port('caba:bit_in', 'p_spi_clk'), |
---|
17 | Port('caba:bit_in', 'p_spi_ss'), |
---|
18 | Port('caba:bit_in', 'p_spi_mosi'), |
---|
19 | Port('caba:bit_out', 'p_spi_miso'), |
---|
20 | Port('caba:bit_in', 'p_resetn', auto = 'resetn'), |
---|
21 | Port('caba:clock_in', 'p_clk', auto = 'clock'), |
---|
22 | ], |
---|
23 | |
---|
24 | uses = [ |
---|
25 | Uses('caba:base_module'), |
---|
26 | ], |
---|
27 | |
---|
28 | instance_parameters = [ |
---|
29 | parameter.String('filename'), |
---|
30 | parameter.Int('latency'), |
---|
31 | ], |
---|
32 | |
---|
33 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.