On Fri, May 13, 2016 at 1:50 PM, Joakim Tjernlund <joakim.tjernl...@infinera.com> wrote: > 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.
Good to know, thanks. Possibly, we have boards using MPC8308 SoCs, and they also have to be converted to DM in due time. If it comes to that, I might go the same route the kernel did and do a generic mpc8xxx driver (and port over the special cases from the kernel driver). Best regards, Mario _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot