Commit ce14775d authored by Florent Kermarrec's avatar Florent Kermarrec

targets/tec0117: move SerialFlashManager import to flash function.

parent 2da4eabf
...@@ -22,8 +22,6 @@ from litex.soc.cores.led import LedChaser ...@@ -22,8 +22,6 @@ from litex.soc.cores.led import LedChaser
from litex_boards.platforms import tec0117 from litex_boards.platforms import tec0117
from spiflash.serialflash import SerialFlashManager
kB = 1024 kB = 1024
mB = 1024*kB mB = 1024*kB
...@@ -73,6 +71,7 @@ class BaseSoC(SoCCore): ...@@ -73,6 +71,7 @@ class BaseSoC(SoCCore):
# Flash -------------------------------------------------------------------------------------------- # Flash --------------------------------------------------------------------------------------------
def flash(offset, path): def flash(offset, path):
from spiflash.serialflash import SerialFlashManager
platform = tec0117.Platform() platform = tec0117.Platform()
flash = platform.request("spiflash", 0) flash = platform.request("spiflash", 0)
bus = platform.request("spiflash", 1) bus = platform.request("spiflash", 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment