Skip to content
Snippets Groups Projects
Commit ce14775d authored by Florent Kermarrec's avatar Florent Kermarrec
Browse files

targets/tec0117: move SerialFlashManager import to flash function.

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