From: kettenis Date: Tue, 27 Dec 2022 21:13:25 +0000 (+0000) Subject: Newer device trees for boards based on the JH7100 SoC use a SoC-specific X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a3051b0765ef7e23e858ba5a4d944cb86a56081e;p=openbsd Newer device trees for boards based on the JH7100 SoC use a SoC-specific compatible string. Still preliminary since JH7100 support hasn't made it into mainline Linux yet. ok patrick@ --- diff --git a/sys/arch/riscv64/dev/sfcc.c b/sys/arch/riscv64/dev/sfcc.c index 79af0e4d981..15f01967261 100644 --- a/sys/arch/riscv64/dev/sfcc.c +++ b/sys/arch/riscv64/dev/sfcc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sfcc.c,v 1.3 2022/01/17 14:17:48 visa Exp $ */ +/* $OpenBSD: sfcc.c,v 1.4 2022/12/27 21:13:25 kettenis Exp $ */ /* * Copyright (c) 2021 Mark Kettenis * @@ -57,7 +57,8 @@ sfcc_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "sifive,fu540-c000-ccache"); + return (OF_is_compatible(faa->fa_node, "sifive,fu540-c000-ccache") || + OF_is_compatible(faa->fa_node, "starfive,jh7100-ccache")); } void