projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efbe169
)
soc/add_sdcard: use SDClockerS7 for 7-Series and SDClockerGen for others devices.
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Wed, 3 Jun 2020 16:36:06 +0000
(18:36 +0200)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Wed, 3 Jun 2020 16:37:08 +0000
(18:37 +0200)
litex/soc/integration/soc.py
patch
|
blob
|
history
diff --git
a/litex/soc/integration/soc.py
b/litex/soc/integration/soc.py
index f415b4819200237141e0288d42b6c1ef513405bf..ac12c5765fe7dae7e07f50c07d7f388308641d70 100644
(file)
--- a/
litex/soc/integration/soc.py
+++ b/
litex/soc/integration/soc.py
@@
-1268,10
+1268,9
@@
class LiteXSoC(SoC):
from litesdcard.clocker import SDClockerS7
self.submodules.sdclk = SDClockerS7(sys_clk_freq=self.sys_clk_freq)
self.add_csr("sdclk")
-
- if self.platform.device[:5] == "LFE5U":
- from litesdcard.clocker import SDClockerECP5
- self.submodules.sdclk = SDClockerECP5()
+ else:
+ from litesdcard.clocker import SDClockerGen
+ self.submodules.sdclk = SDClockerGen()
self.add_csr("sdclk")
# Core