From: patrick Date: Sun, 6 Nov 2022 12:01:52 +0000 (+0000) Subject: While the Qualcomm GENI isn't just a simplebus(4), as one can e.g. select X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1ffa54ff1a857919c6ca1493f2113ce898a997ca;p=openbsd While the Qualcomm GENI isn't just a simplebus(4), as one can e.g. select between DMA or FIFO mode for the i2c/serial devices, we can treat it as one for now. ok kettenis@ --- diff --git a/sys/arch/arm64/dev/simplebus.c b/sys/arch/arm64/dev/simplebus.c index a796ec5a7c2..e28a6a2a205 100644 --- a/sys/arch/arm64/dev/simplebus.c +++ b/sys/arch/arm64/dev/simplebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplebus.c,v 1.15 2021/12/06 19:38:39 kettenis Exp $ */ +/* $OpenBSD: simplebus.c,v 1.16 2022/11/06 12:01:52 patrick Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -60,6 +60,10 @@ simplebus_match(struct device *parent, void *cfdata, void *aux) if (fa->fa_node == 0) return (0); + /* Qualcomm GENI can mostly be treated as simple-bus. */ + if (OF_is_compatible(fa->fa_node, "qcom,geni-se-qup")) + return (1); + if (!OF_is_compatible(fa->fa_node, "simple-bus")) return (0);