public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Vabhav <vabhav.sharma@nxp.com>
To: <ard.biesheuvel@linaro.org>, <leif.lindholm@linaro.org>,
	<michael.d.kinney@intel.com>, <edk2-devel@lists.01.org>
Subject: [PATCH edk2-platforms 3/3] Compilation:Modify dsc, fdf files
Date: Fri, 22 Dec 2017 00:18:29 +0530	[thread overview]
Message-ID: <1513882109-14295-4-git-send-email-vabhav.sharma@nxp.com> (raw)
In-Reply-To: <1513882109-14295-1-git-send-email-vabhav.sharma@nxp.com>

Enabling support for compilation of PciHost Bridge Library,
PciHostBridge Dxe Driver and include respective serdes functions

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Vabhav <vabhav.sharma@nxp.com>
---
 Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 31 ++++++++++++++++++++++++++++
 Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf |  6 ++++++
 Silicon/NXP/Chassis/Chassis.c                | 11 ++++++++++
 Silicon/NXP/Chassis/Chassis2/SerDes.h        | 11 ++++++++++
 Silicon/NXP/LS1043A/LS1043A.dsc              |  1 +
 5 files changed, 60 insertions(+)

diff --git a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc
index 7ea791e..21f451f 100644
--- a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc
+++ b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc
@@ -54,6 +54,11 @@
   #
   MmcLib|edk2-platforms/Platform/NXP/Library/MmcLib/MmcLib.inf
 
+  #
+  # Pci Library
+  #
+  PciHostBridgeLib|edk2-platforms/Platform/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.inf
+
 [PcdsFixedAtBuild.common]
 
   #
@@ -70,6 +75,7 @@
   gNxpQoriqLsTokenSpaceGuid.PcdWdogBigEndian|TRUE
   gNxpQoriqLsTokenSpaceGuid.PcdMmcBigEndian|TRUE
   gNxpQoriqLsTokenSpaceGuid.PcdIfcBigEndian|TRUE
+  gNxpQoriqLsTokenSpaceGuid.PcdPciLutBigEndian|TRUE
 
   #
   # NV Storage PCDs.
@@ -79,6 +85,25 @@
   gNxpQoriqLsTokenSpaceGuid.PcdFlashReservedRegionBase64|0x60300000
 
   #
+  # PCIe Pcds
+  #
+  gNxpQoriqLsTokenSpaceGuid.PcdPciExp1SysAddr|0x03400000
+  gNxpQoriqLsTokenSpaceGuid.PcdPciExp2SysAddr|0x03500000
+  gNxpQoriqLsTokenSpaceGuid.PcdPciExp3SysAddr|0x03600000
+  gNxpQoriqLsTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|FALSE
+  gNxpQoriqLsTokenSpaceGuid.PcdPciMaxPayloadFixup|FALSE
+  gNxpQoriqLsTokenSpaceGuid.PcdPciBusMin|0
+  gNxpQoriqLsTokenSpaceGuid.PcdPciBusMax|255
+  gNxpQoriqLsTokenSpaceGuid.PcdPci1Mmio64Base|0x4040000000
+  gNxpQoriqLsTokenSpaceGuid.PcdPci2Mmio64Base|0x4840000000
+  gNxpQoriqLsTokenSpaceGuid.PcdPci3Mmio64Base|0x5040000000
+  gNxpQoriqLsTokenSpaceGuid.PcdPciMmio64Size|0x0040000000
+  gNxpQoriqLsTokenSpaceGuid.PcdPciDebug|FALSE
+  gNxpQoriqLsTokenSpaceGuid.PcdPcieLutBase|0x10000
+  gNxpQoriqLsTokenSpaceGuid.PcdPcieLutDbg|0x7FC
+  gNxpQoriqLsTokenSpaceGuid.PcdPciMemOneTransaction|0x10000000
+
+  #
   # I2C controller Pcds
   #
   gNxpQoriqLsTokenSpaceGuid.PcdI2cBus|0
