From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4864:20::22f; helo=mail-lj1-x22f.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (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 607B7211B6C22 for ; Thu, 17 Jan 2019 03:15:41 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id u89-v6so8259509lje.1 for ; Thu, 17 Jan 2019 03:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oGT1UTdkMh932lf9XMMguQqu3sQ/M2Xm0Qs7gbdtnyc=; b=f6Vhi0H/UHXaOI2Noqr1B1Zjp0Rbvsuc6Vo69M9WMEdlmXWS0kvVBlfSmv4VSCmUIY hatbjCnA01pmT7QwYVWF7FtF8cVpJRT7EK6nfB0OQXJ9dF3UUm+EEZUazwpPaAesgh9m 7Qwt2OYQgPXw5/zjwp6Qu8JyCI5dDTn1mhih8EZPZgiX3YUqopxwAIKoBx+o9s/yvnTJ sETpvvtI3Hg7B1Ni8g29AOVn5ZFjGlsJAyRk4vTWd54jxBM2MqfmXnExyUwQ+TXvVie3 h1r06Vl21Lh+PnyPtgGLWmJYh1ql7T4eLEYVwh+qsy8vzg7vAqyM0SPHAfGSEgmOADUp 5Daw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oGT1UTdkMh932lf9XMMguQqu3sQ/M2Xm0Qs7gbdtnyc=; b=CHLQsaGlHgUH82eq6ZHDFWycR47vVUsOn6Uush0jXJq2uSnAJnBjl0k4MBxvq7w189 IoIP3IT9gW61/Z+lhTTC0k4JYEmFBL/yxMfhmzxLxfts87NxsluiYn9PMdbYRxn3Ufgf P+DJkw9wQmapvCAlgA2ddBokG1EjoiCU0iF90VFpjMDd33NEl32HTpgP614sWKScxst8 WeAqkNk26+lh4lC72GRDcoe8DhsdaM4gPKdy6auvlWB5fc3nSXSndM4UkX2esKIGyKv/ oD2xvWvufFdlhT56gUdDYhmfnunljtyKQN1gBiIhUnnz4EAwnlPJsFUx//2IVu1XqFkj Atsw== X-Gm-Message-State: AJcUukcHHab11/BP9PeQCkgPLsBe6sBfdOVRaZIMZzr7dHDlgWo9up+Q YYMptmgR6R/IqyrDFrHZw8omvEMeUmM= X-Google-Smtp-Source: ALg8bN7qqHFeARUdd/4sa0bnXXy8I+lLQgH0+L+EyDHVb8puRQufoSun6oiC0BVCH51mG52z2iSBPg== X-Received: by 2002:a2e:4299:: with SMTP id h25-v6mr9195815ljf.5.1547723739143; Thu, 17 Jan 2019 03:15:39 -0800 (PST) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id d23sm238003lfc.11.2019.01.17.03.15.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Jan 2019 03:15:38 -0800 (PST) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com Date: Thu, 17 Jan 2019 12:15:07 +0100 Message-Id: <1547723715-4562-5-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547723715-4562-1-git-send-email-mw@semihalf.com> References: <1547723715-4562-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v3 04/12] SolidRun/Armada80x0McBin: 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:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 X-List-Received-Date: Thu, 17 Jan 2019 11:15:41 -0000 This patch implements ArmadaBoarDescLib library for Armada80x0McBin 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/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.inf | 1 + Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.inf b/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.inf index 63a4f66..43e4b9e 100644 --- a/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.inf +++ b/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.inf @@ -25,6 +25,7 @@ Armada80x0McBinBoardDescLib.c [Packages] + EmbeddedPkg/EmbeddedPkg.dec MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec Silicon/Marvell/Marvell.dec diff --git a/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.c b/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.c index d52adfc..32596ad 100644 --- a/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.c +++ b/Platform/SolidRun/Armada80x0McBin/Armada80x0McBinBoardDescLib/Armada80x0McBinBoardDescLib.c @@ -22,6 +22,23 @@ #include // +// GPIO Expander +// +EFI_STATUS +EFIAPI +ArmadaBoardGpioExpanderGet ( + IN OUT MV_GPIO_EXPANDER **GpioExpanders, + IN OUT UINTN *GpioExpanderCount + ) +{ + /* No GPIO expanders on board */ + *GpioExpanders = NULL; + *GpioExpanderCount = 0; + + return EFI_SUCCESS; +} + +// // Order of devices in SdMmcDescTemplate has to be in par with ArmadaSoCDescLib // STATIC -- 2.7.4