From: Simon Glass Date: Thu, 27 Feb 2014 20:26:24 +0000 (-0700) Subject: sandbox: Add implementation of spi_setup_slave_fdt() X-Git-Tag: v2014.04-rc3~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e16d90aca35b8f95dd6ee9aef953d702b99eecc;p=u-boot sandbox: Add implementation of spi_setup_slave_fdt() This function is needed when CONFIG_OF_SPI is defined. Signed-off-by: Simon Glass --- diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 7895305a05..12e9bdad38 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; +}