From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Brunner Date: Wed, 5 Mar 2008 21:38:12 +0100 Subject: [U-Boot-Users] [PATCH] fix taihu soft spi_read Message-ID: <200803052138.12861.super.firetwister@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The taihu board used gpio_read_out_bit which reads the output register and not the pin state. Signed-off-by: Markus Brunner --- The function gpio_read_out_bit didn't exist in u-boot <= 1.3.1 so every usage of gpio_read_out_bit deserves a closer look. diff --git a/board/amcc/taihu/taihu.c b/board/amcc/taihu/taihu.c index ea83671..eedde59 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)