targets/tec0117: move SerialFlashManager import to flash function.
This commit is contained in:
parent
2da4eabffe
commit
ce14775dfb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue