+[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]Is that valid to have all those PCD types in a single section?
+ ## Support rate limiting
+ gUsbNetworkPkgTokenSpaceGuid.EnableRateLimiting|FALSE|BOOLEAN|0x00010001
+
+ ## The rate limiting Credit value is check in rate limiter event.
+ # It is to control the RateLimitingCreditCount max value.
+ gUsbNetworkPkgTokenSpaceGuid.RateLimitingCredit|10|UINT32|0x00010002
+
I found this style in MdeModulePkg, and thanks to this Platform code may specify this PCD as the type they want to use
But I have no idea whether that is valid or not.
oop it reminds me of my issue.
Recently you add ArmPlatformPkg/PrePeiCore: Print the firmware version early in boot ยท tianocore/edk2@56035d1 (github.com)
this causes a problem when using gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString as a dynamic PCD (PrePei doesn't support pcdlib);
e.g., we need to add information to PcdFirmwareVersionString (that can come from arm-tf or optionRom ...).
Thanks,
Tinh