From 30b8524ff5f9973b694877c8f9df680260dadce9 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Sat, 28 Mar 2026 07:29:01 +0000 Subject: [PATCH] soc/qualcomm/calypso: Enable basic PCIe support This commit introduces initial support for PCI Express on the Qualcomm Calypso 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:496650089 TEST=Able to build google/calypso. Change-Id: I813e0811e9fd5b6ceefbf72635998a26536987c8 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/91907 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal --- src/soc/qualcomm/calypso/Kconfig | 2 ++ src/soc/qualcomm/calypso/Makefile.mk | 1 + 2 files changed, 3 insertions(+) diff --git a/src/soc/qualcomm/calypso/Kconfig b/src/soc/qualcomm/calypso/Kconfig index 0920a751d5..4a1892cdd9 100644 --- a/src/soc/qualcomm/calypso/Kconfig +++ b/src/soc/qualcomm/calypso/Kconfig @@ -21,6 +21,8 @@ config SOC_QUALCOMM_CALYPSO_BASE select HAVE_UART_SPECIAL select MAINBOARD_FORCE_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT + select NO_ECAM_MMCONF_SUPPORT + select PCI select SOC_QUALCOMM_COMMON select SOC_QUALCOMM_QCLIB_SKIP_MMU_TOGGLE diff --git a/src/soc/qualcomm/calypso/Makefile.mk b/src/soc/qualcomm/calypso/Makefile.mk index 01546a9f2f..cfe46cf734 100644 --- a/src/soc/qualcomm/calypso/Makefile.mk +++ b/src/soc/qualcomm/calypso/Makefile.mk @@ -40,6 +40,7 @@ ramstage-y += soc.c ramstage-y += cbmem.c ramstage-y += ../common/mmu.c ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c +ramstage-$(CONFIG_PCI) += ../common/pcie_common.c ramstage-y += cpucp_load_reset.c ################################################################################