From c53ff863a7f186fa8f4e287684cc1f2ad0a642c9 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 2 Jul 2024 19:44:37 +0000 Subject: [PATCH] Support the Qualcomm Snapdragon X Elite (X1E80100) PCIe controller. We do not do anything fancy for the SC8280XP either, so treat it equally. ok kettenis@ --- sys/dev/fdt/dwpcie.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index 4cdee4cdd2a..ef4cff366af 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.53 2024/03/29 12:45:13 kettenis Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.54 2024/07/02 19:44:37 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -314,6 +314,7 @@ dwpcie_match(struct device *parent, void *match, void *aux) OF_is_compatible(faa->fa_node, "fsl,imx8mq-pcie") || OF_is_compatible(faa->fa_node, "marvell,armada8k-pcie") || OF_is_compatible(faa->fa_node, "qcom,pcie-sc8280xp") || + OF_is_compatible(faa->fa_node, "qcom,pcie-x1e80100") || OF_is_compatible(faa->fa_node, "rockchip,rk3568-pcie") || OF_is_compatible(faa->fa_node, "rockchip,rk3588-pcie") || OF_is_compatible(faa->fa_node, "sifive,fu740-pcie")); @@ -533,7 +534,8 @@ dwpcie_attach_deferred(struct device *self) if (OF_is_compatible(sc->sc_node, "fsl,imx8mm-pcie") || OF_is_compatible(sc->sc_node, "fsl,imx8mq-pcie")) error = dwpcie_imx8mq_init(sc); - if (OF_is_compatible(sc->sc_node, "qcom,pcie-sc8280xp")) + if (OF_is_compatible(sc->sc_node, "qcom,pcie-sc8280xp") || + OF_is_compatible(sc->sc_node, "qcom,pcie-x1e80100")) error = dwpcie_sc8280xp_init(sc); if (OF_is_compatible(sc->sc_node, "rockchip,rk3568-pcie") || OF_is_compatible(sc->sc_node, "rockchip,rk3588-pcie")) -- 2.20.1