soc/add_sdcard: use SDClockerS7 for 7-Series and SDClockerGen for others devices.
This commit is contained in:
parent
efbe169063
commit
b30e3353b5
|
@ -1268,10 +1268,9 @@ class LiteXSoC(SoC):
|
||||||
from litesdcard.clocker import SDClockerS7
|
from litesdcard.clocker import SDClockerS7
|
||||||
self.submodules.sdclk = SDClockerS7(sys_clk_freq=self.sys_clk_freq)
|
self.submodules.sdclk = SDClockerS7(sys_clk_freq=self.sys_clk_freq)
|
||||||
self.add_csr("sdclk")
|
self.add_csr("sdclk")
|
||||||
|
else:
|
||||||
if self.platform.device[:5] == "LFE5U":
|
from litesdcard.clocker import SDClockerGen
|
||||||
from litesdcard.clocker import SDClockerECP5
|
self.submodules.sdclk = SDClockerGen()
|
||||||
self.submodules.sdclk = SDClockerECP5()
|
|
||||||
self.add_csr("sdclk")
|
self.add_csr("sdclk")
|
||||||
|
|
||||||
# Core
|
# Core
|
||||||
|
|
Loading…
Reference in New Issue