add SCR file to device tree
This commit is contained in:
parent
6fc1e92708
commit
4f5dabcda2
@ -1 +1 @@
|
|||||||
Subproject commit 0cda74d473d49ebe0e2c62abc4a33c40fa498fbd
|
Subproject commit b770662965bcefee5921b482016fd11d4e40f053
|
@ -51,6 +51,13 @@ class DefaultConfig extends Config (
|
|||||||
dt.endNode()
|
dt.endNode()
|
||||||
}
|
}
|
||||||
dt.endNode()
|
dt.endNode()
|
||||||
|
val scrs = addrMap("conf:scr")
|
||||||
|
dt.beginNode(s"scr@${scrs.start.toLong.toHexString}")
|
||||||
|
dt.addProp("device_type", "scr")
|
||||||
|
dt.addProp("compatible", "riscv")
|
||||||
|
dt.addProp("protection", scrs.prot)
|
||||||
|
dt.addReg(scrs.start.toLong, scrs.size.toLong)
|
||||||
|
dt.endNode()
|
||||||
dt.endNode()
|
dt.endNode()
|
||||||
dt.toArray()
|
dt.toArray()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user