Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2025 11:51:52 GMT
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 95b8b67f3c4b - main - bhyve/riscv: add clock-frequency property to DTS.
Message-ID:  <202502031151.513Bpqip040387@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by br:

URL: https://cgit.FreeBSD.org/src/commit/?id=95b8b67f3c4b5cdbc48557359e6b2e1ef423ed26

commit 95b8b67f3c4b5cdbc48557359e6b2e1ef423ed26
Author:     Ruslan Bukin <br@FreeBSD.org>
AuthorDate: 2025-02-03 11:39:21 +0000
Commit:     Ruslan Bukin <br@FreeBSD.org>
CommitDate: 2025-02-03 11:39:21 +0000

    bhyve/riscv: add clock-frequency property to DTS.
    
    Add clock-frequency property to the UART adapter node in DTS.
    
    Differential Revision:  https://reviews.freebsd.org/D48699
---
 usr.sbin/bhyve/riscv/fdt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.sbin/bhyve/riscv/fdt.c b/usr.sbin/bhyve/riscv/fdt.c
index 81296714e013..fa66b761f08c 100644
--- a/usr.sbin/bhyve/riscv/fdt.c
+++ b/usr.sbin/bhyve/riscv/fdt.c
@@ -222,6 +222,7 @@ fdt_add_uart(uint64_t uart_base, uint64_t uart_size, int intr)
 	fdt_begin_node(fdt, node_name);
 	fdt_property_string(fdt, "compatible", "ns16550");
 	set_single_reg(fdt, uart_base, uart_size);
+	fdt_property_u32(fdt, "clock-frequency", 3686400);
 	fdt_property_u32(fdt, "interrupt-parent", aplic_phandle);
 	fdt_property_placeholder(fdt, "interrupts", 2 * sizeof(uint32_t),
 	    &interrupts);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502031151.513Bpqip040387>