From 7f81f56ad4ebdee9ad20bcac0dd24d7640ffd06c Mon Sep 17 00:00:00 2001 From: kettenis Date: Wed, 5 Jul 2023 09:25:55 +0000 Subject: [PATCH] They may have fixed the cache coherency problems in the JH7110, but it is still criplled as the SD/MMC controllers only do 32-bit DMA. ok jsing@ --- sys/arch/riscv64/stand/efiboot/efiboot.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/arch/riscv64/stand/efiboot/efiboot.c b/sys/arch/riscv64/stand/efiboot/efiboot.c index fc94f6fd19f..79a26319364 100644 --- a/sys/arch/riscv64/stand/efiboot/efiboot.c +++ b/sys/arch/riscv64/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.5 2022/06/06 10:50:56 kettenis Exp $ */ +/* $OpenBSD: efiboot.c,v 1.6 2023/07/05 09:25:55 kettenis Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko @@ -466,9 +466,10 @@ efi_dma_constraint(void) { void *node; - /* StarFive JH7100 has peripherals that only support 32-bit DMA. */ + /* StarFive JH71x0 has peripherals that only support 32-bit DMA. */ node = fdt_find_node("/"); - if (fdt_node_is_compatible(node, "starfive,jh7100")) + if (fdt_node_is_compatible(node, "starfive,jh7100") || + fdt_node_is_compatible(node, "starfive,jh7110")) dma_constraint[1] = htobe64(0xffffffff); /* Pass DMA constraint. */ -- 2.20.1