Skip to content
Snippets Groups Projects
Commit 6e16d90a authored by Simon Glass's avatar Simon Glass
Browse files

sandbox: Add implementation of spi_setup_slave_fdt()


This function is needed when CONFIG_OF_SPI is defined.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ab839dc3
No related branches found
No related tags found
Loading
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment