targets/tec0117: move SerialFlashManager import to flash function.

This commit is contained in:
Florent Kermarrec 2020-11-04 09:30:31 +01:00
parent 2da4eabffe
commit ce14775dfb
1 changed files with 1 additions and 2 deletions

View File

@ -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):
# 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)