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::444; helo=mail-wr1-x444.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 E5CD22194D3AE for ; Thu, 17 Jan 2019 03:34:47 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id x10so10581185wrs.8 for ; Thu, 17 Jan 2019 03:34:47 -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=gzjmhqyHhFu9XEDcPuANCmOpuF0cm22gxtqhqo93Rdc=; b=c/PV1yxhDmAIg571Sabc0vz/qyXDGuBOxxwtSLi19QJPDVt6w3ZnZvEgiC0uyZ3ptl OlCWPUCh2RCKpQ1VpaUPkmvXWKoO+e2zX+2WGlyYM5ZI5ZmzDvlQ5Ms79TqFJ6p9G5tn VoTP6+HBeZfisyecV5OIFWi4EBcPooT1eAQFM= 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=gzjmhqyHhFu9XEDcPuANCmOpuF0cm22gxtqhqo93Rdc=; b=mzqSx6OPLh0BtDiKW+R/ohRacBoYa4cIEV0dK3c87RPIMCYWuGplLfEOCL1Pt0Frxd LWmXDM+SmurfijfYAGhU8EsahIqTVnAfBSI/awnPv6DvVpLct55rTVpxvQ/nyBDFrcvK IbS/n2aUT03xhMgjJkSm6uWiymMDNG/Io/ZVbaUX6mb7dV+y+VUQ5w81ygcxetx4epGU 648o8UD8JaK4wkaRj+/3ZJsOTZd+S3T+GfGCz0sZO63R09f9a+ybHOYHx4uscKTfOCh4 wWhsL9dPCbNldE4EUo7aIikZEQ+SSHv+53gUHvh1p3/oW8XPYbAHyASTBdQJu47Uhk/S sKgw== X-Gm-Message-State: AJcUukcj5zg7IuVnZOktNTp0bxI2fATrpWCL1CpvHI7U5WLek+hg+GYJ zjcVtrEEN/CugtpB0ZdccRywzg== X-Google-Smtp-Source: ALg8bN6qXx2ihLqusMstZAJJP6e58rzawxn1ThaDnfXulVSbU0WH1XD1zNgUw3Q3jUlUKj0/nQKMcg== X-Received: by 2002:adf:f5d1:: with SMTP id k17mr12435481wrp.59.1547724886361; Thu, 17 Jan 2019 03:34:46 -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 o5sm17365321wrw.46.2019.01.17.03.34.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 03:34:45 -0800 (PST) Date: Thu, 17 Jan 2019 11:34:44 +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: <20190117113444.dldn4mbz4xwdcmea@bivouac.eciton.net> References: <1547723715-4562-1-git-send-email-mw@semihalf.com> <1547723715-4562-7-git-send-email-mw@semihalf.com> MIME-Version: 1.0 In-Reply-To: <1547723715-4562-7-git-send-email-mw@semihalf.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [platforms: PATCH v3 06/12] Marvell/Armada80x0Db: 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:48 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:34:48 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:34:48 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:34:48 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Reviewed-by: Leif Lindholm > --- > 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 > #include > #include > +#include > #include > > // > +// 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 >