spi: initial outline of spi_init and spi_free