
18 Sep
2018
18 Sep
'18
11:23 p.m.
On Thu, Aug 16, 2018 at 11:13:34PM -0500, Adam Ford wrote:
The GPIO banks are broken up into two 16-bit registers for each bank set. Unfortunately, the math that determines how to shift blindly shifted by the number of the gpio. This worked for gpio numbers under 32, but higher gpio's are broken. This fixes the gpio index, so the bank is passed and the shift amount within the register is passed now instead of the gpio number.
Fixes: 8e51c0f25406("dm: gpio: Add DM compatibility to GPIO driver for Davinci")
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index 1a1d37ae2a..3e95f039f0 100644
Applied to u-boot/master, thanks!
--
Tom