Fix spi and simple_spi generation