]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Documentation/ArmPlatformPkg.txt
ARM Packages: Rename PcdNormal* into Pcd* PCDs
[mirror_edk2.git] / ArmPlatformPkg / Documentation / ArmPlatformPkg.txt
CommitLineData
dbf61676 1Porting UEFI to a ARM platform :\r
2--------------------------------\r
1d5d0ae9 31. Create the new platform directory under ArmPlatformPkg\r
4\r
52. Create its DSC and FDF files into this new directory. These files can be copied from ArmVExpress-CTA9x4.dsc and ArmVExpress-CTA9x4.fdf; and adapted following the requirement of your platform. \r
6\r
73. Set up the PCDs required by ArmPlatformPkg in your FDF or DSC files \r
8\r
1d5d0ae9 94. Implement 'ArmPlatformLib' for your platform following the interface defined by ArmPlatformPkg\Include\Library\ArmPlatformLib.h.\r
10\r
dbf61676 11\r
12PCDs Description :\r
13-------------------\r
14\r
15# Firmware Device / Volume\r
16gArmTokenSpaceGuid.PcdSecureFdBaseAddress : Base address of your Secure Firmware Device \r
17gArmTokenSpaceGuid.PcdSecureFdSize : Size in byte of your Secure Firmware Device.\r
f92b93c9 18gArmTokenSpaceGuid.PcdFdBaseAddress : Base Address of your Non-Secure/Normal World Firmware Device.\r
19gArmTokenSpaceGuid.PcdFdSize : Size in bytes of your Non-Secure/Normal World Firmware Device \r
dbf61676 20\r
21# Stacks\r
2dbcb8f0 22gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase : Base of Secure Stack for Secure World\r
23gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize : Size of the stack for the Primary Core in Secure World\r
24gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize : Size of the stack for the Secondary Cores in Secure World\r
25gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase : Base of Stack for Monitor World\r
26gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize : Size of the stack for each cores\r
27gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase : Base of SEC Stack for Normal World\r
28gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize : Size of the stack for the Primary Core\r
29gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize : Size of the stack for the Secondary Core\r
dbf61676 30\r
31# CPU / Architectural controllers\r
32gArmTokenSpaceGuid.PcdGicDistributorBase : Base address of the Distributor of your General Interrupt Controller\r
33gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase : Base address of the Interface of your General Interrupt Controller\r
34gArmPlatformTokenSpaceGuid.PcdMPCoreSupport : Set to 1 when MP Core platforms\r
dbf61676 35\r
36# Memory Regions\r
37gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize : Size of the region reserve for PI & UEFI\r
38gArmTokenSpaceGuid.PcdSystemMemoryBase : Base Address of the System Memory (DRAM)\r
39gArmTokenSpaceGuid.PcdSystemMemorySize : Size of the System Memory (DRAM)\r
40\r
41# Features\r
42gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec : TRUE if System Memory initialized by the SEC phase\r
43gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores : TRUE if the PrePi or PrePeiCore modules have to send an SGI to resume the excution of the secondary cores \r
44\r
45# Boot Manager\r
46gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription : Description of the Default Boot Entry\r
47gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath : DevicePath of the Default Boot Entry\r
48gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument : Argument for the Default Boot Entry\r
49gArmPlatformTokenSpaceGuid.PcdDefaultBootType : Define the binary type of the Default Boot Entry (0=EFI application, 1=Linux kernel with ATAG support, 2=Linux Kernel with FDT support) \r
50gArmPlatformTokenSpaceGuid.PcdFdtDevicePath : DevicePath of the Platform Device Tree\r
51gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut : Timeout before booting on the Device Boot entry (by default the auto boot is skipped)\r
52gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths : List of Device Path use for the Console Input\r
53gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths : List of Device Path use for the Console Output\r
54\r
55\r
56FAQ :\r
57-----\r
58# When to use PrePi or PrePeiCore ?\r
59- PrePi: when the memory has already been initialized by the first stage boot loader\r
60 Boot sequence: PlatformFirmware/PrePi/Dxe/Bds\r
61 Example: Beagle Board\r
62\r
63- PrePeiCore: when the firmware is started from XIP memory and in Secure world. The PeiCore shadows the firmware itself in System Memory (DRAM)\r
64 Boot sequence: Sec/PrePiCore/PeiCore/Dxe/Bds\r
65 Example: ARM Versatile Express\r
66\r
e5bdb129 67See:\r
68- ArmPlatformPkg/Documentation/ARM-EDK2-Overview.png\r
69- ArmPlatformPkg/Documentation/ArmPlatformLib-Full-Boot.png\r
70- ArmPlatformPkg/Documentation/ArmPlatformLib-2nd-Stage.png\r
71\r
dbf61676 72# What is the PcdStandalone\r
73gArmPlatformTokenSpaceGuid.PcdStandalone=FALSE is used on ARM Development Platforms during the development stage.\r
74To avoid to reflash the NOR Flash after each build, the SEC (in NOR Flash) intializes thd DRAM and wait until the Normal World firmware is copied into the DRAM.\r
75Copying the firmware in DRAM is much faster than reflashing the NOR Flash. It is also more convenient to debug the firmware form DRAM than NOR Flash (eg: use of software breakpoint)\r
76 \r