From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 18 Sep 2018 17:23:58 -0400 Subject: [U-Boot] DM: GPIO: Fix da8xx GPIO indexing over GPIO 32 In-Reply-To: <20180817041334.21637-1-aford173@gmail.com> References: <20180817041334.21637-1-aford173@gmail.com> Message-ID: <20180918212358.GD4642@opus> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > 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: