summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-19 22:16:11 -0700
committerSimon Glass <sjg@chromium.org>2015-01-24 06:13:45 -0700
commit8e899af0597a43d70752654b227f308dd0d0039c (patch)
tree7564384f6ab85035268671c06c8d00dacd3cbf14 /drivers
parentfc4860c089a6b6603e1ae4f9c1f8bd1b3aadfc8b (diff)
downloadu-boot-imx-8e899af0597a43d70752654b227f308dd0d0039c.zip
u-boot-imx-8e899af0597a43d70752654b227f308dd0d0039c.tar.gz
u-boot-imx-8e899af0597a43d70752654b227f308dd0d0039c.tar.bz2
x86: spi: Add device tree support
As a temporary measure before the ICH driver moves over to driver model, add device tree support to the driver. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/ich.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index 0379444..fdff158 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -153,6 +153,13 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
return &ich->slave;
}
+struct spi_slave *spi_setup_slave_fdt(const void *blob, int slave_node,
+ int spi_node)
+{
+ /* We only support a single SPI at present */
+ return spi_setup_slave(0, 0, 20000000, 0);
+}
+
void spi_free_slave(struct spi_slave *slave)
{
struct ich_spi_slave *ich = to_ich_spi(slave);