diff options
author | Travis Geiselbrecht <geist@foobox.com> | 2023-03-09 23:20:18 -0800 |
---|---|---|
committer | Travis Geiselbrecht <geist@foobox.com> | 2023-03-09 23:20:18 -0800 |
commit | a1eb850079f4059ee0c22a7da07c473a423ec1c1 (patch) | |
tree | f7048a9228ef580150c9b7c91797235126768f27 | |
parent | 7c2c8d8e564bdd9f5026cc2d986f9aaecf703de5 (diff) | |
download | lk-a1eb850079f4059ee0c22a7da07c473a423ec1c1.tar.gz |
[target][visionfive2] set the time base properly
Seems to be running at 4Mhz according to the device tree.
-rw-r--r-- | platform/jh7110/rules.mk | 4 | ||||
-rw-r--r-- | target/visionfive2/rules.mk | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/platform/jh7110/rules.mk b/platform/jh7110/rules.mk index 7ce2fc51..3360df1c 100644 --- a/platform/jh7110/rules.mk +++ b/platform/jh7110/rules.mk @@ -28,10 +28,6 @@ ifeq ($(RISCV_MODE),supervisor) KERNEL_LOAD_OFFSET ?= 0x00200000 # kernel load offset endif -# set some global defines based on capability -GLOBAL_DEFINES += ARCH_RISCV_CLINT_BASE=0x0c000000 -GLOBAL_DEFINES += ARCH_RISCV_MTIME_RATE=10000000 - # we can revert to a poll based uart spin routine GLOBAL_DEFINES += PLATFORM_SUPPORTS_PANIC_SHELL=1 diff --git a/target/visionfive2/rules.mk b/target/visionfive2/rules.mk index a183d810..8a78e795 100644 --- a/target/visionfive2/rules.mk +++ b/target/visionfive2/rules.mk @@ -5,3 +5,6 @@ MODULE := $(LOCAL_DIR) PLATFORM := jh7110 MEMSIZE ?= 0x200000000 # 8GB + +# set time base +GLOBAL_DEFINES += ARCH_RISCV_MTIME_RATE=4000000 |