aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/omap3_spi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-03-25 12:01:44 -0400
committerTom Rini <trini@konsulko.com>2018-03-25 12:01:44 -0400
commit2dc5165ee04dedfa88ebc9fc79c29bd56a54681d (patch)
tree4f867cd3353523610932a93865bc35e57a201f1d /drivers/spi/omap3_spi.c
parentf7c9e76fb85369aa6a347201b04ad8c676c42665 (diff)
parent63018a3eddd5d9c64f7ee42615a63c6a67ab484d (diff)
Merge git://git.denx.de/u-boot-spi
Diffstat (limited to 'drivers/spi/omap3_spi.c')
-rw-r--r--drivers/spi/omap3_spi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index 053a67bbe0..1ac691a68e 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -630,8 +630,10 @@ static int omap3_spi_probe(struct udevice *dev)
(struct omap2_mcspi_platform_config*)dev_get_driver_data(dev);
priv->regs = (struct mcspi *)(devfdt_get_addr(dev) + data->regs_offset);
- priv->pin_dir = fdtdec_get_uint(blob, node, "ti,pindir-d0-out-d1-in",
- MCSPI_PINDIR_D0_IN_D1_OUT);
+ if (fdtdec_get_bool(blob, node, "ti,pindir-d0-out-d1-in"))
+ priv->pin_dir = MCSPI_PINDIR_D0_OUT_D1_IN;
+ else
+ priv->pin_dir = MCSPI_PINDIR_D0_IN_D1_OUT;
priv->wordlen = SPI_DEFAULT_WORDLEN;
return 0;
}