On Thu, Jan 10, 2019 at 02:44:29AM +0100, Marcin Wojtas wrote: > This patch extends library with GPIO devices per-board > description. Both embedded SoC controllers and > I2C IO expanders are supported. Add a helper routine > for obtaining information about the latter. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marcin Wojtas <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]> > --- > Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h | 23 > ++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h > b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h > index 3fe2988..6ec5ace 100644 > --- a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h > +++ b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h > @@ -25,6 +25,29 @@ typedef struct { > } MV_BOARD_COMPHY_DESC; > > // > +// GPIO devices per-board description > +// > +typedef struct { > + UINTN ChipId; > + UINTN I2cAddress; > + UINTN I2cBus; > +} MV_GPIO_EXPANDER; > + > +typedef struct { > + GPIO_CONTROLLER *SoCGpio; > + UINTN GpioDeviceCount; > + MV_GPIO_EXPANDER *GpioExpanders; > + UINTN GpioExpanderCount; > +} MV_BOARD_GPIO_DESCRIPTION; > + > +EFI_STATUS > +EFIAPI > +ArmadaBoardGpioExpanderGet ( > + IN OUT MV_GPIO_EXPANDER **GpioExpanders, > + IN OUT UINTN *GpioExpanderCount > + ); > + > +// > // I2C devices per-board description > // > typedef struct { > -- > 2.7.4 > _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

