1
0

Merge pull request #862 from freechipsproject/plic-max-pri-dts

PLIC: Add maxPri as well as ndev in DTS
This commit is contained in:
Richard Xia 2017-07-13 17:08:21 -07:00 committed by GitHub
commit 9ade7af013

View File

@ -68,6 +68,7 @@ class TLPLIC(params: PLICParams)(implicit p: Parameters) extends LazyModule
val extra = Map(
"interrupt-controller" -> Nil,
"riscv,ndev" -> Seq(ResourceInt(nDevices)),
"riscv,max-priority" -> Seq(ResourceInt(params.maxPriorities)),
"#interrupt-cells" -> Seq(ResourceInt(1)))
Description(name, mapping ++ extra)
}