coreboot/src
Subrata Banik 64dd9d000e soc/intel/meteorlake: Skip duplicate PCIe RP CLKSRC programming
When an enabled root port without pcie_rp clock being specified, the
empty structure provides invalid info, which indicates '0' is the
clock source and request. If a root port does not use clock source, it
should still need to provide pcie_rp clock structure with flags set to
PCIE_RP_CLK_SRC_UNUSED. If flags, clk_src, and clk_req are all '0', it
is considered that pcie_rp clock structure is not provided for that
root port.

Add check and skip PCIe CLKSRC programming without a clock structure.
In addition, a root port can not use a free running clock or clock set
to LAN.

Note that ClockUsage is either free running clock, LAN clock, or the
root port number which consumes the clock.

This patch is backported from
commit edf71a08b4 (soc/intel/alderlake:
Skip PCIe source clock assignment if incorrect)

Change-Id: Ie9179880a57796d8595874325203280590d7ee9d
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70415
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-12-10 07:59:57 +00:00
..
acpi acpi/acpi.c: Add a method to generate IOAPIC DMAR entries from hw 2022-12-06 17:44:20 +00:00
arch arch/x86/ioapic.c: Move macros to compilation unit 2022-12-07 23:01:51 +00:00
commonlib mem_chip_info: Update to new format 2022-12-09 00:48:57 +00:00
console console/post.c: Sort includes 2022-10-27 15:46:39 +00:00
cpu mb,sb,soc/intel: Drop useless IO trap handlers 2022-12-07 11:23:15 +00:00
device treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
drivers treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
ec mb/intel/mtlrvp: Add MTL-P RVP board ids 2022-12-09 23:57:03 +00:00
include treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
lib lib/ramtest.c: Use {read,write}32p() 2022-12-10 00:01:05 +00:00
mainboard mb/google/rex: Implement S0ix hooks aka MS0X method 2022-12-10 07:57:32 +00:00
northbridge treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
sbom
security treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
soc soc/intel/meteorlake: Skip duplicate PCIe RP CLKSRC programming 2022-12-10 07:59:57 +00:00
southbridge treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
superio superio/ite/it8772f/chip.h: Use 'bool' when appropriate 2022-12-05 14:28:02 +00:00
vendorcode vc/intel/fsp: Update ADL N FSP headers from v3343.04 to v3343.05 2022-12-09 20:45:46 +00:00
Kconfig build: List all Kconfigs in CBFS config file, compress it 2022-11-18 17:19:44 +00:00