Browse Source

fix(prototyper) add `"starfive,jh7110-clint", "sifive,clint0"` to `SIFIVE_CLINT_COMPATIBLE`

Reported-by: @guttatus

- Solve the problem that the IPI of jh7110 cannot be initialized when using the device tree in the mainline u-boot

Signed-off-by: lurenjia1213 <30799041+lurenjia1213@users.noreply.github.com>
lurenjia1213 2 days ago
parent
commit
6414e7824a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      prototyper/prototyper/src/platform/clint.rs

+ 2 - 1
prototyper/prototyper/src/platform/clint.rs

@@ -3,7 +3,8 @@ use core::arch::asm;
 use xuantie_riscv::peripheral::clint::THeadClint;
 
 use crate::sbi::ipi::IpiDevice;
-pub(crate) const SIFIVE_CLINT_COMPATIBLE: [&str; 1] = ["riscv,clint0"];
+pub(crate) const SIFIVE_CLINT_COMPATIBLE: [&str; 3] =
+    ["riscv,clint0", "starfive,jh7110-clint", "sifive,clint0"];
 pub(crate) const THEAD_CLINT_COMPATIBLE: [&str; 1] = ["thead,c900-clint"];
 
 #[doc(hidden)]