http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a86bc
)
Ensure clock line is in the idle state before asserting chip select.
author
Michael Brown
<mcb30@etherboot.org>
Sat, 28 Jul 2007 15:05:41 +0000
(16:05 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Sat, 28 Jul 2007 15:05:41 +0000
(16:05 +0100)
src/drivers/bitbash/spi_bit.c
patch
|
blob
|
history
diff --git
a/src/drivers/bitbash/spi_bit.c
b/src/drivers/bitbash/spi_bit.c
index
e2175d6
..
a4e7136
100644
(file)
--- a/
src/drivers/bitbash/spi_bit.c
+++ b/
src/drivers/bitbash/spi_bit.c
@@
-153,6
+153,10
@@
static int spi_bit_rw ( struct spi_bus *bus, struct spi_device *device,
= container_of ( bus, struct spi_bit_basher, bus );
uint32_t tmp;
+ /* Set clock line to idle state */
+ write_bit ( &spibit->basher, SPI_BIT_SCLK,
+ ( bus->mode & SPI_MODE_CPOL ) );
+
/* Assert chip select on specified slave */
spi_bit_set_slave_select ( spibit, device->slave, SELECT_SLAVE );