Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
litex-boards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kestrel Collaboration
Kestrel LiteX
litex-boards
Commits
a6e867c6
Unverified
Commit
a6e867c6
authored
Jan 07, 2021
by
enjoy-digital
Committed by
GitHub
Jan 07, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #144 from gsomlo/gls-genesys2-sdcard
genesys2: LiteSDCard support
parents
d2d17e00
2589d9f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
litex_boards/platforms/genesys2.py
litex_boards/platforms/genesys2.py
+8
-5
litex_boards/targets/genesys2.py
litex_boards/targets/genesys2.py
+7
-0
No files found.
litex_boards/platforms/genesys2.py
View file @
a6e867c6
...
...
@@ -68,17 +68,20 @@ _io = [
# SDCard
(
"spisdcard"
,
0
,
Subsignal
(
"rst"
,
Pins
(
"AE24"
)),
Subsignal
(
"clk"
,
Pins
(
"R28"
)),
Subsignal
(
"cs_n"
,
Pins
(
"T30"
)),
Subsignal
(
"mosi"
,
Pins
(
"R29"
),
Misc
(
"PULLUP"
)),
Subsignal
(
"miso"
,
Pins
(
"R26"
),
Misc
(
"PULLUP"
)),
Subsignal
(
"cs_n"
,
Pins
(
"T30"
)
,
Misc
(
"PULLUP True"
)
),
Subsignal
(
"mosi"
,
Pins
(
"R29"
),
Misc
(
"PULLUP
True
"
)),
Subsignal
(
"miso"
,
Pins
(
"R26"
),
Misc
(
"PULLUP
True
"
)),
Misc
(
"SLEW=FAST"
),
IOStandard
(
"LVCMOS33"
)
),
(
"sdcard"
,
0
,
Subsignal
(
"clk"
,
Pins
(
"R28"
)),
Subsignal
(
"cmd"
,
Pins
(
"R29"
),
Misc
(
"PULLUP True"
)),
Subsignal
(
"rst"
,
Pins
(
"AE24"
),
Misc
(
"PULLUP True"
)),
Subsignal
(
"data"
,
Pins
(
"R26 R30 P29 T30"
),
Misc
(
"PULLUP True"
)),
Subsignal
(
"cmd"
,
Pins
(
"R29"
),
Misc
(
"PULLUP True"
)),
Subsignal
(
"clk"
,
Pins
(
"R28"
)),
Subsignal
(
"cd"
,
Pins
(
"P28"
)),
Misc
(
"SLEW=FAST"
),
IOStandard
(
"LVCMOS33"
)
),
...
...
litex_boards/targets/genesys2.py
View file @
a6e867c6
...
...
@@ -103,6 +103,8 @@ def main():
parser
.
add_argument
(
"--sys-clk-freq"
,
default
=
100e6
,
help
=
"System clock frequency (default: 100MHz)"
)
parser
.
add_argument
(
"--with-ethernet"
,
action
=
"store_true"
,
help
=
"Enable Ethernet support"
)
parser
.
add_argument
(
"--with-etherbone"
,
action
=
"store_true"
,
help
=
"Enable Etherbone support"
)
parser
.
add_argument
(
"--with-spi-sdcard"
,
action
=
"store_true"
,
help
=
"Enable SPI-mode SDCard support"
)
parser
.
add_argument
(
"--with-sdcard"
,
action
=
"store_true"
,
help
=
"Enable SDCard support"
)
builder_args
(
parser
)
soc_sdram_args
(
parser
)
args
=
parser
.
parse_args
()
...
...
@@ -114,6 +116,11 @@ def main():
with_etherbone
=
args
.
with_etherbone
,
**
soc_sdram_argdict
(
args
)
)
assert
not
(
args
.
with_spi_sdcard
and
args
.
with_sdcard
)
if
args
.
with_spi_sdcard
:
soc
.
add_spi_sdcard
()
if
args
.
with_sdcard
:
soc
.
add_sdcard
()
builder
=
Builder
(
soc
,
**
builder_argdict
(
args
))
builder
.
build
(
run
=
args
.
build
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment