diff options
author | Simon Glass <sjg@chromium.org> | 2013-12-03 23:43:24 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2013-12-09 19:22:12 (GMT) |
commit | 0efc02499f9131bd7e1689ebb8d626ef12387de4 (patch) | |
tree | d6b4296f983ebe381432d7db3b12e4368ec0efe9 /drivers/misc/cros_ec_spi.c | |
parent | 7b3efc66996b6686ad393b706c323990afa31930 (diff) | |
download | u-boot-fsl-qoriq-0efc02499f9131bd7e1689ebb8d626ef12387de4.tar.xz |
spi_flash: Add spi_flash_probe_fdt() to locate SPI by FDT node
This allows us to put the SPI flash chip inside the SPI interface node,
with U-Boot finding the correct bus and chip select automatically.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc/cros_ec_spi.c')
-rw-r--r-- | drivers/misc/cros_ec_spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c index 202acf2..2fc9110 100644 --- a/drivers/misc/cros_ec_spi.c +++ b/drivers/misc/cros_ec_spi.c @@ -135,8 +135,7 @@ int cros_ec_spi_decode_fdt(struct cros_ec_dev *dev, const void *blob) */ int cros_ec_spi_init(struct cros_ec_dev *dev, const void *blob) { - dev->spi = spi_setup_slave_fdt(blob, dev->parent_node, - dev->cs, dev->max_frequency, 0); + dev->spi = spi_setup_slave_fdt(blob, dev->parent_node, dev->node); if (!dev->spi) { debug("%s: Could not setup SPI slave\n", __func__); return -1; |