Revision: 17415
          http://sourceforge.net/p/edk2/code/17415
Author:   oliviermartin
Date:     2015-05-11 17:53:20 +0000 (Mon, 11 May 2015)
Log Message:
-----------
ArmPlatformPkg/ArmJunoPkg: Only enable PCI support on Juno R1

PCI support is only present on Juno R1.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Reviewed-by: Ronald Cron <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/1
    http://sourceforge.net/p/edk2/code/1

Modified Paths:
--------------
    trunk/edk2/ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc
    trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
    trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf

Modified: trunk/edk2/ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc
===================================================================
--- trunk/edk2/ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc    2015-05-11 17:52:03 UTC 
(rev 17414)
+++ trunk/edk2/ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc    2015-05-11 17:53:20 UTC 
(rev 17415)
@@ -177,6 +177,10 @@
   #
   gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L"                                 
                                                                                
               "
 
+  # Not all Juno platforms support PCI. This dynamic PCD disables or enable
+  # PCI support.
+  gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
+
 
################################################################################
 #
 # Components Section - list of all EDK II Modules needed by this Platform

Modified: trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c        
2015-05-11 17:52:03 UTC (rev 17414)
+++ trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c        
2015-05-11 17:53:20 UTC (rev 17415)
@@ -304,6 +304,9 @@
     if (EFI_ERROR (Status)) {
       return Status;
     }
+
+    // Enable PCI enumeration
+    PcdSetBool (PcdPciDisableBusEnumeration, FALSE);
   }
 
   //

Modified: trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf
===================================================================
--- trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf      
2015-05-11 17:52:03 UTC (rev 17414)
+++ trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf      
2015-05-11 17:53:20 UTC (rev 17415)
@@ -29,6 +29,7 @@
   ArmPlatformPkg/ArmJunoPkg/ArmJuno.dec
   EmbeddedPkg/EmbeddedPkg.dec
   MdePkg/MdePkg.dec
+  MdeModulePkg/MdeModulePkg.dec
 
 [LibraryClasses]
   AcpiLib
@@ -79,6 +80,7 @@
 
 [Pcd]
   gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths
+  gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration
 
 [Depex]
   # We depend on these protocols to create the default boot entries


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to