aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorWolfgang Ocker <weo@reccoware.de>2008-10-15 09:00:47 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-10-21 00:34:01 -0400
commitf618ebfcbf9616a0fa9a78f5ecb69762f0fa3c59 (patch)
tree89ac6262cce1610e61aa846ae305ea2c0c6323b2 /drivers/of
parentfd657efc67dbd70f422285101a50c2e84d03463d (diff)
of/spi: Support specifying chip select as active high via device tree
The patch allows to specify that an SPI device needs an active high chip select. Signed-off-by: Wolfgang Ocker <weo@reccoware.de> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/of_spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/of_spi.c b/drivers/of/of_spi.c
index b01eec026f68..bed0ed6dcdc1 100644
--- a/drivers/of/of_spi.c
+++ b/drivers/of/of_spi.c
@@ -61,6 +61,8 @@ void of_register_spi_devices(struct spi_master *master, struct device_node *np)
61 spi->mode |= SPI_CPHA; 61 spi->mode |= SPI_CPHA;
62 if (of_find_property(nc, "spi-cpol", NULL)) 62 if (of_find_property(nc, "spi-cpol", NULL))
63 spi->mode |= SPI_CPOL; 63 spi->mode |= SPI_CPOL;
64 if (of_find_property(nc, "spi-cs-high", NULL))
65 spi->mode |= SPI_CS_HIGH;
64 66
65 /* Device speed */ 67 /* Device speed */
66 prop = of_get_property(nc, "spi-max-frequency", &len); 68 prop = of_get_property(nc, "spi-max-frequency", &len);