X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmain%2Fscala%2Fdevices%2Fi2c%2FI2CPeriphery.scala;h=d9c3ff4085d3aa515f1dcc309dd6eed5d77d8002;hb=b06b80dccdf4e71b37866cc0e32a800a2b1a62d1;hp=a79f94c5588af415ad3797aad6409830e9b802dc;hpb=d4bb8a77ea7a0a9545dcaf93a4a2a32671c2dd47;p=sifive-blocks.git diff --git a/src/main/scala/devices/i2c/I2CPeriphery.scala b/src/main/scala/devices/i2c/I2CPeriphery.scala index a79f94c..d9c3ff4 100644 --- a/src/main/scala/devices/i2c/I2CPeriphery.scala +++ b/src/main/scala/devices/i2c/I2CPeriphery.scala @@ -22,8 +22,8 @@ trait HasPeripheryI2C extends HasSystemNetworks { trait HasPeripheryI2CBundle { val i2cs: Vec[I2CPort] - def toGPIOPins(dummy: Int = 1): Seq[I2CGPIOPort] = i2cs.map { i => - val pin = Module(new I2CGPIOPort) + def toGPIOPins(syncStages: Int = 0): Seq[I2CGPIOPort] = i2cs.map { i => + val pin = Module(new I2CGPIOPort(syncStages)) pin.io.i2c <> i pin }