Give the Qualcomm Snapdragon X Elite (X1E80100) the same treatment as its
authorpatrick <patrick@openbsd.org>
Tue, 2 Jul 2024 19:41:52 +0000 (19:41 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 2 Jul 2024 19:41:52 +0000 (19:41 +0000)
predecessors and don't touch the SMMUv2.

ok kettenis@

sys/arch/arm64/dev/smmu_fdt.c

index cb6b542..2c645da 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: smmu_fdt.c,v 1.6 2022/11/06 12:14:52 patrick Exp $ */
+/* $OpenBSD: smmu_fdt.c,v 1.7 2024/07/02 19:41:52 patrick Exp $ */
 /*
  * Copyright (c) 2021 Patrick Wildt <patrick@blueri.se>
  *
@@ -83,7 +83,8 @@ smmu_fdt_attach(struct device *parent, struct device *self, void *aux)
                sc->sc_is_mmu500 = 1;
        if (OF_is_compatible(faa->fa_node, "marvell,ap806-smmu-500"))
                sc->sc_is_ap806 = 1;
-       if (OF_is_compatible(faa->fa_node, "qcom,sc8280xp-smmu-500"))
+       if (OF_is_compatible(faa->fa_node, "qcom,sc8280xp-smmu-500") ||
+           OF_is_compatible(faa->fa_node, "qcom,x1e80100-smmu-500"))
                sc->sc_is_qcom = 1;
        if (OF_getproplen(faa->fa_node, "dma-coherent") == 0)
                sc->sc_coherent = 1;