riscv: Enable cpu clock if it is present
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:22 +0000 (06:41 -0400)
committerAndes <uboot@andestech.com>
Wed, 1 Jul 2020 07:01:22 +0000 (15:01 +0800)
commit627718626b05f715da555cc005426ab10f44bb98
treedfd68984d33bff8338080a6fc7e81ce0fef75b6e
parentab24017a19b482d9026d21a2ec03416c5c4a388d
riscv: Enable cpu clock if it is present

The cpu clock is probably already enabled if we are executing code (though
we could be executing from a different core). This patch prevents the cpu
clock or its parents from being disabled.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/cpu/riscv_cpu.c