Skip to content

Commit 5194114

Browse files
Merge pull request sifive#621 from sifive/dev/zongl/unmatched_timebase
[ESAT-425] FESDK-public: Change timebase-frequency for Unmatched to 1.2GHz
2 parents b231152 + f428f4e commit 5194114

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

bsp/sifive-hifive-unmatched/core.dts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
L72: cpus {
1313
#address-cells = <1>;
1414
#size-cells = <0>;
15-
timebase-frequency = <1000000>;
15+
timebase-frequency = <1196000000>;
1616
L12: cpu@0 {
1717
clock-frequency = <0>;
1818
compatible = "sifive,bullet0", "riscv";
@@ -29,7 +29,6 @@
2929
sifive,buserror = <&L11>;
3030
sifive,dtim = <&L10>;
3131
status = "okay";
32-
timebase-frequency = <1000000>;
3332
L8: interrupt-controller {
3433
#interrupt-cells = <1>;
3534
compatible = "riscv,cpu-intc";
@@ -59,7 +58,6 @@
5958
riscv,pmpregions = <8>;
6059
sifive,buserror = <&L15>;
6160
status = "okay";
62-
timebase-frequency = <1000000>;
6361
tlb-split;
6462
L13: interrupt-controller {
6563
#interrupt-cells = <1>;
@@ -90,7 +88,6 @@
9088
riscv,pmpregions = <8>;
9189
sifive,buserror = <&L19>;
9290
status = "okay";
93-
timebase-frequency = <1000000>;
9491
tlb-split;
9592
L17: interrupt-controller {
9693
#interrupt-cells = <1>;
@@ -121,7 +118,6 @@
121118
riscv,pmpregions = <8>;
122119
sifive,buserror = <&L23>;
123120
status = "okay";
124-
timebase-frequency = <1000000>;
125121
tlb-split;
126122
L21: interrupt-controller {
127123
#interrupt-cells = <1>;
@@ -152,7 +148,6 @@
152148
riscv,pmpregions = <8>;
153149
sifive,buserror = <&L27>;
154150
status = "okay";
155-
timebase-frequency = <1000000>;
156151
tlb-split;
157152
L25: interrupt-controller {
158153
#interrupt-cells = <1>;

bsp/sifive-hifive-unmatched/metal.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,19 +384,19 @@ static __inline__ int __metal_driver_cpu_hartid(struct metal_cpu *cpu)
384384
static __inline__ int __metal_driver_cpu_timebase(struct metal_cpu *cpu)
385385
{
386386
if ((uintptr_t)cpu == (uintptr_t)&__metal_dt_cpu_0) {
387-
return 1000000;
387+
return 1196000000;
388388
}
389389
else if ((uintptr_t)cpu == (uintptr_t)&__metal_dt_cpu_1) {
390-
return 1000000;
390+
return 1196000000;
391391
}
392392
else if ((uintptr_t)cpu == (uintptr_t)&__metal_dt_cpu_2) {
393-
return 1000000;
393+
return 1196000000;
394394
}
395395
else if ((uintptr_t)cpu == (uintptr_t)&__metal_dt_cpu_3) {
396-
return 1000000;
396+
return 1196000000;
397397
}
398398
else if ((uintptr_t)cpu == (uintptr_t)&__metal_dt_cpu_4) {
399-
return 1000000;
399+
return 1196000000;
400400
}
401401
else {
402402
return 0;

bsp/sifive-hifive-unmatched/settings.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ RISCV_SERIES = sifive-7-series
88

99
TARGET_TAGS = board openocd
1010
TARGET_DHRY_ITERS = 20000000
11-
TARGET_CORE_ITERS = 5000
11+
TARGET_CORE_ITERS = 110000
1212
TARGET_FREERTOS_WAIT_MS = 1000
1313
TARGET_INTR_WAIT_CYCLE = 0

0 commit comments

Comments
 (0)