boardd: bump spi to 50MHz

old-commit-hash: 71819b2282
beeps
Adeeb Shihadeh 2 years ago
parent 129ad5c8e0
commit 1b2cb4e7a5
  1. 5
      selfdrive/boardd/spi.cc

@ -57,9 +57,12 @@ PandaSpiHandle::PandaSpiHandle(std::string serial) : PandaCommsHandle(serial) {
uint8_t uid[uid_len] = {0};
uint32_t spi_mode = SPI_MODE_0;
uint32_t spi_speed = 30000000;
uint8_t spi_bits_per_word = 8;
// 50MHz is the max of the 845. note that some older
// revs of the comma three may not support this speed
uint32_t spi_speed = 50000000;
spi_fd = open(SPI_DEVICE.c_str(), O_RDWR);
if (spi_fd < 0) {
LOGE("failed opening SPI device %d", spi_fd);

Loading…
Cancel
Save