mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
targets/spiflash: Simplify self.cpu.set_reset_address call.
This commit is contained in:
parent
30cacc19c2
commit
4b6a9b2cf0
10 changed files with 10 additions and 30 deletions
|
@ -112,9 +112,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Video ------------------------------------------------------------------------------------
|
||||
if with_video_terminal:
|
||||
|
|
|
@ -107,9 +107,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -74,9 +74,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
if with_led_chaser:
|
||||
|
|
|
@ -125,9 +125,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
if with_led_chaser:
|
||||
|
|
|
@ -93,9 +93,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
if with_led_chaser:
|
||||
|
|
|
@ -93,9 +93,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
if with_led_chaser:
|
||||
|
|
|
@ -100,9 +100,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
self.submodules.leds = LedChaser(
|
||||
|
|
|
@ -101,9 +101,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# HyperRAM ---------------------------------------------------------------------------------
|
||||
if with_hyperram:
|
||||
|
|
|
@ -53,9 +53,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
if with_led_chaser:
|
||||
|
|
|
@ -87,9 +87,7 @@ class BaseSoC(SoCCore):
|
|||
size = 32*kB,
|
||||
linker = True)
|
||||
)
|
||||
# Set CPU reset address to ROM.
|
||||
if hasattr(self.cpu, "set_reset_address"):
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||
|
||||
# SDR SDRAM --------------------------------------------------------------------------------
|
||||
if not self.integrated_main_ram_size:
|
||||
|
|
Loading…
Reference in a new issue