]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg: Fix builds
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Jul 2011 19:51:48 +0000 (19:51 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Jul 2011 19:51:48 +0000 (19:51 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11964 6f19259b-4bc3-4df7-8a09-765794883524

14 files changed:
ArmPkg/Library/BdsLib/BdsLib.inf
ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbHelper.S
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/CTA9x4Boot.S
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/CTA9x4Helper.asm
ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.c
ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.h
ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111Lcd.c
ArmPlatformPkg/Drivers/PL35xSmc/InitializeSMC.S
ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805Watchdog.c
ArmPlatformPkg/PlatformPei/PlatformPeim.c
ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
ArmPlatformPkg/Sec/Sec.inf

index d74eeda3a16ca371e913f03c77b88c5253c8032c..b9b20060c51c17dad2f4dfc75deada1a5d036c7c 100644 (file)
@@ -37,6 +37,7 @@
   DevicePathLib
   HobLib
   PerformanceLib
+  SerialPortLib
 
 [Guids]
   gEfiFileInfoGuid
index 3bbdf6f52d974e3ed718fc860691e8bde3811d65..e48770ea43885f9d0a9a89de465227a9794e715b 100644 (file)
@@ -21,7 +21,7 @@
 .text\r
 .align 3\r
 \r
-GCC_ASM_EXPORT(ArmPlatformInitializeBootMemory)\r
+GCC_ASM_EXPORT(ArmPlatformIsMemoryInitialized)\r
 \r
 /**\r
   Called at the early stage of the Boot phase to know if the memory has already been initialized\r
index c53c11f37094452fed7f0fb6a843a9c6717f1e2a..49ee83e02792c488d4da819eb7bf5aef5e4c3ebe 100755 (executable)
@@ -30,33 +30,33 @@ GCC_ASM_IMPORT(PL35xSmcInitialize)
 VersatileExpressSmcConfiguration:\r
     // NOR Flash 0\r
     .word     PL350_SMC_DIRECT_CMD_ADDR_CS(0)\r
-    .word     PL350_SMC_SET_CYCLE_NAND_T_RC(0xA) :OR: PL350_SMC_SET_CYCLE_NAND_T_WC(0x3) :OR: PL350_SMC_SET_CYCLE_NAND_T_REA(0x1) :OR: PL350_SMC_SET_CYCLE_NAND_T_WP(0x7) :OR: PL350_SMC_SET_CYCLE_NAND_T_AR(0x1)\r
-    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 :OR: PL350_SMC_SET_OPMODE_SET_RD_BURST_LENGTH_CONT :OR: PL350_SMC_SET_OPMODE_SET_WR_BURST_LENGTH_CONT :OR: PL350_SMC_SET_OPMODE_SET_ADV\r
+    .word     PL350_SMC_SET_CYCLE_NAND_T_RC(0xA) | PL350_SMC_SET_CYCLE_NAND_T_WC(0x3) | PL350_SMC_SET_CYCLE_NAND_T_REA(0x1) | PL350_SMC_SET_CYCLE_NAND_T_WP(0x7) | PL350_SMC_SET_CYCLE_NAND_T_AR(0x1)\r
+    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 | PL350_SMC_SET_OPMODE_SET_RD_BURST_LENGTH_CONT | PL350_SMC_SET_OPMODE_SET_WR_BURST_LENGTH_CONT | PL350_SMC_SET_OPMODE_SET_ADV\r
 \r
     // NOR Flash 1\r
     .word     PL350_SMC_DIRECT_CMD_ADDR_CS(4)\r
-    .word     PL350_SMC_SET_CYCLE_NAND_T_RC(0xA) :OR: PL350_SMC_SET_CYCLE_NAND_T_WC(0x3) :OR: PL350_SMC_SET_CYCLE_NAND_T_REA(0x1) :OR: PL350_SMC_SET_CYCLE_NAND_T_WP(0x7) :OR: PL350_SMC_SET_CYCLE_NAND_T_AR(0x1)\r
-    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 :OR: PL350_SMC_SET_OPMODE_SET_RD_BURST_LENGTH_CONT :OR: PL350_SMC_SET_OPMODE_SET_WR_BURST_LENGTH_CONT :OR: PL350_SMC_SET_OPMODE_SET_ADV\r
+    .word     PL350_SMC_SET_CYCLE_NAND_T_RC(0xA) | PL350_SMC_SET_CYCLE_NAND_T_WC(0x3) | PL350_SMC_SET_CYCLE_NAND_T_REA(0x1) | PL350_SMC_SET_CYCLE_NAND_T_WP(0x7) | PL350_SMC_SET_CYCLE_NAND_T_AR(0x1)\r
+    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 | PL350_SMC_SET_OPMODE_SET_RD_BURST_LENGTH_CONT | PL350_SMC_SET_OPMODE_SET_WR_BURST_LENGTH_CONT | PL350_SMC_SET_OPMODE_SET_ADV\r
 \r
     // SRAM\r
     .word     PL350_SMC_DIRECT_CMD_ADDR_CS(2)\r
-    .word     PL350_SMC_SET_CYCLE_SRAM_T_RC(0x8) :OR: PL350_SMC_SET_CYCLE_SRAM_T_WC(0x5) :OR: PL350_SMC_SET_CYCLE_SRAM_T_CEOE(0x1) :OR: PL350_SMC_SET_CYCLE_SRAM_T_WP(0x6) :OR: PL350_SMC_SET_CYCLE_SRAM_T_PC(0x1) :OR: PL350_SMC_SET_CYCLE_SRAM_T_TR(0x1)\r
-    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 :OR: PL350_SMC_SET_OPMODE_SET_ADV\r
+    .word     PL350_SMC_SET_CYCLE_SRAM_T_RC(0x8) | PL350_SMC_SET_CYCLE_SRAM_T_WC(0x5) | PL350_SMC_SET_CYCLE_SRAM_T_CEOE(0x1) | PL350_SMC_SET_CYCLE_SRAM_T_WP(0x6) | PL350_SMC_SET_CYCLE_SRAM_T_PC(0x1) | PL350_SMC_SET_CYCLE_SRAM_T_TR(0x1)\r
+    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 | PL350_SMC_SET_OPMODE_SET_ADV\r
 \r
     // Usb/Eth/VRAM\r
     .word     PL350_SMC_DIRECT_CMD_ADDR_CS(3)\r
-    .word     PL350_SMC_SET_CYCLE_SRAM_T_RC(0xA) :OR: PL350_SMC_SET_CYCLE_SRAM_T_WC(0xA) :OR: PL350_SMC_SET_CYCLE_SRAM_T_CEOE(0x2) :OR: PL350_SMC_SET_CYCLE_SRAM_T_WP(0x2) :OR: PL350_SMC_SET_CYCLE_SRAM_T_PC(0x3) :OR: PL350_SMC_SET_CYCLE_SRAM_T_TR(0x6)\r
-    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 :OR: PL350_SMC_SET_OPMODE_SET_RD_SYNC :OR: PL350_SMC_SET_OPMODE_SET_WR_SYNC\r
+    .word     PL350_SMC_SET_CYCLE_SRAM_T_RC(0xA) | PL350_SMC_SET_CYCLE_SRAM_T_WC(0xA) | PL350_SMC_SET_CYCLE_SRAM_T_CEOE(0x2) | PL350_SMC_SET_CYCLE_SRAM_T_WP(0x2) | PL350_SMC_SET_CYCLE_SRAM_T_PC(0x3) | PL350_SMC_SET_CYCLE_SRAM_T_TR(0x6)\r
+    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 | PL350_SMC_SET_OPMODE_SET_RD_SYNC | PL350_SMC_SET_OPMODE_SET_WR_SYNC\r
 \r
     // Memory Mapped Peripherals\r
     .word     PL350_SMC_DIRECT_CMD_ADDR_CS(7)\r
-    .word     PL350_SMC_SET_CYCLE_SRAM_T_RC(0x6) :OR: PL350_SMC_SET_CYCLE_SRAM_T_WC(0x5) :OR: PL350_SMC_SET_CYCLE_SRAM_T_CEOE(0x1) :OR: PL350_SMC_SET_CYCLE_SRAM_T_WP(0x2) :OR: PL350_SMC_SET_CYCLE_SRAM_T_PC(0x1) :OR: PL350_SMC_SET_CYCLE_SRAM_T_TR(0x1)\r
-    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 :OR: PL350_SMC_SET_OPMODE_SET_RD_SYNC :OR: PL350_SMC_SET_OPMODE_SET_WR_SYNC\r
+    .word     PL350_SMC_SET_CYCLE_SRAM_T_RC(0x6) | PL350_SMC_SET_CYCLE_SRAM_T_WC(0x5) | PL350_SMC_SET_CYCLE_SRAM_T_CEOE(0x1) | PL350_SMC_SET_CYCLE_SRAM_T_WP(0x2) | PL350_SMC_SET_CYCLE_SRAM_T_PC(0x1) | PL350_SMC_SET_CYCLE_SRAM_T_TR(0x1)\r
+    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 | PL350_SMC_SET_OPMODE_SET_RD_SYNC | PL350_SMC_SET_OPMODE_SET_WR_SYNC\r
 \r
     // VRAM\r
     .word     PL350_SMC_DIRECT_CMD_ADDR_CS(1)\r
     .word     0x00049249\r
-    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 :OR: PL350_SMC_SET_OPMODE_SET_RD_SYNC :OR: PL350_SMC_SET_OPMODE_SET_WR_SYNC\r
+    .word     PL350_SMC_SET_OPMODE_MEM_WIDTH_32 | PL350_SMC_SET_OPMODE_SET_RD_SYNC | PL350_SMC_SET_OPMODE_SET_WR_SYNC\r
 VersatileExpressSmcConfigurationEnd:\r
 \r
 /**\r
index e81888c9fb7b616f1fc7b48f13e76d31fca01870..4404cd25fcfa2ad70067e26e31eb879f085e3a01 100644 (file)
@@ -20,7 +20,7 @@
 \r
   INCLUDE AsmMacroIoLib.inc\r
 \r
-  EXPORT  ArmPlatformInitializeBootMemory\r
+  EXPORT  ArmPlatformIsMemoryInitialized\r
 \r
   PRESERVE8\r
   AREA    CTA9x4Helper, CODE, READONLY\r
index b341c5e7b900cf887fcc112c9e65a62beb6fa209..3c267df4dad4294806b4a419b9f4e18747c3b070 100644 (file)
@@ -12,8 +12,6 @@
  **/
 
 #include <PiDxe.h>
-#include <Library/PcdLib.h>
-#include <Library/DebugLib.h>
 #include <Library/BaseMemoryLib.h>
 #include <Library/DevicePathLib.h>
 #include <Library/UefiBootServicesTableLib.h>
index 8c9165e7308ce192c6bcd367704ff335f8988db3..a0cf9afe2e8d7a3057262fa6299ca9775db62b98 100644 (file)
@@ -12,7 +12,6 @@
  **/
 
 #include <PiDxe.h>
-#include <Library/PcdLib.h>
 #include <Library/BaseMemoryLib.h>
 #include <Library/DevicePathLib.h>
 #include <Library/UefiBootServicesTableLib.h>
index 8886bed7cbcf2a00a5d8c19c330b947be0e501c8..1e66a428e1570bd85adb36c7d16ef96d7f7b6bfc 100644 (file)
 \r
 \r
 #include <Base.h>\r
+\r
+#include <Library/DebugLib.h>\r
+#include <Library/LcdPlatformLib.h>\r
+#include <Library/PcdLib.h>\r
 #include <Library/UefiLib.h>\r
+\r
 #include <Protocol/DevicePath.h>\r
 \r
-#include <Library/LcdPlatformLib.h>\r
 \r
 //\r
 // Device structures\r
index c92dd3d7edf799a154e41d3a3a660c503ca554f9..297e007ba71c9666c3d5e7b0eaa2542c8901fc0d 100644 (file)
 \r
 **/\r
 \r
-#include <Library/DebugLib.h>\r
 #include <Library/IoLib.h>\r
-#include <Library/LcdPlatformLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
-#include <Library/PcdLib.h>\r
 \r
 #include <Drivers/PL111Lcd.h>\r
 \r
index c7c535985efafb20728075f8ca8c4290761d3beb..7c2a09c69feb04852246f86e747bd49af922835b 100755 (executable)
@@ -48,6 +48,6 @@ ASM_PFX(PL35xSmcInitialize):
   str   r0, [r1, #PL350_SMC_DIRECT_CMD_OFFSET]\r
 \r
   add   r2, #0xC\r
-  b     ASM_PFX(PL350SmcInitialize)\r
+  b     ASM_PFX(PL35xSmcInitialize)\r
 \r
 ASM_FUNCTION_REMOVE_IF_UNREFERENCED
\ No newline at end of file
index 840f8ede1fabf1f0e8b1a98eab65a6c9bfea7a65..f8faab735de6c2fed4feecb5edeb3ae88aebd80a 100644 (file)
@@ -282,10 +282,10 @@ SP805SetTimerPeriod (
     //
     // WatchdogTicks = (TimerPeriod * SP805_CLOCK_FREQUENCY) / 20 MHz ;
 
-    Ticks64bit = DivU64x32( MultU64x32( TimerPeriod, SP805_CLOCK_FREQUENCY ), 20000000 );
+    Ticks64bit = DivU64x32(MultU64x32(TimerPeriod, (UINTN)PcdGet32(PcdSP805WatchdogClockFrequencyInHz)), 20000000);
 
     // The registers in the SP805 are only 32 bits
-    if( Ticks64bit > SP805_MAX_TICKS ) {
+    if(Ticks64bit > (UINT64)0xFFFFFFFF) {
       // We could load the watchdog with the maximum supported value but
       // if a smaller value was requested, this could have the watchdog
       // triggering before it was intended.
index 9599a7a7477e35d148a6498d2c10cca84156215c..5921e35bd8d78ea9340c80ce38828bc0e3fa88a1 100755 (executable)
@@ -33,6 +33,12 @@ InitializePlatformPeim (
   IN       EFI_PEI_FILE_HANDLE  FileHandle,\r
   IN CONST EFI_PEI_SERVICES     **PeiServices\r
   );\r
+  \r
+EFI_STATUS\r
+EFIAPI\r
+PlatformPeim (\r
+  VOID\r
+  );\r
 \r
 //\r
 // Module globals\r
index 730361b1b8ad86831149466add2c02e563e6a40e..bcde6c4b1081f8223135c0232c742779e928f2cd 100644 (file)
   ArmPlatformPkg/ArmPlatformPkg.dec\r
 \r
 [LibraryClasses]\r
-  BaseLib\r
-  DebugLib\r
-  IoLib\r
   ArmLib\r
   ArmPlatformLib\r
   ArmMPCoreMailBoxLib\r
+  BaseLib\r
+  DebugLib\r
+  IoLib\r
   PL390GicNonSecLib\r
+  PrintLib\r
   SerialPortLib\r
 \r
 [Ppis]\r
index b696190accb7eb76c42d3d4eee2fba8f7a9b7fa2..5b0886d0dd1fd0598fffdd8bb9a28b3e19b3040d 100644 (file)
   ArmPlatformPkg/ArmPlatformPkg.dec\r
 \r
 [LibraryClasses]\r
+  ArmLib\r
+  ArmPlatformLib\r
   BaseLib\r
   DebugLib\r
   IoLib\r
-  ArmLib\r
-  ArmPlatformLib\r
+  PrintLib\r
+  SerialPortLib\r
 \r
 [Ppis]\r
   gEfiTemporaryRamSupportPpiGuid\r
index ad66902f93d50e69377ea2db7dbaf324e5824a88..974c31a2fba7e2040bb38031bc5247eb711f3eae 100644 (file)
   ArmPlatformPkg/ArmPlatformPkg.dec
 
 [LibraryClasses]
+  ArmLib
+  ArmPlatformLib
   BaseLib
   DebugLib
   IoLib
-  ArmLib
-  ArmPlatformLib
   PL390GicSecLib
+  PrintLib
   SerialPortLib
   
 [FeaturePcd]