[PATCH v2 1/2] riscv: Try to get cpu frequency from device tree
Bin Meng
bmeng.cn at gmail.com
Tue Feb 4 11:36:05 CET 2020
On Mon, Feb 3, 2020 at 1:38 AM Sean Anderson <seanga2 at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
> This patch is the combination of the patches
> https://patchwork.ozlabs.org/patch/1223933/
> https://patchwork.ozlabs.org/patch/1224957/
> "riscv: Fix incorrect cpu frequency on RV64"
> "riscv: Try to get cpu frequency from device tree"
>
> Changes for v2:
> - Renamed err to ret
> drivers/cpu/riscv_cpu.c | 18 +++++++++++++++++-
> 1 file changed, 17 insertions(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list