updated spi driver to support spi1 and spi0