Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116952
b: refs/heads/master
c: f618ebf
h: refs/heads/master
v: v3
  • Loading branch information
Wolfgang Ocker authored and Kumar Gala committed Oct 21, 2008
1 parent 7b26d2a commit c085f92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd657efc67dbd70f422285101a50c2e84d03463d
refs/heads/master: f618ebfcbf9616a0fa9a78f5ecb69762f0fa3c59
2 changes: 2 additions & 0 deletions trunk/Documentation/powerpc/booting-without-of.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,8 @@ platforms are moved over to use the flattened-device-tree model.
inverse clock polarity (CPOL) mode
- spi-cpha - (optional) Empty property indicating device requires
shifted clock phase (CPHA) mode
- spi-cs-high - (optional) Empty property indicating device requires
chip select active high

SPI example for an MPC5200 SPI bus:
spi@f00 {
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/of/of_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void of_register_spi_devices(struct spi_master *master, struct device_node *np)
spi->mode |= SPI_CPHA;
if (of_find_property(nc, "spi-cpol", NULL))
spi->mode |= SPI_CPOL;
if (of_find_property(nc, "spi-cs-high", NULL))
spi->mode |= SPI_CS_HIGH;

/* Device speed */
prop = of_get_property(nc, "spi-max-frequency", &len);
Expand Down

0 comments on commit c085f92

Please sign in to comment.