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,8 +112,6 @@ 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)
|
||||
|
||||
# Video ------------------------------------------------------------------------------------
|
||||
|
|
|
@ -107,8 +107,6 @@ 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)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -74,8 +74,6 @@ 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)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -125,8 +125,6 @@ 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)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -93,8 +93,6 @@ 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)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -93,8 +93,6 @@ 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)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -100,8 +100,6 @@ 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)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -101,8 +101,6 @@ 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)
|
||||
|
||||
# HyperRAM ---------------------------------------------------------------------------------
|
||||
|
|
|
@ -53,8 +53,6 @@ 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)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -87,8 +87,6 @@ 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)
|
||||
|
||||
# SDR SDRAM --------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue