From: Joakim Tjernlund Date: Fri, 13 May 2016 11:50:21 +0000 Subject: [U-Boot] [PATCH v3 0/3] dm: gpio: Add driver for MPC85xx GPIO controller In-Reply-To: <1463138110-18565-1-git-send-email-mario.six@gdsys.cc> References: <1463138110-18565-1-git-send-email-mario.six@gdsys.cc> Message-ID: <1463140265.15932.30.camel@infinera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2016-05-13 at 13:15 +0200, Mario Six wrote: > The functions for accessing GPIOs on MPC85xx are hardcoded in > arch/powerpc/include/asm/mpc85xx_gpio.h This leads to problems if another GPIO > controller supporting the driver model is to be used simultaneously. > > Therefore, this patch moves the "static" functions into a DM-compatible driver, > and also introduces a set of functions into the GPIO uclass that expose the > controller's capability to switch individual GPIOs into open-drain-mode. > > v3 also implements shadowing of the GPDAT register to work around a known issue > in some MPC85xx GPIO controllers (as pointed out by Joakim Tjernlund). >? Nice, thanks. Do you have any plans to do mpc83xx also? It needs the same gpdat shadow. ? Jocke