From nobody Mon Feb 9 19:06:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+41075+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41075+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1558366084; cv=none; d=zoho.com; s=zohoarc; b=bqVDbVBJiEM1cGO6EaahfAujtjd1qNUXG1vBviaIOnXtoEgRkU/3oophmmDNGEh4b94x2ZbyWaheybkjpa2Vw1Qb+a3+PrBHMt9w7dEyaCZIOBojocYIhV+u84XVUGA+sgnt+uQyi5E6tqx84VpifPH90LYV/NvpaTEeajgeN6o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558366084; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=dO68kQEmtcfiVaiib2I/5hcvbUtR6KxwMpM3nr3Fz1k=; b=J2VS61s54mItuXNB3xCm6iesNwiYVZXwSJhc2tPoy5YyeSh1f6hDR/qnHJFhKj4pN5YzS9GS0BohUg4XcYb0XfHNKxUu1YFbVd2ssRfOTK2Kz6uHQUss37bExOSYazRq0kYunLnN6W3a/S7gn+NSmJgz2ZrxjKodDmrlp8gUBg8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41075+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1558366084575956.1461687558348; Mon, 20 May 2019 08:28:04 -0700 (PDT) Return-Path: X-Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by groups.io with SMTP; Mon, 20 May 2019 08:28:03 -0700 X-Received: by mail-lf1-f68.google.com with SMTP id h13so10653700lfc.7 for ; Mon, 20 May 2019 08:28:02 -0700 (PDT) X-Gm-Message-State: APjAAAVG+6ogUoa62IDodcRn8fCKjqwxEMTlk73YV+bqOvOXUWYQ2VOm etGfDsNFVzjVmkkhef7yjD0huSIyR6M= X-Google-Smtp-Source: APXvYqwevIAMD8zyYc2azepml1LIjZQ8AivcfNza4JEsU8pUfsSU4cv55YTOwoxDlu8wspIs3qFGxA== X-Received: by 2002:a19:27cc:: with SMTP id n195mr10962232lfn.172.1558366080913; Mon, 20 May 2019 08:28:00 -0700 (PDT) X-Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id d5sm3906205lji.85.2019.05.20.08.27.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 May 2019 08:28:00 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, Jici.Gao@arm.com, rebecca@bluestop.org, kettenis@jive.eu Subject: [edk2-devel] [edk2-platforms: PATCH v2 08/14] Marvell/Armada7k8k: Enable PCIE support Date: Mon, 20 May 2019 17:27:21 +0200 Message-Id: <1558366047-15994-9-git-send-email-mw@semihalf.com> In-Reply-To: <1558366047-15994-1-git-send-email-mw@semihalf.com> References: <1558366047-15994-1-git-send-email-mw@semihalf.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mw@semihalf.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1558366084; bh=a1Wf7NLgkFx1nL/ijxSqHfiiy8/i+E6MgUqLn90Avko=; h=Cc:Date:From:Reply-To:Subject:To; b=b/UP6UfL1+41rxMl8QNRNPSDL0ReTJ4G/SWzVW0Y6fHE+iIimE3ZesBA2gRcp1rxuFW 3/igDTYvKzejqeK8RbdqN3JQBxMbSenJfN6Wk78Bh4BbBOe8bM+wgisIdDymdKsEixEXn ec8jLFEuPD13NbTgKRMim52hqUMM4MhwmhU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Wire up the platform libraries to the generic drivers so that we can use PCI devices and UEFI, and leave the controller initialized so that the OS can boot it using a generic driver of its own. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc | 18 ++++++++++++++++-- Silicon/Marvell/Armada7k8k/Armada7k8k.fdf | 5 +++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc b/Silicon/Marvel= l/Armada7k8k/Armada7k8k.dsc.inc index 0cf5d84..757c6b2 100644 --- a/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc +++ b/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc @@ -70,8 +70,10 @@ IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompres= sLib.inf CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf - PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf - PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf + PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf + PciHostBridgeLib|Silicon/Marvell/Armada7k8k/Library/Armada7k8kPciHostBri= dgeLib/PciHostBridgeLib.inf + PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.i= nf + PciExpressLib|Silicon/Marvell/Armada7k8k/Library/Armada7k8kPciExpressLib= /PciExpressLib.inf =20 # Basic UEFI services libraries UefiLib|MdePkg/Library/UefiLib/UefiLib.inf @@ -406,6 +408,13 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000 =20 + # PCIE + gArmTokenSpaceGuid.PcdPciIoTranslation|0xEFF00000 + gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000 + + # SoC Configuration Space + gMarvellTokenSpaceGuid.PcdConfigSpaceBaseAddress|0xE0000000 + !if $(CAPSULE_ENABLE) [PcdsDynamicExDefault.common.DEFAULT] gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor= |{0x0}|VOID*|0x100 @@ -519,6 +528,11 @@ MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf Silicon/Marvell/Drivers/SdMmc/XenonDxe/XenonDxe.inf =20 + # PCI + ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf + MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf + MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + # Console packages MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf diff --git a/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf b/Silicon/Marvell/Ar= mada7k8k/Armada7k8k.fdf index d2bbded..d24be73 100644 --- a/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf +++ b/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf @@ -168,6 +168,11 @@ FvNameGuid =3D 5eda4200-2c5f-43cb-9da3-0baf74b= 1b30c INF MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf INF Silicon/Marvell/Drivers/SdMmc/XenonDxe/XenonDxe.inf =20 + # PCI + INF ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf + INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf + INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + # Multiple Console IO support INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#41075): https://edk2.groups.io/g/devel/message/41075 Mute This Topic: https://groups.io/mt/31686574/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-