GPIO: IOF should not override PUE and DS gpio_iof_pueds
authorMegan Wachs <megan@sifive.com>
Wed, 8 Nov 2017 23:15:32 +0000 (15:15 -0800)
committerMegan Wachs <megan@sifive.com>
Wed, 8 Nov 2017 23:15:32 +0000 (15:15 -0800)
src/main/scala/devices/gpio/GPIO.scala

index f598dbb..f5098cf 100644 (file)
@@ -168,10 +168,10 @@ trait HasGPIOModuleContents extends MultiIOModule with HasRegMap {
   val swPinCtrl = Wire(Vec(c.width, new EnhancedPinCtrl()))
 
   // This strips off the valid.
-  val iof0Ctrl = Wire(Vec(c.width, new EnhancedPinCtrl()))
-  val iof1Ctrl = Wire(Vec(c.width, new EnhancedPinCtrl()))
+  val iof0Ctrl = Wire(Vec(c.width, new IOFCtrl()))
+  val iof1Ctrl = Wire(Vec(c.width, new IOFCtrl()))
 
-  val iofCtrl = Wire(Vec(c.width, new EnhancedPinCtrl()))
+  val iofCtrl = Wire(Vec(c.width, new IOFCtrl()))
   val iofPlusSwPinCtrl = Wire(Vec(c.width, new EnhancedPinCtrl()))
 
   for (pin <- 0 until c.width) {