mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
af14c84041
commit
806c64b7b0
2 changed files with 14 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue