mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
sipeed_tang_primer_20k: Cleanup/Fix.
This commit is contained in:
parent
68733c6e92
commit
6e33d9249f
2 changed files with 11 additions and 19 deletions
|
@ -33,7 +33,7 @@ _io = [
|
|||
Subsignal("mosi", Pins("R10"), IOStandard("LVCMOS33")),
|
||||
),
|
||||
|
||||
## sdcard connector
|
||||
# SDCard
|
||||
("spisdcard", 0,
|
||||
Subsignal("clk", Pins("N10")),
|
||||
Subsignal("mosi", Pins("R14")),
|
||||
|
@ -48,15 +48,11 @@ _io = [
|
|||
Subsignal("cd", Pins("D15")),
|
||||
IOStandard("LVCMOS33"),
|
||||
),
|
||||
|
||||
# TODO: SPI LCD
|
||||
]
|
||||
|
||||
# Connectors ---------------------------------------------------------------------------------------
|
||||
|
||||
_connectors = [
|
||||
# TODO
|
||||
]
|
||||
_connectors = []
|
||||
|
||||
# Platform -----------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -14,9 +14,8 @@ from litex.soc.integration.soc_core import *
|
|||
from litex.soc.integration.soc import SoCRegion
|
||||
from litex.soc.integration.builder import *
|
||||
from litex.soc.cores.led import LedChaser
|
||||
from litex.soc.cores.video import *
|
||||
|
||||
from litex_boards.platforms import tang_primer_20k
|
||||
from litex_boards.platforms import sipeed_tang_primer_20k
|
||||
|
||||
from litex.soc.cores.hyperbus import HyperRAM
|
||||
|
||||
|
@ -26,7 +25,7 @@ mB = 1024*kB
|
|||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq, with_video_pll=False):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
self.rst = Signal()
|
||||
self.clock_domains.cd_sys = ClockDomain()
|
||||
self.clock_domains.cd_por = ClockDomain()
|
||||
|
@ -53,16 +52,13 @@ class _CRG(Module):
|
|||
|
||||
class BaseSoC(SoCCore):
|
||||
def __init__(self, sys_clk_freq=int(48e6), **kwargs):
|
||||
platform = tang_primer_20k.Platform()
|
||||
platform = sipeed_tang_primer_20k.Platform()
|
||||
|
||||
# CRG --------------------------------------------------------------------------------------
|
||||
self.submodules.crg = _CRG(platform, sys_clk_freq)
|
||||
|
||||
# SoCCore ----------------------------------------------------------------------------------
|
||||
SoCCore.__init__(self, platform, sys_clk_freq,
|
||||
ident = "LiteX SoC on Tang Primer 20K",
|
||||
**kwargs
|
||||
)
|
||||
SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Tang Primer 20K", **kwargs)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue