sifive_prci: Read and write PRCI registers
authorNathaniel Graff <nathaniel.graff@sifive.com>
Tue, 24 Jul 2018 16:52:46 +0000 (09:52 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 24 Jun 2019 06:44:41 +0000 (23:44 -0700)
commitb9d1848ebe8f083482307be725cca7883fca7566
treeec3ac603c0e2dbd7445d1ce1fd2a7d095d12f9f5
parentb55d7d34f6adf7bd246ae2eabf2d66eb5e024a68
sifive_prci: Read and write PRCI registers

Writes to the SiFive PRCI registers are preserved while leaving the
ready bits set for the HFX/HFR oscillators and the lock bit set for the
PLL.

Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Reviewed-by: Michael Clark <mjc@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/sifive_prci.c
include/hw/riscv/sifive_prci.h