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 C8299211B5098 for ; Mon, 14 Jan 2019 15:46:32 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id q18so906930wrx.9 for ; Mon, 14 Jan 2019 15:46:32 -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=72Mu+mVCMFCKKv66zeLc+biTflNZF1sW8d22MF9FSo4=; b=Lhvl5s4VrEpuBf25lmVtkJqdWq18hOOzq5TFAAppMt8e9ZBc3WPjVKKNgXPZyBrmDn X+MHrK1dcilUtul5tB8XkWBaj6JfnBwLMys7bMPQ2KhcIiI/athTPlNhnSoEqLajaVS1 qivGX8Xrx/rYPTz64hs7Oxgfn/ycSSpNomkY4= 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=72Mu+mVCMFCKKv66zeLc+biTflNZF1sW8d22MF9FSo4=; b=AnTA6ZkuChf2QpHxkAoUcVXAJKZ+83yn/gtzVNzM94S8/ZA5yJQINBwM6zbgto00ue TeDDJCsSvevXTLc2uDHS1djj8u+He1HZPfBmvCDtXfazJMlAWHLWPWTWpD/fyFQ/ANEy ztmL7GNcgCMr9xpdr/6FrsBDr5BDdqkOLE/p0WNVkoBaE3Tb19OZW7CuTVFJOBZKzbm9 W+NNqCa/+iRT372XDOX9SvOJLO/kf3PG5JiaNCcBjxFDnwiDF5ndSguJxF9x/Drbb0NM KCLIfwrHUwkVBg/Vtddp3siX5LNTDLdKr3fui/Vm8Atmrqt/erQNp3ZK9V0KF+RywPsI LdSQ== X-Gm-Message-State: AJcUukfm841Wkt3kHpMX0TV1tFs4LuWSgHi2y2JB4WIdT6+RSU33Pskb k8MC3lK4FJGXwr/uw5BcmqiXpA== X-Google-Smtp-Source: ALg8bN4lM/kwOJxk4HYe0PDO5A6oD2OGUd4iJF5WGRyJZe4LfWgFP+MPFYdeTybHgmd9LyL89RHwCQ== X-Received: by 2002:adf:9061:: with SMTP id h88mr656233wrh.65.1547509591398; Mon, 14 Jan 2019 15:46:31 -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 a12sm68349510wrm.45.2019.01.14.15.46.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 15:46:30 -0800 (PST) Date: Mon, 14 Jan 2019 23:46:29 +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: <20190114234629.5ccxcktdslvsuu5e@bivouac.eciton.net> References: <1547084679-29597-1-git-send-email-mw@semihalf.com> <1547084679-29597-3-git-send-email-mw@semihalf.com> MIME-Version: 1.0 In-Reply-To: <1547084679-29597-3-git-send-email-mw@semihalf.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [platforms: PATCH v2 02/12] Marvell/Library: ArmadaBoardDescLib: Add GPIO information 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: Mon, 14 Jan 2019 23:46:33 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Reviewed-by: Leif Lindholm > --- > 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 >