mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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 <super.firetwister@gmail.com>
This commit is contained in:
parent
fc84a8495a
commit
772003e439
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue