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=0uDq9yYo; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.68, mailfrom: mw@semihalf.com) 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 Received: by mail-lf1-f68.google.com with SMTP id h13so10653700lfc.7 for ; Mon, 20 May 2019 08:28:02 -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=nbsqqwOpMTZXVYgksYduBxfQAK2mCdsXL02W9B//zsc=; b=0uDq9yYo2xKupfeDvj115Pyl6zzuy+IVVWF3qqWTB1kf+QDk09z6mxtG+gBCUooOtC LiZFaHktG8ItP9ijfP4iIk3a7Qo9yc4NzwzPEpjmQmPM2CazPfNsusgoAZNJKY3Ynbfk vQ4L7yyLo71+FqgMWjsBoBCTg3T/O4AESw1KOymfeMTrJd/jqCyEVa3+NIPO3lE1kWc6 k7EEwpliHk4pVOvj0B2QH7MJ8irtCOaggwznn3dTD6rzw2l4igUJJf/c4YOP6ehjLEiJ bLuHpPnp5PBtRXDeRHcjB8XpRm+U98Koan2pe9ULxk/HBKK6LNSzmwcpbmOhn8TSL364 KBuA== 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=nbsqqwOpMTZXVYgksYduBxfQAK2mCdsXL02W9B//zsc=; b=rgMkH8n7hrRg04JNVwIEDoiEOnLcmk5n5l+HvgEttuUFRbIlN9ggNsOCNSpeXgWDW7 /u7Go/E0Y+lynLtrXZPKzJrnBUmMMlaiEdtgqZCZQlBDYl9PqsY44Itc3EQkvkfyyRfb Mvsp0UenvNIuEw028HkYLBJQJzipsUeg/a6HMe7MnwNImYx+PMiAor46go4LJTxnfha+ FN3qCQInpWfB4sOt6iWS07UATT1I6wMGYVVb4/0EtgYnUI+jXsGqfPgcfd/y00lg3cPD uW0dEL9T7za3k76ritQyJcfQ6m6GZDC5YOgl88NWQYjDmk/esa6YRs/2W+FYIUcYepCd WVbw== 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) 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 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-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> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558366047-15994-1-git-send-email-mw@semihalf.com> References: <1558366047-15994-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 | 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/Marvell/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/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 @@ -406,6 +408,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 @@ -519,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 d2bbded..d24be73 100644 --- a/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf +++ b/Silicon/Marvell/Armada7k8k/Armada7k8k.fdf @@ -168,6 +168,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