Hello, I'm never send any patches, but I got arm64 board that is not
supported and plan to more or less add some support of it to openbsd
(because I like OpenBSD and want to run it here)

This is very simple patch that adds support of Pci-e on this board by
"matching" some OF_is_compatible to dwpcie.c file. Hope somebody can look
at it and add to cvs.

Diff incoming



Index: sys/dev/fdt/dwpcie.c
===================================================================
RCS file: /cvs/src/sys/dev/fdt/dwpcie.c,v
retrieving revision 1.36
diff -u -p -u -r1.36 dwpcie.c
--- sys/dev/fdt/dwpcie.c        24 Oct 2021 17:52:26 -0000      1.36
+++ sys/dev/fdt/dwpcie.c        27 May 2022 12:13:40 -0000
@@ -253,7 +253,10 @@ dwpcie_match(struct device *parent, void
            OF_is_compatible(faa->fa_node, "marvell,armada8k-pcie") ||
            OF_is_compatible(faa->fa_node, "fsl,imx8mm-pcie") ||
            OF_is_compatible(faa->fa_node, "fsl,imx8mq-pcie") ||
-           OF_is_compatible(faa->fa_node, "sifive,fu740-pcie"));
+           OF_is_compatible(faa->fa_node, "sifive,fu740-pcie") ||
+            OF_is_compatible(faa->fa_node, "baikal,bm1000-pcie") ||
+            OF_is_compatible(faa->fa_node, "baikal,pcie-m") ||
+            OF_is_compatible(faa->fa_node, "snps,dw-pcie"));
 }

 void   dwpcie_attach_deferred(struct device *);

Reply via email to