projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc84a84
)
fix taihu soft spi_read
author
Markus Brunner
<super.firetwister@googlemail.com>
Wed, 5 Mar 2008 20:38:12 +0000
(21:38 +0100)
committer
Stefan Roese
<sr@denx.de>
Fri, 7 Mar 2008 08:15:26 +0000
(09:15 +0100)
The taihu board used gpio_read_out_bit which reads the output register and not
the pin state.
Signed-off-by: Markus Brunner <super.firetwister@gmail.com>
board/amcc/taihu/taihu.c
patch
|
blob
|
history
diff --git
a/board/amcc/taihu/taihu.c
b/board/amcc/taihu/taihu.c
index
ea83671
..
eedde59
100644
(file)
--- a/
board/amcc/taihu/taihu.c
+++ b/
board/amcc/taihu/taihu.c
@@
-162,7
+162,7
@@
void spi_sda(int bit)
unsigned char spi_read(void)
{
- return (unsigned char)gpio_read_
out
_bit(SPI_DIN_GPIO15);
+ return (unsigned char)gpio_read_
in
_bit(SPI_DIN_GPIO15);
}
void taihu_spi_chipsel(int cs)