Преглед на файлове

sandbox: Add implementation of spi_setup_slave_fdt()

This function is needed when CONFIG_OF_SPI is defined.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass преди 11 години
родител
ревизия
6e16d90aca
променени са 1 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 13 0
      drivers/spi/sandbox_spi.c

+ 13 - 0
drivers/spi/sandbox_spi.c

@@ -202,3 +202,16 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
 
 	return ret;
 }
+
+/**
+ * Set up a new SPI slave for an fdt node
+ *
+ * @param blob		Device tree blob
+ * @param node		SPI peripheral node to use
+ * @return 0 if ok, -1 on error
+ */
+struct spi_slave *spi_setup_slave_fdt(const void *blob, int slave_node,
+				      int spi_node)
+{
+	return NULL;
+}