X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fspi%2Fsandbox_spi.c;h=12e9bdad38db51fdc0fdb127d142189d06c127ae;hb=bcb879c0e37db1cf527ff408df93918f155012ea;hp=7895305a053d0b59563103c8f5c0a3a2e208f45a;hpb=4b210ad34282bfd9fc982a8e3c9a9126f4094cdb;p=u-boot 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; +}