diff options
-rw-r--r-- | Documentation/powerpc/booting-without-of.txt | 2 | ||||
-rw-r--r-- | drivers/of/of_spi.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt index de4063cb4fdc..02ea9a971b8e 100644 --- a/Documentation/powerpc/booting-without-of.txt +++ b/Documentation/powerpc/booting-without-of.txt | |||
@@ -1917,6 +1917,8 @@ platforms are moved over to use the flattened-device-tree model. | |||
1917 | inverse clock polarity (CPOL) mode | 1917 | inverse clock polarity (CPOL) mode |
1918 | - spi-cpha - (optional) Empty property indicating device requires | 1918 | - spi-cpha - (optional) Empty property indicating device requires |
1919 | shifted clock phase (CPHA) mode | 1919 | shifted clock phase (CPHA) mode |
1920 | - spi-cs-high - (optional) Empty property indicating device requires | ||
1921 | chip select active high | ||
1920 | 1922 | ||
1921 | SPI example for an MPC5200 SPI bus: | 1923 | SPI example for an MPC5200 SPI bus: |
1922 | spi@f00 { | 1924 | spi@f00 { |
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); |