projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab839dc
)
sandbox: Add implementation of spi_setup_slave_fdt()
author
Simon Glass
<sjg@chromium.org>
Thu, 27 Feb 2014 20:26:24 +0000
(13:26 -0700)
committer
Simon Glass
<sjg@chromium.org>
Tue, 18 Mar 2014 02:05:50 +0000
(20:05 -0600)
This function is needed when CONFIG_OF_SPI is defined.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/spi/sandbox_spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/sandbox_spi.c
b/drivers/spi/sandbox_spi.c
index 7895305a053d0b59563103c8f5c0a3a2e208f45a..12e9bdad38db51fdc0fdb127d142189d06c127ae 100644
(file)
--- 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;
+}