soc/intel/alderlake: Add soc_get_cpu_rp_vw_idx() function
commit40c9c8aa8021348e0fd6916b0e06f21398fb42c9
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Wed, 8 Dec 2021 17:43:08 +0000 (8 10:43 -0700)
committerTim Wawrzynczak <twawrzynczak@chromium.org>
Thu, 6 Jan 2022 16:49:00 +0000 (6 16:49 +0000)
treed7dce3f047ddfac6e2d707949ac9239654fed8b4
parent8d0e77bbd4145e138ff43951c8543cea2c3dfd50
soc/intel/alderlake: Add soc_get_cpu_rp_vw_idx() function

The PMC IPC method used to enable/disable PCIe srcclks uses the
LCAP PN field to distinguish PCH RPs. For CPU RPs, the PMC IPC
command expects the RP number to be its "virtual wire index"
instead. This new function returns this virtual wire index
for each of the CPU PCIe RPs.

BUG=b:197983574

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I5e9710f0d210396f9306b948d9dce8b847300147
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60180
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
src/soc/intel/alderlake/pcie_rp.c