add chromeos.c and spi_xfer function