soc/cores/spi_flash: add missing endianness parameter
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 23 Nov 2018 17:33:53 +0000 (18:33 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 23 Nov 2018 17:33:53 +0000 (18:33 +0100)
litex/soc/cores/spi_flash.py

index 86cab3ee1d11ea37c69e7d4fefde3c7330f22479..35d2ac44786bc616d120ea00f639bda20db07bfc 100644 (file)
@@ -117,7 +117,7 @@ class SpiFlashDualQuad(Module, AutoCSR):
 
 
 class SpiFlashSingle(Module, AutoCSR):
-    def __init__(self, pads, dummy=15, div=2):
+    def __init__(self, pads, dummy=15, div=2, endianness="big"):
         """
         Simple SPI flash.
         Supports 1-bit reads. Only supports mode0 (cpol=0, cpha=0).