summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-27 13:26:24 -0700
committerSimon Glass <sjg@chromium.org>2014-03-17 20:05:50 -0600
commit6e16d90aca35b8f95dd6ee9aef953d702b99eecc (patch)
tree4322f75013403cbe123bec7aa5ee0073f10876ad /drivers/spi
parentab839dc3e6c1d07bc926199f3eebace0804f2ecf (diff)
downloadu-boot-imx-6e16d90aca35b8f95dd6ee9aef953d702b99eecc.zip
u-boot-imx-6e16d90aca35b8f95dd6ee9aef953d702b99eecc.tar.gz
u-boot-imx-6e16d90aca35b8f95dd6ee9aef953d702b99eecc.tar.bz2
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/sandbox_spi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c
index 7895305..12e9bda 100644
--- a/drivers/spi/sandbox_spi.c
+++ b/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;
+}