diff options
author | Bin Meng | 2019-09-06 18:20:11 +0200 |
---|---|---|
committer | Palmer Dabbelt | 2019-09-17 17:42:48 +0200 |
commit | 806c64b7b0e782b7f1414478486c67df718a0f00 (patch) | |
tree | 32ee474aa0909e1e9f379f781683f386852152fd /include/hw | |
parent | riscv: sifive_u: Add PRCI block to the SoC (diff) | |
download | qemu-806c64b7b0e782b7f1414478486c67df718a0f00.tar.gz qemu-806c64b7b0e782b7f1414478486c67df718a0f00.tar.xz qemu-806c64b7b0e782b7f1414478486c67df718a0f00.zip |
riscv: sifive_u: Reference PRCI clocks in UART and ethernet nodes
Now that we have added a PRCI node, update existing UART and ethernet
nodes to reference PRCI as their clock sources, to keep in sync with
the Linux kernel device tree.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/riscv/sifive_u_prci.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hw/riscv/sifive_u_prci.h b/include/hw/riscv/sifive_u_prci.h index 60a2eab0e9..0a531fdadc 100644 --- a/include/hw/riscv/sifive_u_prci.h +++ b/include/hw/riscv/sifive_u_prci.h @@ -78,4 +78,14 @@ typedef struct SiFiveUPRCIState { uint32_t clkmuxstatus; } SiFiveUPRCIState; +/* + * Clock indexes for use by Device Tree data and the PRCI driver. + * + * These values are from sifive-fu540-prci.h in the Linux kernel. + */ +#define PRCI_CLK_COREPLL 0 +#define PRCI_CLK_DDRPLL 1 +#define PRCI_CLK_GEMGXLPLL 2 +#define PRCI_CLK_TLCLK 3 + #endif /* HW_SIFIVE_U_PRCI_H */ |