soc: bflb: fix bl60x using wrong mtime freq
use new timebase-frequency to fix the timebase of this SoC Signed-off-by: Camille BAUD <mail@massdriver.space>
This commit is contained in:
parent
d03b7ffdbb
commit
eb06f11a8f
2 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
cpus {
|
cpus {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
timebase-frequency = <DT_FREQ_M(1)>;
|
||||||
|
|
||||||
cpu0: cpu@0 {
|
cpu0: cpu@0 {
|
||||||
device_type = "cpu";
|
device_type = "cpu";
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
if SOC_FAMILY_BFLB
|
if SOC_FAMILY_BFLB
|
||||||
|
|
||||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)
|
default $(dt_node_int_prop_int,/cpus,timebase-frequency)
|
||||||
|
|
||||||
rsource "*/Kconfig.defconfig"
|
rsource "*/Kconfig.defconfig"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue