From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=l0NnesQT; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.194, mailfrom: mw@semihalf.com) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by groups.io with SMTP; Fri, 24 May 2019 08:59:41 -0700 Received: by mail-lj1-f194.google.com with SMTP id h19so717958ljj.4 for ; Fri, 24 May 2019 08:59:40 -0700 (PDT) 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=B53po6847+xGdOo8jEZ29rGEfvC6LMZxbVc2CPbsVdw=; b=l0NnesQTRfUEtgRw+Vwm0eEqEvnM1C5ToPPNJU2yPkzi7zoVpmby60JUwDx0uLpPdP xuXjWE/h6+W1XR2Z43AKGYfkcTbak+JsUKqocpK18Q26m5SdMqbJyR+dcP/MZYMmP+F+ xhcXl+tYRFvtzW/JZ0MmagtwGLinHTM/Ec9X2n7hNl4FIyMDSTmO72RdwRQqz38OwLtK DVWQ2OyRHBfJRjZ/Tt0qU49OoDKffq0e9fYWyQeL0Hz70UmSdoVNYX3WAP8mwip7UAH/ ldxuRlb7ksQjZOF1ApaVMujqt1J8dOVmAcYIwzH3UL2ckXIrpK6FS8yephJTyuqasUSR 9GVA== 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=B53po6847+xGdOo8jEZ29rGEfvC6LMZxbVc2CPbsVdw=; b=JZoBz91DcH9ewe6mgehMqM36HFRfL5JEdpovwRIMDti3OSoEiAMvtdo58EslwW8eSB KVQMqEWnkgK+fEsops8NysNMBMEGYGRf87mNDdXkzOh8oMcyggLDkQfV1y6QuozuttCh Z/UoRFJo2+XDUmwqvIwr0i1/5lbSM/1YQxH4W5PyewxwPiSAt66bMBV4LFSDpUlUxgmm fomHf9gYoXAd5fqE5y27tUxjXm0zCet4MAIGdfgoPNlTJzuSI0MGbKnN5YzlHDYKiI5G IDwLhCLMFH/fKa0nchu+3K7lpEhLtt6fYbxNo1m2D6jVLqGzfunF41cIBSN5f6bzpqG+ Gr7A== X-Gm-Message-State: APjAAAX1UREsc3QaW2MqudUtUVmNBGpg98iJSyC8q1Zd5j5BgsQYGC3a Th1Sugr/gs24aveFLViLv/xFcMiUQhhm8A== X-Google-Smtp-Source: APXvYqyaaHUDfnY36fUh/i2+Ebz6a/iAKdaOEi7Nc2T2enUs3lYueJKthTPIzahpn2N30FOSfKZnsA== X-Received: by 2002:a2e:7411:: with SMTP id p17mr5658081ljc.24.1558713578631; Fri, 24 May 2019 08:59:38 -0700 (PDT) Return-Path: Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id d18sm685280lfl.95.2019.05.24.08.59.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 May 2019 08:59:37 -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-platforms: PATCH v3 08/14] Marvell/Armada7k8k: Enable PCIE support Date: Fri, 24 May 2019 17:59:05 +0200 Message-Id: <1558713551-25363-9-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558713551-25363-1-git-send-email-mw@semihalf.com> References: <1558713551-25363-1-git-send-email-mw@semihalf.com> 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 | 14 ++++++++++++++ Silicon/Marvell/Armada7k8k/Armada7k8k.fdf | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc b/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc index cfbc172..3ee765a 100644 --- a/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc +++ b/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc @@ -72,6 +72,8 @@ CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf + PciHostBridgeLib|Silicon/Marvell/Armada7k8k/Library/Armada7k8kPciHostBridgeLib/PciHostBridgeLib.inf + PciSegmentLib|Silicon/Marvell/Armada7k8k/Library/Armada7k8kPciSegmentLib/PciSegmentLib.inf # Basic UEFI services libraries UefiLib|MdePkg/Library/UefiLib/UefiLib.inf @@ -400,6 +402,13 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000 + # PCIE + gArmTokenSpaceGuid.PcdPciIoTranslation|0xEFF00000 + gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000 + + # SoC Configuration Space + gMarvellTokenSpaceGuid.PcdConfigSpaceBaseAddress|0xE0000000 + !if $(CAPSULE_ENABLE) [PcdsDynamicExDefault.common.DEFAULT] gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor|{0x0}|VOID*|0x100 @@ -503,6 +512,11 @@ MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf Silicon/Marvell/Drivers/SdMmc/XenonDxe/XenonDxe.inf + # 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/Armada7k8k/Armada7k8k.fdf index 6face86..47e3bc4 100644 --- a/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf +++ b/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf @@ -158,6 +158,11 @@ FvNameGuid = 5eda4200-2c5f-43cb-9da3-0baf74b1b30c INF MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf INF Silicon/Marvell/Drivers/SdMmc/XenonDxe/XenonDxe.inf + # 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 -- 2.7.4