From: Markus Brunner Date: Wed, 5 Mar 2008 20:38:12 +0000 (+0100) Subject: fix taihu soft spi_read X-Git-Tag: v1.3.2~14^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=772003e43957ee0c895abed7cd82cbe72820cbb8;p=u-boot fix taihu soft spi_read The taihu board used gpio_read_out_bit which reads the output register and not the pin state. Signed-off-by: Markus Brunner --- diff --git a/board/amcc/taihu/taihu.c b/board/amcc/taihu/taihu.c index ea83671988..eedde597b8 100644 --- 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)