Support the Qualcomm Snapdragon X Elite (X1E80100) PCIe controller. We do
authorpatrick <patrick@openbsd.org>
Tue, 2 Jul 2024 19:44:37 +0000 (19:44 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 2 Jul 2024 19:44:37 +0000 (19:44 +0000)
not do anything fancy for the SC8280XP either, so treat it equally.

ok kettenis@

sys/dev/fdt/dwpcie.c

index 4cdee4c..ef4cff3 100644 (file)
@@ -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 <kettenis@openbsd.org>
  *
@@ -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"))