freebsd-nq/sys/riscv/sifive
Mitchell Horne 9e483eadd4 prci: register tlclk as a fixed clock
The PRCI exports tlclk as a constant fixed divisor clock, defined as 1/2
of the coreclk frequency. In older FU540 device trees (such as the one
provided by SiFive), tlclk is represented as its own entity, and is
automatically registered as a fixed-divisor-clock. Unfortunately the
upstream FU540 device tree (that we have in our tree) represents tlclk
as an output of the PRCI block, and we must register it manually. At
worst, users of the old device tree will end up with an unreferenced
duplicate of tlclk.

This fixes device attachment for the SiFive UART on newer device trees,
since it references tlclk via the PRCI.

Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D23406
2020-02-01 17:13:52 +00:00
..
files.sifive sifive: uart driver 2019-12-31 10:54:13 +00:00
fu540_prci.c prci: register tlclk as a fixed clock 2020-02-01 17:13:52 +00:00
fu540_spi.c fuspi: Fix 'sleepable after non-sleepable' lock 2019-12-29 04:26:10 +00:00
sifive_uart.c sifive: Fix incorrect tx/rx ctrl defines 2020-01-07 09:02:14 +00:00
std.sifive