[spi] Add address-length autodetection to the SPI bit-bashing code