On Thu, Jan 17, 2019 at 12:15:09PM +0100, Marcin Wojtas wrote: > This patch implements ArmadaBoarDescLib library for > Armada80x0Db board and introduces ArmadaBoardGpioGet > routine with per-board GPIO expander description. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marcin Wojtas <m...@semihalf.com>
Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> > --- > > Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBoardDescLib.c > | 30 ++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git > a/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBoardDescLib.c > > b/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBoardDescLib.c > index feb69ad..61b6202 100644 > --- > a/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBoardDescLib.c > +++ > b/Platform/Marvell/Armada80x0Db/Armada80x0DbBoardDescLib/Armada80x0DbBoardDescLib.c > @@ -19,9 +19,39 @@ > #include <Library/DebugLib.h> > #include <Library/IoLib.h> > #include <Library/MemoryAllocationLib.h> > +#include <Library/MvGpioLib.h> > #include <Library/UefiBootServicesTableLib.h> > > // > +// GPIO Expanders > +// > +STATIC MV_GPIO_EXPANDER mGpioExpanders[] = { > + { > + PCA9555_ID, > + 0x21, > + 0x0, > + }, > + { > + PCA9555_ID, > + 0x25, > + 0x0, > + }, > +}; > + > +EFI_STATUS > +EFIAPI > +ArmadaBoardGpioExpanderGet ( > + IN OUT MV_GPIO_EXPANDER **GpioExpanders, > + IN OUT UINTN *GpioExpanderCount > + ) > +{ > + *GpioExpanderCount = ARRAY_SIZE (mGpioExpanders); > + *GpioExpanders = mGpioExpanders; > + > + return EFI_SUCCESS; > +} > + > +// > // Order of devices in SdMmcDescTemplate has to be in par with > ArmadaSoCDescLib > // > STATIC > -- > 2.7.4 > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel