[U-Boot] DM: GPIO: Fix da8xx GPIO indexing over GPIO 32

Tom Rini trini at konsulko.com
Tue Sep 18 21:23:58 UTC 2018


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180918/1fd9fe04/attachment.sig>


More information about the U-Boot mailing list