litesdcard: update integration.
This commit is contained in:
parent
2c53f9b2ff
commit
94821cb73c
|
@ -1261,7 +1261,7 @@ class LiteXSoC(SoC):
|
|||
# Core
|
||||
if hasattr(sdcard_pads, "rst"):
|
||||
self.comb += sdcard_pads.rst.eq(0)
|
||||
self.submodules.sdphy = SDPHY(sdcard_pads, self.platform.device)
|
||||
self.submodules.sdphy = SDPHY(sdcard_pads, self.platform.device, self.clk_freq)
|
||||
self.submodules.sdcore = SDCore(self.sdphy)
|
||||
self.add_csr("sdphy")
|
||||
self.add_csr("sdcore")
|
||||
|
|
|
@ -421,9 +421,6 @@ void sdcard_decode_csd(void) {
|
|||
int sdcard_init(void) {
|
||||
unsigned short rca;
|
||||
|
||||
/* initialize SD driver parameters */
|
||||
sdcore_timeout_write(1<<19);
|
||||
|
||||
/* reset card */
|
||||
sdcard_go_idle();
|
||||
busy_wait(1);
|
||||
|
|
Loading…
Reference in New Issue