Project

General

Profile

u-boot bug reading gpio

Added by Chris Ward over 7 years ago

I found a problem reading the HPS gpio in uboot.
E.g

MitySOM-5CSx # gpio input 41
gpio: pin 41 (bank/mask = 1/0x00001000)
gpio: pin 41 (bank/mask = 1/0x00001000)
gpio: pin 41 (gpio 41) value is 0

The value returned is always zero.

I tracked down the problem to the soc_gpio driver. The cause is that it is using the wrong register to read the state of an input.

The attached patch fixes it.

Chris Ward


Go to top
Add picture from clipboard (Maximum size: 1 GB)