From ce14775dfbfb0c2cbbbc6b2ab531aa61512f57cc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 4 Nov 2020 09:30:31 +0100 Subject: [PATCH] targets/tec0117: move SerialFlashManager import to flash function. --- litex_boards/targets/tec0117.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litex_boards/targets/tec0117.py b/litex_boards/targets/tec0117.py index 15050b1..2578576 100755 --- a/litex_boards/targets/tec0117.py +++ b/litex_boards/targets/tec0117.py @@ -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) -- 2.30.2