From 891c208835bb8cedb0007034090b7e0f0efe5460 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 27 May 2025 09:33:33 +0000 Subject: [PATCH] soc/qualcomm/x1p42100: Enable basic PCIe support This commit introduces initial support for PCI Express on the Qualcomm x1p42100 SoC. Key changes include: - Selecting `CONFIG_PCI` in Kconfig to enable general PCI subsystem support for this SoC. - Selecting `CONFIG_NO_ECAM_MMCONF_SUPPORT`, indicating that this platform will not use the standard MMCONFIG ECAM for PCI configuration space access. An alternative mechanism will be required. - Adding `../common/pcie_common.c` to the ramstage build if `CONFIG_PCI` is enabled, incorporating common PCIe helper functions. BUG=b:404985109 TEST=Able to build google/bluey. Change-Id: I53e8bb3ce8551e8fa8c4b1cd39d89e12226c32f1 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/87858 Reviewed-by: Kapil Porwal Reviewed-by: Pranava Y N Tested-by: build bot (Jenkins) --- src/soc/qualcomm/x1p42100/Kconfig | 2 ++ src/soc/qualcomm/x1p42100/Makefile.mk | 1 + 2 files changed, 3 insertions(+) diff --git a/src/soc/qualcomm/x1p42100/Kconfig b/src/soc/qualcomm/x1p42100/Kconfig index 52f270b6d9..d9d6a939af 100644 --- a/src/soc/qualcomm/x1p42100/Kconfig +++ b/src/soc/qualcomm/x1p42100/Kconfig @@ -21,6 +21,8 @@ config SOC_QUALCOMM_X1P42100 select HAVE_UART_SPECIAL select MAINBOARD_FORCE_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT + select PCI + select NO_ECAM_MMCONF_SUPPORT select SDHCI_CONTROLLER select SOC_QUALCOMM_COMMON diff --git a/src/soc/qualcomm/x1p42100/Makefile.mk b/src/soc/qualcomm/x1p42100/Makefile.mk index 0135f9bf57..f75fdd4f7f 100644 --- a/src/soc/qualcomm/x1p42100/Makefile.mk +++ b/src/soc/qualcomm/x1p42100/Makefile.mk @@ -38,6 +38,7 @@ romstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c ramstage-y += soc.c ramstage-y += cbmem.c ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c +ramstage-$(CONFIG_PCI) += ../common/pcie_common.c ramstage-y += cpucp_load_reset.c ################################################################################