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=cR/lTZ3b; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.66, mailfrom: mw@semihalf.com) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by groups.io with SMTP; Thu, 09 May 2019 02:54:08 -0700 Received: by mail-lf1-f66.google.com with SMTP id n134so1076060lfn.11 for ; Thu, 09 May 2019 02:54:07 -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=woZ4vd+dBwcSdAdReCizF021wK1P9nRzW+jx7Zarpm8=; b=cR/lTZ3bRo80bImrWNXiKT6eTbxgSzWMTnUi/pRuVJ1P+oJww7glMqtWmVce6Cn/3h aqd+j4K46lzVRPl/Upps/PEmHxoaRiq9Ssuz/fqC11STv6u1b/7ejdw3R/M+GWvDl2ce bMJX51n+tBycABOrNg0EuloJ+LdU0SyMjy8Ni0BsQXNTupEK5+Jddik5unPvzc76XbWX bgreaPh8Yfh3uKQXpdgXDsDeExrK7SVKfh3xe/NmiKV+0VUD3IHXnm3whcpTgYOfuws9 954QTMdntA9Tkns+jW4El+1do9rNHCV0v38pMS0bLrCDs+aU6PiXExZ52i0K+XOpBroQ /gow== 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=woZ4vd+dBwcSdAdReCizF021wK1P9nRzW+jx7Zarpm8=; b=iYTSSMH9WAY+AgXTTgU0GNKzHogWbeCEtC7LfV1KVfwmK160g4h6hzvbl+qwfxBve+ mgN6sn7VyVlAs2IAX4adRVzJ+tu8xtkElVkjcjOBw6U6Q2C3x/tv6LqwIIgeI5jla1SK zthE0NuElm1O4izyDLUTC0sscecDhndjjaLOm3JRpBn1wxM8YVHlpvsN5TUIUKNjoEtb oHBImR8D1XARp6y3rvXX3WULULUGqTLMvZIJl8Qp+tnSanK7SRuA72+vZVT9wPR5YDO8 ysO146w1DS6b0IoyCx1fYa9sRz1zbThKux0HyCq4EedFKI/wybQwQv/Q9M9nRp8d/gFw QV8A== X-Gm-Message-State: APjAAAUC8vPYtg4nhRPg4zhfiaS/TbzMNfa7ljjglwoa2rmfK0ds2WtS wedLJDaro0UsxPzwMBRvSpzM33fwXeU= X-Google-Smtp-Source: APXvYqwQelIUANxzXYrRvAKlodT/wXcUUE9vDHFc/7NQAPiJQX0nK7lpB45xeUuPptTgwX9Jal82NQ== X-Received: by 2002:a19:7d42:: with SMTP id y63mr1908629lfc.92.1557395645723; Thu, 09 May 2019 02:54:05 -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 l25sm276668lfk.57.2019.05.09.02.54.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 May 2019 02:54:05 -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 08/14] Marvell/Armada7k8k: Enable PCIE support Date: Thu, 9 May 2019 11:53:36 +0200 Message-Id: <1557395622-32425-9-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557395622-32425-1-git-send-email-mw@semihalf.com> References: <1557395622-32425-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 | 17 +++++++++++++++-- Silicon/Marvell/Armada7k8k/Armada7k8k.fdf | 5 +++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc b/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc index 545b369..f78a76b 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/BaseUefiDecompressLib.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/Armada7k8kPciHostBridgeLib/PciHostBridgeLib.inf + PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf + PciExpressLib|Silicon/Marvell/Armada7k8k/Library/Armada7k8kPciExpressLib/PciExpressLib.inf # Basic UEFI services libraries UefiLib|MdePkg/Library/UefiLib/UefiLib.inf @@ -407,6 +409,12 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000 + # PCIE + gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000 + + # SoC Configuration Space + gMarvellTokenSpaceGuid.PcdConfigSpaceBaseAddress|0xE0000000 + !if $(CAPSULE_ENABLE) [PcdsDynamicExDefault.common.DEFAULT] gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor|{0x0}|VOID*|0x100 @@ -520,6 +528,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 3a320ba..e22f514 100644 --- a/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf +++ b/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf @@ -174,6 +174,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