modify to use the spi driver.