mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 04:14:34 +00:00
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>
This commit is contained in:
parent
ab839dc3e6
commit
6e16d90aca
1 changed files with 13 additions and 0 deletions
|
@ -202,3 +202,16 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
|
||||||
|
|
||||||
return ret;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue