Inject MMCDevice into TLSPI Node

This commit is contained in:
abejgonzalez
2020-10-15 11:46:42 -07:00
parent 7f387a254b
commit 9ba4918cb8
3 changed files with 8 additions and 16 deletions

View File

@@ -59,18 +59,6 @@ class WithSPIIOPassthrough extends OverrideIOBinder({
}
})
//class WithMMCSPIDTS extends OverrideIOBinder({
// (system: HasPeripherySPI) => {
//
// val mmcDev = new MMCDevice(system.tlspi.head.device, 1)
// ResourceBinding {
// Resource(mmcDev, "reg").bind(ResourceAddress(0))
// }
//
// (Nil, Nil)
// }
//})
class WithI2CIOPassthrough extends OverrideIOBinder({
(system: HasPeripheryI2CModuleImp) => {
val io_i2c_pins_temp = system.i2c.zipWithIndex.map { case (dio, i) => IO(dio.cloneType).suggestName(s"i2c_$i") }