fix taihu soft spi_read
authorMarkus Brunner <super.firetwister@googlemail.com>
Wed, 5 Mar 2008 20:38:12 +0000 (21:38 +0100)
committerStefan 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

index ea83671988a3efd8250a9979015cb8be2810133e..eedde597b81cc1e7024b7f67314a7d39afa0ce66 100644 (file)
@@ -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)