From: kn Date: Thu, 30 Mar 2023 20:03:32 +0000 (+0000) Subject: Attach Baikal-M PCIe X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=094225fee0a8d835492184122b46bd96adfcb85a;p=openbsd Attach Baikal-M PCIe https://github.com/Elpitech/baikal-m-linux-kernel/search?q=bm1000-pcie Tested on ET-101-MB Initial diff from Slava Voronzoff Feedback OK kettenis patrick --- diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index f17523c8459..90f2c4d4c94 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.41 2023/03/16 18:33:19 kettenis Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.42 2023/03/30 20:03:32 kn Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -291,7 +291,8 @@ dwpcie_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return (OF_is_compatible(faa->fa_node, "amlogic,g12a-pcie") || + return (OF_is_compatible(faa->fa_node, "baikal,bm1000-pcie") || + OF_is_compatible(faa->fa_node, "amlogic,g12a-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, "marvell,armada8k-pcie") || @@ -697,7 +698,8 @@ dwpcie_attach_deferred(struct device *self) pba.pba_pc = &sc->sc_pc; pba.pba_domain = pci_ndomains++; pba.pba_bus = sc->sc_bus; - if (OF_is_compatible(sc->sc_node, "marvell,armada8k-pcie") || + if (OF_is_compatible(sc->sc_node, "baikal,bm1000-pcie") || + OF_is_compatible(sc->sc_node, "marvell,armada8k-pcie") || OF_is_compatible(sc->sc_node, "rockchip,rk3568-pcie") || sc->sc_msi_addr) pba.pba_flags |= PCI_FLAGS_MSI_ENABLED;