]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTables: Fix DT PCI interrupt flags parsing
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 27 Apr 2022 14:49:31 +0000 (16:49 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 18 Jul 2022 12:44:09 +0000 (12:44 +0000)
commitfc4a132c0e9d108d30115cb8729f8fcd5564b855
tree5c4ee578483ca2868893d76cb59dfa3363e679bb
parent039bdb4d3e96f9c9264abf135b8a0eef2e2b4860
DynamicTables: Fix DT PCI interrupt flags parsing

Device Tree PCI interrupt flags use the convention described at
linux/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml

The 3rd cell is the flags, encoded as follows:
  bits[3:0] trigger type and level flags.
  1 = low-to-high edge triggered
  2 = high-to-low edge triggered (invalid for SPIs)
  4 = active high level-sensitive
  8 = active low level-sensitive (invalid for SPIs).

Fix the incorrect code.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerator.c
DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtUtility.h