]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add SAMA5 to set_no_cs
authorChristopher Alessandro <calessandro0827@gmail.com>
Mon, 3 Jun 2019 17:31:04 +0000 (10:31 -0700)
committerChristopher Alessandro <calessandro0827@gmail.com>
Mon, 3 Jun 2019 17:31:04 +0000 (10:31 -0700)
src/adafruit_blinka/microcontroller/generic_linux/spi.py

index 9ef05fc14d4cc089cc68663a4e8e7070c3837d77..ef442b162576d0b4e440a4f51e6b74e8730fc5b4 100755 (executable)
@@ -35,7 +35,7 @@ class SPI:
     def set_no_cs(self):
         # Linux SPI driver for AM33XX chip in BeagleBone and PocketBeagle
         # does not support setting SPI_NO_CS mode bit (issue #104)
     def set_no_cs(self):
         # Linux SPI driver for AM33XX chip in BeagleBone and PocketBeagle
         # does not support setting SPI_NO_CS mode bit (issue #104)
-        if not self.chip.AM33XX and not self.chip.IMX8MX:
+        if not self.chip.AM33XX and not self.chip.IMX8MX and not self.chip.SAMA5:
             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: