mirror of
https://github.com/openbsd/src.git
synced 2026-04-25 22:56:14 +00:00
Sadly the SpacemiT K1 has peripherals than can only do 32-bit DMA.
ok jca@, mlarkin@, deraadt@
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: conf.c,v 1.4 2024/06/17 09:12:45 kettenis Exp $ */
|
||||
/* $OpenBSD: conf.c,v 1.5 2026/04/06 19:12:36 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Michael Shalayeff
|
||||
@@ -46,7 +46,7 @@
|
||||
#include "efipxe.h"
|
||||
#include "softraid_riscv64.h"
|
||||
|
||||
const char version[] = "1.7";
|
||||
const char version[] = "1.8";
|
||||
int debug = 0;
|
||||
|
||||
struct fs_ops file_system[] = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: efiboot.c,v 1.12 2025/10/17 16:53:41 deraadt Exp $ */
|
||||
/* $OpenBSD: efiboot.c,v 1.13 2026/04/06 19:12:36 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
|
||||
@@ -483,9 +483,13 @@ efi_dma_constraint(void)
|
||||
{
|
||||
void *node;
|
||||
|
||||
/* StarFive JH71x0 has peripherals that only support 32-bit DMA. */
|
||||
/*
|
||||
* SpacemiT K1 and StarFive JH71x0 have 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, "spacemit,k1") ||
|
||||
fdt_node_is_compatible(node, "starfive,jh7100") ||
|
||||
fdt_node_is_compatible(node, "starfive,jh7110"))
|
||||
dma_constraint[1] = htobe64(0xffffffff);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user