]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/generic_linux/spi.py
Fixes issue with SPI on Orange Pi Zero and R1
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / generic_linux / spi.py
index 58a465db727588abb1b758c1c5987292e1f30f3c..cf4a06c6cd259ea5ce20f286d8db22c22970ad98 100755 (executable)
@@ -37,7 +37,7 @@ class SPI:
         # does not support setting SPI_NO_CS mode bit (issue #104)
         if not self.chip.AM33XX and not self.chip.IMX8MX and not self.chip.SAMA5 \
          and not self.chip.APQ8016 and not self.chip.T210 and not self.chip.T186 \
         # does not support setting SPI_NO_CS mode bit (issue #104)
         if not self.chip.AM33XX and not self.chip.IMX8MX and not self.chip.SAMA5 \
          and not self.chip.APQ8016 and not self.chip.T210 and not self.chip.T186 \
-         and not self.chip.T194:
+         and not self.chip.T194 and not self.chip.SUN8I:
             try:
                 self._spi.no_cs = True  # this doesn't work but try anyways
             except AttributeError:
             try:
                 self._spi.no_cs = True  # this doesn't work but try anyways
             except AttributeError: