summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-04-19 19:13:18 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-04-24 21:25:57 +0000
commit63d8fde896aef0cd29203b0f4d35a88cff749b9b (patch)
tree390f11015982ea7c48f8c30020c6b0e86fa9120c
parent2ec63b54d8cb5193aba548bc8f78622112a656d6 (diff)
soc/amd/common/amd_pci_util.h: assign 0 to PIN_A in pcie_swizzle_pin
Explicitly assign a value of 0 to the first value of the pcie_swizzle_pin enum. This won't change the behavior, but clarifies that the actual values of the enum elements matter. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I21850e21f859f2079f804d4344a1a11856b27d90 Reviewed-on: https://review.coreboot.org/c/coreboot/+/82049 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
-rw-r--r--src/soc/amd/common/block/pci/pci_routing_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/pci/pci_routing_info.c b/src/soc/amd/common/block/pci/pci_routing_info.c
index ac7255348e..5d5f35524b 100644
--- a/src/soc/amd/common/block/pci/pci_routing_info.c
+++ b/src/soc/amd/common/block/pci/pci_routing_info.c
@@ -7,7 +7,7 @@
#include <types.h>
enum pcie_swizzle_pin {
- PIN_A,
+ PIN_A = 0,
PIN_B,
PIN_C,
PIN_D,