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
fad06d99
Commit
fad06d99
authored
May 20, 2022
by
Raptor Engineering Development Team
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add production mode flags to Arctic Tern and Sparrowhawk platforms
parent
76b237ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
litex_boards/targets/rcs_arctic_tern_bmc_card.py
litex_boards/targets/rcs_arctic_tern_bmc_card.py
+12
-2
litex_boards/targets/sparrowhawk_bmc.py
litex_boards/targets/sparrowhawk_bmc.py
+11
-1
No files found.
litex_boards/targets/rcs_arctic_tern_bmc_card.py
View file @
fad06d99
...
@@ -52,6 +52,12 @@ from arcticterngpio.arcticterngpio import ArcticTernSDRHexDriver
...
@@ -52,6 +52,12 @@ from arcticterngpio.arcticterngpio import ArcticTernSDRHexDriver
kB
=
1024
kB
=
1024
mB
=
1024
*
kB
mB
=
1024
*
kB
# Production mode
# When enabled, boot time is prioritized
# and internal Flash is used as the boot source
# Various self-tests are disabled as well
production_mode
=
False
# Internal GPIO Output -----------------------------------------------------------------------------
# Internal GPIO Output -----------------------------------------------------------------------------
class
InternalGPIOOut
(
Module
,
AutoCSR
):
class
InternalGPIOOut
(
Module
,
AutoCSR
):
def
__init__
(
self
,
data_out
,
nbits
):
def
__init__
(
self
,
data_out
,
nbits
):
...
@@ -557,8 +563,9 @@ def main():
...
@@ -557,8 +563,9 @@ def main():
"}
\
n
"
)
"}
\
n
"
)
# Flash boot setup
# Flash boot setup
flash_boot_adr
=
soc
.
mem_map
[
"bmcspiflash"
]
+
0x800000
flash_boot_adr
=
soc
.
mem_map
[
"bmcspiflash"
]
soc
.
add_constant
(
"FLASH_BOOT_ADDRESS"
,
flash_boot_adr
)
if
production_mode
:
soc
.
add_constant
(
"FLASH_BOOT_ADDRESS"
,
flash_boot_adr
)
soc
.
set_gateware_dir
(
builder
.
gateware_dir
)
soc
.
set_gateware_dir
(
builder
.
gateware_dir
)
...
@@ -578,6 +585,9 @@ def main():
...
@@ -578,6 +585,9 @@ def main():
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
"_stuffed.config"
),
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
"_stuffed.config"
),
"--svf"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".svf"
),
"--svf"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".svf"
),
"--bit"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".bit"
),
"--bit"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".bit"
),
"--spimode"
,
"fast-read"
,
"--freq"
,
"38.8"
,
"--compress"
,
"--bootaddr"
,
"0"
])
"--bootaddr"
,
"0"
])
if
args
.
load
:
if
args
.
load
:
...
...
litex_boards/targets/sparrowhawk_bmc.py
View file @
fad06d99
...
@@ -44,6 +44,12 @@ from opencoresi2c.opencoresi2c import OpenCoresI2CMaster
...
@@ -44,6 +44,12 @@ from opencoresi2c.opencoresi2c import OpenCoresI2CMaster
kB
=
1024
kB
=
1024
mB
=
1024
*
kB
mB
=
1024
*
kB
# Production mode
# When enabled, boot time is prioritized
# and internal Flash is used as the boot source
# Various self-tests are disabled as well
production_mode
=
False
# CRG ----------------------------------------------------------------------------------------------
# CRG ----------------------------------------------------------------------------------------------
class
_CRG
(
Module
):
class
_CRG
(
Module
):
...
@@ -446,7 +452,8 @@ def main():
...
@@ -446,7 +452,8 @@ def main():
# Flash boot setup
# Flash boot setup
flash_boot_adr
=
soc
.
mem_map
[
"bmcspiflash"
]
+
0x800000
flash_boot_adr
=
soc
.
mem_map
[
"bmcspiflash"
]
+
0x800000
soc
.
add_constant
(
"FLASH_BOOT_ADDRESS"
,
flash_boot_adr
)
if
production_mode
:
soc
.
add_constant
(
"FLASH_BOOT_ADDRESS"
,
flash_boot_adr
)
soc
.
set_gateware_dir
(
builder
.
gateware_dir
)
soc
.
set_gateware_dir
(
builder
.
gateware_dir
)
...
@@ -466,6 +473,9 @@ def main():
...
@@ -466,6 +473,9 @@ def main():
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
"_stuffed.config"
),
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
"_stuffed.config"
),
"--svf"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".svf"
),
"--svf"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".svf"
),
"--bit"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".bit"
),
"--bit"
,
os
.
path
.
join
(
builder
.
gateware_dir
,
soc
.
platform
.
name
+
".bit"
),
"--spimode"
,
"fast-read"
,
"--freq"
,
"38.8"
,
"--compress"
,
"--bootaddr"
,
"0"
])
"--bootaddr"
,
"0"
])
if
args
.
load
:
if
args
.
load
:
...
...
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