tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.41k stars 2.4k forks source link

Drop pcd arm arch timer freq in hz #5797

Closed leiflindholm closed 3 weeks ago

leiflindholm commented 1 month ago

PcdArmArchTimerFreqInHz lets platforms override the architectural timer frequency, but this really isn't supported in hardware by anything lower than EL3. And we no longer support running edk2 at EL3. Setting it to 0 skips the override - but that is also the default.

So rework ArmArchTimerLib not to use it anymore (never set it, and retrieve it from the system registers using ArmGenericTimerGetTimerFreq () when needed), update ArmVirtPkg platforms not to ecpliticly set it, then drop it completely.

Note: merging this series will break a bunch of targets in edk2-platforms.