Add MMC Device section to the DTS
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -21,7 +21,7 @@
|
||||
url = https://github.com/riscv-boom/riscv-boom.git
|
||||
[submodule "generators/sifive-blocks"]
|
||||
path = generators/sifive-blocks
|
||||
url = https://github.com/sifive/sifive-blocks.git
|
||||
url = https://github.com/abejgonzalez/sifive-blocks.git
|
||||
[submodule "generators/hwacha"]
|
||||
path = generators/hwacha
|
||||
url = https://github.com/ucb-bar/hwacha.git
|
||||
|
||||
@@ -3,7 +3,7 @@ package chipyard.fpga.vcu118
|
||||
import chisel3._
|
||||
import chisel3.experimental.{Analog, IO, DataMirror}
|
||||
|
||||
import freechips.rocketchip.diplomacy.{LazyModule, LazyModuleImp, LazyScope, InModuleBody, BundleBridgeSource, ValName}
|
||||
import freechips.rocketchip.diplomacy._
|
||||
import freechips.rocketchip.config.{Parameters}
|
||||
import freechips.rocketchip.util.{HeterogeneousBag}
|
||||
import freechips.rocketchip.tilelink.{TLBundle}
|
||||
@@ -23,10 +23,18 @@ trait HasVCU118PlatformIO {
|
||||
val io_tl_mem: HeterogeneousBag[TLBundle]
|
||||
}
|
||||
|
||||
class VCU118Platform(override implicit val p: Parameters) extends LazyModule with LazyScope {
|
||||
class VCU118Platform(override implicit val p: Parameters) extends LazyModule with LazyScope with BindingScope {
|
||||
|
||||
val lazySystem = LazyModule(p(BuildSystem)(p)).suggestName("system")
|
||||
|
||||
// add MMC to the DTS
|
||||
lazySystem match { case lsys: HasPeripherySPI =>
|
||||
val mmcDev = new MMCDevice(lsys.tlspi.head.device, 1)
|
||||
ResourceBinding {
|
||||
Resource(mmcDev, "reg").bind(ResourceAddress(0))
|
||||
}
|
||||
}
|
||||
|
||||
override lazy val module = new VCU118PlatformModule(this)
|
||||
}
|
||||
|
||||
|
||||
Submodule generators/sifive-blocks updated: c240e629e2...413e0a88a4
Reference in New Issue
Block a user