From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::441; helo=mail-wr1-x441.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 45ADC2194D3AE for ; Thu, 17 Jan 2019 03:34:30 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id r10so10575387wrs.10 for ; Thu, 17 Jan 2019 03:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XnLw6IxjyVypkNexxI2veeyVmP0FwxFLLp+1d4CN3A8=; b=XL231vAb8z+IwoCjmhZmGB8Dq+34/7fnBJtN3ji+2UWGHyLnUCNL6BdqXqnimB/lCZ 9rY5BLNxvPULQ/uyKLVcu9v1y7pLI5YxKP94SoO2RDcwg0ku4CsdF34NOCMhPB4isjpx 3yMl74DIJdDuYqas+8JJvm2RGrwOn25MXUP5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XnLw6IxjyVypkNexxI2veeyVmP0FwxFLLp+1d4CN3A8=; b=WbzGZkoEK1JcnAZDU1DkWd55eLZ/L1Y9GP1U62oFZEUPa5DuSAqZtz7bPsjn/NejID 9KkedgGByaIJyppyuMpE3lDVBV3LyZv1yvPNmsST1XCPGGpCrP4cXQMcvzYutT4+nh7P WbhirCOQH2cScpnOf4GT+BeBLJO7DmmyMsUTG0xzM+MNXPkQeDi5q8xUBJrTMB9ubHVB fC/23xD4li2f8HsXCIbXOAWZJYciDpZ37j6q2Az89unWMuJRCzgDTeQ7rzJb95ePSdom P8Lky4J8BN78tTEz+WcuJvc5svfiVK822PScF7YP5bPpf3UiPZntpv285lj8sjQfVepJ VVkQ== X-Gm-Message-State: AJcUukcqsRtsDFdnyLUvyLToXCXnilMTId+5gyy+T7G8uSSm8J67KuRm uAGjwt2suI1KhBTJEljjLUoEmg== X-Google-Smtp-Source: ALg8bN7oo1ZvTQ7XkyqyYrNMSl8bPle9/GNRqEQP+70xSc4fJsmahtYNOkq8R2kPIDTMV5e1rEwY1Q== X-Received: by 2002:adf:dc4e:: with SMTP id m14mr11913420wrj.107.1547724868782; Thu, 17 Jan 2019 03:34:28 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id c13sm89417906wrb.38.2019.01.17.03.34.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 03:34:28 -0800 (PST) Date: Thu, 17 Jan 2019 11:34:26 +0000 From: Leif Lindholm To: Marcin Wojtas Cc: edk2-devel@lists.01.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com Message-ID: <20190117113426.wdz3k7qchvjllfqy@bivouac.eciton.net> References: <1547723715-4562-1-git-send-email-mw@semihalf.com> <1547723715-4562-6-git-send-email-mw@semihalf.com> MIME-Version: 1.0 In-Reply-To: <1547723715-4562-6-git-send-email-mw@semihalf.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [platforms: PATCH v3 05/12] Marvell/Armada70x0Db: Extend board description library with GPIO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2019 11:34:30 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:34:30 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:34:30 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:34:30 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 17, 2019 at 12:15:08PM +0100, Marcin Wojtas wrote: > This patch implements ArmadaBoarDescLib library for > Armada70x0Db comunity board and introduces ArmadaBoardGpioGet > routine with per-board GPIO expander description. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marcin Wojtas Reviewed-by: Leif Lindholm > --- > Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBoardDescLib.c | 24 ++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBoardDescLib.c b/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBoardDescLib.c > index 48c68e4..f0133ec 100644 > --- a/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBoardDescLib.c > +++ b/Platform/Marvell/Armada70x0Db/Armada70x0DbBoardDescLib/Armada70x0DbBoardDescLib.c > @@ -19,9 +19,33 @@ > #include > #include > #include > +#include > #include > > // > +// GPIO Expander > +// > +STATIC MV_GPIO_EXPANDER mGpioExpander = { > + PCA9555_ID, > + 0x21, > + 0x0, > +}; > + > + > +EFI_STATUS > +EFIAPI > +ArmadaBoardGpioExpanderGet ( > + IN OUT MV_GPIO_EXPANDER **GpioExpanders, > + IN OUT UINTN *GpioExpanderCount > + ) > +{ > + *GpioExpanderCount = 1; > + *GpioExpanders = &mGpioExpander; > + > + return EFI_SUCCESS; > +} > + > +// > // Order of devices in SdMmcDescTemplate has to be in par with ArmadaSoCDescLib > // > STATIC > -- > 2.7.4 >