From 0fe5ca97956cc15effd0c459a81c8caacbc80ac3 Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Mon, 18 Mar 2019 12:58:11 -0700 Subject: Update Arty clock to reflects HW --- bsp/coreip-e20-arty/design.dts | 2 +- bsp/coreip-e20-arty/metal.h | 2 +- bsp/coreip-e20-rtl/metal.h | 6 +++--- bsp/coreip-e21-arty/design.dts | 2 +- bsp/coreip-e21-arty/metal.h | 2 +- bsp/coreip-e21-rtl/metal.h | 6 +++--- bsp/coreip-e24-arty/design.dts | 2 +- bsp/coreip-e24-arty/metal.h | 2 +- bsp/coreip-e24-rtl/metal.h | 6 +++--- bsp/coreip-e31-arty/design.dts | 2 +- bsp/coreip-e31-arty/metal.h | 2 +- bsp/coreip-e31-rtl/metal.h | 6 +++--- bsp/coreip-e34-arty/design.dts | 2 +- bsp/coreip-e34-arty/metal.h | 2 +- bsp/coreip-e34-rtl/metal.h | 6 +++--- bsp/coreip-e76-arty/design.dts | 2 +- bsp/coreip-e76-arty/metal.h | 2 +- bsp/coreip-e76-rtl/metal.h | 6 +++--- bsp/coreip-s51-arty/design.dts | 2 +- bsp/coreip-s51-arty/metal.h | 2 +- bsp/coreip-s51-rtl/metal.h | 6 +++--- bsp/coreip-s54-arty/design.dts | 2 +- bsp/coreip-s54-arty/metal.h | 2 +- bsp/coreip-s54-rtl/metal.h | 6 +++--- bsp/coreip-s76-arty/design.dts | 2 +- bsp/coreip-s76-arty/metal.h | 2 +- bsp/coreip-s76-rtl/metal.h | 6 +++--- 27 files changed, 45 insertions(+), 45 deletions(-) (limited to 'bsp') diff --git a/bsp/coreip-e20-arty/design.dts b/bsp/coreip-e20-arty/design.dts index b71170c..de47256 100644 --- a/bsp/coreip-e20-arty/design.dts +++ b/bsp/coreip-e20-arty/design.dts @@ -22,7 +22,7 @@ reg = <0x0>; riscv,isa = "rv32imc"; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <32000000>; hardware-exec-breakpoint-count = <4>; L2: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-e20-arty/metal.h b/bsp/coreip-e20-arty/metal.h index 27baf68..93154a8 100644 --- a/bsp/coreip-e20-arty/metal.h +++ b/bsp/coreip-e20-arty/metal.h @@ -150,7 +150,7 @@ struct __metal_driver_fixed_clock __metal_dt_clock_0 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 32000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-e20-rtl/metal.h b/bsp/coreip-e20-rtl/metal.h index f2441c6..4e03f92 100644 --- a/bsp/coreip-e20-rtl/metal.h +++ b/bsp/coreip-e20-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_E20__METAL_H -#define COREIP_E20__METAL_H +#ifndef COREIP_E20_RTL__METAL_H +#define COREIP_E20_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -205,5 +205,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_E20__METAL_H*/ +#endif /* COREIP_E20_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-e21-arty/design.dts b/bsp/coreip-e21-arty/design.dts index 32ef5e8..6ac4e18 100644 --- a/bsp/coreip-e21-arty/design.dts +++ b/bsp/coreip-e21-arty/design.dts @@ -22,7 +22,7 @@ reg = <0x0>; riscv,isa = "rv32imac"; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <32000000>; hardware-exec-breakpoint-count = <4>; L3: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-e21-arty/metal.h b/bsp/coreip-e21-arty/metal.h index 5a9459b..f469e41 100644 --- a/bsp/coreip-e21-arty/metal.h +++ b/bsp/coreip-e21-arty/metal.h @@ -150,7 +150,7 @@ struct __metal_driver_fixed_clock __metal_dt_clock_0 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 32000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-e21-rtl/metal.h b/bsp/coreip-e21-rtl/metal.h index b901bfb..8f1799b 100644 --- a/bsp/coreip-e21-rtl/metal.h +++ b/bsp/coreip-e21-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_E21__METAL_H -#define COREIP_E21__METAL_H +#ifndef COREIP_E21_RTL__METAL_H +#define COREIP_E21_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -311,5 +311,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_E21__METAL_H*/ +#endif /* COREIP_E21_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-e24-arty/design.dts b/bsp/coreip-e24-arty/design.dts index b636a82..9d08297 100644 --- a/bsp/coreip-e24-arty/design.dts +++ b/bsp/coreip-e24-arty/design.dts @@ -22,7 +22,7 @@ reg = <0x0>; riscv,isa = "rv32imafc"; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <32000000>; hardware-exec-breakpoint-count = <4>; L3: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-e24-arty/metal.h b/bsp/coreip-e24-arty/metal.h index 129eeee..c9ccb86 100644 --- a/bsp/coreip-e24-arty/metal.h +++ b/bsp/coreip-e24-arty/metal.h @@ -150,7 +150,7 @@ struct __metal_driver_fixed_clock __metal_dt_clock_0 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 32000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-e24-rtl/metal.h b/bsp/coreip-e24-rtl/metal.h index 23ed8d2..40f92c8 100644 --- a/bsp/coreip-e24-rtl/metal.h +++ b/bsp/coreip-e24-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_E24__METAL_H -#define COREIP_E24__METAL_H +#ifndef COREIP_E24_RTL__METAL_H +#define COREIP_E24_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -311,5 +311,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_E24__METAL_H*/ +#endif /* COREIP_E24_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-e31-arty/design.dts b/bsp/coreip-e31-arty/design.dts index 2500df0..e9dda78 100644 --- a/bsp/coreip-e31-arty/design.dts +++ b/bsp/coreip-e31-arty/design.dts @@ -28,7 +28,7 @@ sifive,dtim = <&L6>; sifive,itim = <&L5>; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <65000000>; hardware-exec-breakpoint-count = <4>; L4: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-e31-arty/metal.h b/bsp/coreip-e31-arty/metal.h index 9b087b9..41bcf11 100644 --- a/bsp/coreip-e31-arty/metal.h +++ b/bsp/coreip-e31-arty/metal.h @@ -169,7 +169,7 @@ struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 65000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-e31-rtl/metal.h b/bsp/coreip-e31-rtl/metal.h index d6b0a52..7133c5e 100644 --- a/bsp/coreip-e31-rtl/metal.h +++ b/bsp/coreip-e31-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_E31__METAL_H -#define COREIP_E31__METAL_H +#ifndef COREIP_E31_RTL__METAL_H +#define COREIP_E31_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -367,5 +367,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_E31__METAL_H*/ +#endif /* COREIP_E31_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-e34-arty/design.dts b/bsp/coreip-e34-arty/design.dts index 55f3d23..d0e640b 100644 --- a/bsp/coreip-e34-arty/design.dts +++ b/bsp/coreip-e34-arty/design.dts @@ -28,7 +28,7 @@ sifive,dtim = <&L6>; sifive,itim = <&L5>; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <65000000>; hardware-exec-breakpoint-count = <4>; L4: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-e34-arty/metal.h b/bsp/coreip-e34-arty/metal.h index 6de1b7c..abf1c4d 100644 --- a/bsp/coreip-e34-arty/metal.h +++ b/bsp/coreip-e34-arty/metal.h @@ -169,7 +169,7 @@ struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 65000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-e34-rtl/metal.h b/bsp/coreip-e34-rtl/metal.h index 197e59d..091b759 100644 --- a/bsp/coreip-e34-rtl/metal.h +++ b/bsp/coreip-e34-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_E34__METAL_H -#define COREIP_E34__METAL_H +#ifndef COREIP_E34_RTL__METAL_H +#define COREIP_E34_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -367,5 +367,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_E34__METAL_H*/ +#endif /* COREIP_E34_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-e76-arty/design.dts b/bsp/coreip-e76-arty/design.dts index bf72b33..55edc8b 100644 --- a/bsp/coreip-e76-arty/design.dts +++ b/bsp/coreip-e76-arty/design.dts @@ -29,7 +29,7 @@ reg = <0x0>; riscv,isa = "rv32imafc"; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <65000000>; hardware-exec-breakpoint-count = <4>; L4: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-e76-arty/metal.h b/bsp/coreip-e76-arty/metal.h index b35bce6..2c052e0 100644 --- a/bsp/coreip-e76-arty/metal.h +++ b/bsp/coreip-e76-arty/metal.h @@ -165,7 +165,7 @@ struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 65000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-e76-rtl/metal.h b/bsp/coreip-e76-rtl/metal.h index 99ffef7..6002785 100644 --- a/bsp/coreip-e76-rtl/metal.h +++ b/bsp/coreip-e76-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_E76__METAL_H -#define COREIP_E76__METAL_H +#ifndef COREIP_E76_RTL__METAL_H +#define COREIP_E76_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -318,5 +318,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_E76__METAL_H*/ +#endif /* COREIP_E76_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-s51-arty/design.dts b/bsp/coreip-s51-arty/design.dts index 137e7d8..7d8e0d2 100644 --- a/bsp/coreip-s51-arty/design.dts +++ b/bsp/coreip-s51-arty/design.dts @@ -28,7 +28,7 @@ sifive,dtim = <&L6>; sifive,itim = <&L5>; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <65000000>; hardware-exec-breakpoint-count = <4>; L4: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-s51-arty/metal.h b/bsp/coreip-s51-arty/metal.h index 304f5b0..ca81d85 100644 --- a/bsp/coreip-s51-arty/metal.h +++ b/bsp/coreip-s51-arty/metal.h @@ -169,7 +169,7 @@ struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 65000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-s51-rtl/metal.h b/bsp/coreip-s51-rtl/metal.h index fb8ae89..6618a7c 100644 --- a/bsp/coreip-s51-rtl/metal.h +++ b/bsp/coreip-s51-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_S51__METAL_H -#define COREIP_S51__METAL_H +#ifndef COREIP_S51_RTL__METAL_H +#define COREIP_S51_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -367,5 +367,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_S51__METAL_H*/ +#endif /* COREIP_S51_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-s54-arty/design.dts b/bsp/coreip-s54-arty/design.dts index 7738c2a..ae42f18 100644 --- a/bsp/coreip-s54-arty/design.dts +++ b/bsp/coreip-s54-arty/design.dts @@ -28,7 +28,7 @@ sifive,dtim = <&L6>; sifive,itim = <&L5>; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <65000000>; hardware-exec-breakpoint-count = <4>; L4: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-s54-arty/metal.h b/bsp/coreip-s54-arty/metal.h index 98b535b..a757691 100644 --- a/bsp/coreip-s54-arty/metal.h +++ b/bsp/coreip-s54-arty/metal.h @@ -169,7 +169,7 @@ struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 65000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-s54-rtl/metal.h b/bsp/coreip-s54-rtl/metal.h index ece862b..e094a58 100644 --- a/bsp/coreip-s54-rtl/metal.h +++ b/bsp/coreip-s54-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_S54__METAL_H -#define COREIP_S54__METAL_H +#ifndef COREIP_S54_RTL__METAL_H +#define COREIP_S54_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -367,5 +367,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_S54__METAL_H*/ +#endif /* COREIP_S54_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ diff --git a/bsp/coreip-s76-arty/design.dts b/bsp/coreip-s76-arty/design.dts index f43d9c5..736d909 100644 --- a/bsp/coreip-s76-arty/design.dts +++ b/bsp/coreip-s76-arty/design.dts @@ -29,7 +29,7 @@ reg = <0x0>; riscv,isa = "rv64imafdc"; status = "okay"; - timebase-frequency = <1000000>; + timebase-frequency = <65000000>; hardware-exec-breakpoint-count = <4>; L4: interrupt-controller { #interrupt-cells = <1>; diff --git a/bsp/coreip-s76-arty/metal.h b/bsp/coreip-s76-arty/metal.h index eacfb1e..feb1b39 100644 --- a/bsp/coreip-s76-arty/metal.h +++ b/bsp/coreip-s76-arty/metal.h @@ -165,7 +165,7 @@ struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000 = { struct __metal_driver_cpu __metal_dt_cpu_0 = { .vtable = &__metal_driver_vtable_cpu, .cpu.vtable = &__metal_driver_vtable_cpu.cpu_vtable, - .timebase = 1000000UL, + .timebase = 65000000UL, .interrupt_controller = &__metal_dt_interrupt_controller.controller, }; diff --git a/bsp/coreip-s76-rtl/metal.h b/bsp/coreip-s76-rtl/metal.h index 9a0623e..8295322 100644 --- a/bsp/coreip-s76-rtl/metal.h +++ b/bsp/coreip-s76-rtl/metal.h @@ -1,7 +1,7 @@ #ifndef ASSEMBLY -#ifndef COREIP_S76__METAL_H -#define COREIP_S76__METAL_H +#ifndef COREIP_S76_RTL__METAL_H +#define COREIP_S76_RTL__METAL_H #ifdef __METAL_MACHINE_MACROS @@ -318,5 +318,5 @@ struct __metal_driver_sifive_spi0 *__metal_spi_table[] = { #endif /* ! __METAL_MACHINE_MACROS */ -#endif /* COREIP_S76__METAL_H*/ +#endif /* COREIP_S76_RTL__METAL_H*/ #endif /* ! ASSEMBLY */ -- cgit v1.2.1-18-gbd029