u-boot bug reading gpio
Go to top
Forums » Software Development »
Added by Chris Ward almost 8 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