commit | 47244099e886e502a71dac7c217d76e76d61ec3e | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Wed Jun 24 06:41:21 2020 -0400 |
committer | Andes <uboot@andestech.com> | Wed Jul 01 15:01:22 2020 +0800 |
tree | 184985446d435f4d6a54275dc635b87d25d55106 | |
parent | 35e14fb4968690bde2ab50a6f78e7839b08a6d7b [diff] |
riscv: Try to get cpu frequency from a "clocks" node if it exists Instead of always using the "clock-frequency" property to determine cpu frequency, try using a clock in "clocks" if it exists. This patch also fixes a bug where there could be spurious higher frequencies if sizeof(u32) != sizeof(ulong). Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>