@@ -109,4 +134,10 @@
   EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
   edk2-platforms/Platform/NXP/Drivers/MmcHostDxe/MmcHostDxe.inf
 
+  #
+  # PCI
+  #
+  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
+  edk2-platforms/Platform/NXP/Drivers/PciHostBridgeDxe/PciHostBridgeDxe.inf
+
  ##
diff --git a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf
index 023480b..d462ae2 100644
--- a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf
+++ b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf
@@ -127,6 +127,12 @@ READ_LOCK_STATUS   = TRUE
   INF edk2-platforms/Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf
 
   #
+  # PCI
+  #
+  INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
+  INF edk2-platforms/Platform/NXP/Drivers/PciHostBridgeDxe/PciHostBridgeDxe.inf
+
+  #
   # Network modules
   #
   INF  MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
diff --git a/Silicon/NXP/Chassis/Chassis.c b/Silicon/NXP/Chassis/Chassis.c
index a6a77c2..2a7ecbc 100644
--- a/Silicon/NXP/Chassis/Chassis.c
+++ b/Silicon/NXP/Chassis/Chassis.c
@@ -411,3 +411,14 @@ CalculateI2cClockRate (
 
   return SocSysInfo.FreqSystemBus;
 }
+
+/**
+   Return PCI address space mask
+**/
+UINT64
+GetPciAddressSpaceMask (
+  IN  VOID
+  )
+{
+  return MAX_UINT32;
+}
diff --git a/Silicon/NXP/Chassis/Chassis2/SerDes.h b/Silicon/NXP/Chassis/Chassis2/SerDes.h
index 9fc60d3..fb2e728 100644
--- a/Silicon/NXP/Chassis/Chassis2/SerDes.h
+++ b/Silicon/NXP/Chassis/Chassis2/SerDes.h
@@ -66,4 +66,15 @@ SerDesProbeLanes(
   IN VOID *Arg
   );
 
+VOID
+GetSerdesProtocolMaps(
+  OUT UINT64 *SerDes1ProtocolMapPtr
+);
+
+BOOLEAN
+IsSerDesLaneProtocolConfigured(
+  IN UINT64 SerDes1ProtocolMap,
+  IN SERDES_PROTOCOL Device
+);
+
 #endif /* __SERDES_H */
diff --git a/Silicon/NXP/LS1043A/LS1043A.dsc b/Silicon/NXP/LS1043A/LS1043A.dsc
index 024c09a..22cea54 100644
--- a/Silicon/NXP/LS1043A/LS1043A.dsc
+++ b/Silicon/NXP/LS1043A/LS1043A.dsc
@@ -76,5 +76,6 @@
   gNxpQoriqLsTokenSpaceGuid.PcdI2c2BaseAddr|0x021A0000
   gNxpQoriqLsTokenSpaceGuid.PcdI2c3BaseAddr|0x021B0000
   gNxpQoriqLsTokenSpaceGuid.PcdNumI2cController|4
+  gNxpQoriqLsTokenSpaceGuid.PcdNumPciController|3
 
 ##
-- 
1.9.1



  parent reply	other threads:[~2017-12-22  6:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-21 18:48 [PATCH edk2-platforms 0/3] Platform/NXP-Added NXP PCI Host Bridge Driver Vabhav
2017-12-21 18:48 ` [PATCH edk2-platforms 1/3] Platform/NXP : Add PCI Host Bridge Libary Vabhav
2017-12-21 18:48 ` [PATCH edk2-platforms 2/3] Platform/NXP : Add PCI Host Bridge Driver Vabhav
2017-12-21 18:48 ` Vabhav [this message]
2017-12-22 15:33 ` [PATCH edk2-platforms 0/3] Platform/NXP-Added NXP " Ard Biesheuvel
2017-12-27 13:02   ` Vabhav Sharma
2017-12-27 13:05     ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513882109-14295-4-git-send-email-vabhav.sharma@nxp.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox