]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg/PlatformPeiLib: honor DT node 'status' property
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 4 Apr 2017 13:20:12 +0000 (14:20 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 4 Apr 2017 14:25:19 +0000 (15:25 +0100)
commit83ae7589b08a0d11592527cf45fd1ad8d62118ab
treee527e2069c5c43bf08599e4d01374674a5ee2dd0
parentb1f3e48ed8f9ddd62222953a7b343f9833c71809
ArmVirtPkg/PlatformPeiLib: honor DT node 'status' property

In some cases, (e.g., when running QEMU with TrustZone emulation), the
DT may contain DT nodes whose status is set to 'secure'. Similarly, the
status may be set to 'disabled' if the consumer of the DT image is
expected to treat it as if it weren't there.

So check whether a 'status' property is present, and if so, ignore the
node if the status is not 'okay'.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c