]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #124 from Groboards/master 2.0.0
authorbrentrubell <brentru@users.noreply.github.com>
Tue, 4 Jun 2019 19:17:17 +0000 (15:17 -0400)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2019 19:17:17 +0000 (15:17 -0400)
Add SAMA5 to set_no_cs to allow SPI device to setup.

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)
-        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: