X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/b51263995549e1d3c4d0f6794f361bc564d84504..82ff2f40b52f57e3d5ac746ca965fdc026f38d9e:/src/adafruit_blinka/microcontroller/generic_linux/spi.py diff --git a/src/adafruit_blinka/microcontroller/generic_linux/spi.py b/src/adafruit_blinka/microcontroller/generic_linux/spi.py index cf4a06c..f2ffa82 100755 --- a/src/adafruit_blinka/microcontroller/generic_linux/spi.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/spi.py @@ -33,15 +33,12 @@ class SPI: self.chip = detector.chip 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 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.SUN8I: - try: - self._spi.no_cs = True # this doesn't work but try anyways - except AttributeError: - pass + # No kernel seems to support this, so we're just going to pass + pass + + @property + def frequency(self): + return self.baudrate def write(self, buf, start=0, end=None): if not buf: