1
0

add SCR file to device tree

This commit is contained in:
Howard Mao 2015-12-04 12:16:25 -08:00
parent 6fc1e92708
commit 4f5dabcda2
2 changed files with 8 additions and 1 deletions

@ -1 +1 @@
Subproject commit 0cda74d473d49ebe0e2c62abc4a33c40fa498fbd
Subproject commit b770662965bcefee5921b482016fd11d4e40f053

View File

@ -51,6 +51,13 @@ class DefaultConfig extends Config (
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.toArray()
}