Use HomogenousBag to handle lists of peripherals
[sifive-blocks.git] / src / main / scala / devices / pwm / PWM.scala
index c649e7e376eec6cf7e48737a50291bf123ddb69a..d46732cbae2e9f493421efa1588498a160f62406 100644 (file)
@@ -44,16 +44,6 @@ case class PWMConfig(
   regBytes: Int = 4,
   ncmp: Int = 4,
   cmpWidth: Int = 16)
-{
-  val bc = new PWMBundleConfig(ncmp)
-}
-
-case class PWMBundleConfig(
-  ncmp: Int)
-{
-  def union(that: PWMBundleConfig): PWMBundleConfig =
-    PWMBundleConfig(scala.math.max(ncmp, that.ncmp))
-}
 
 trait HasPWMParameters {
   implicit val p: Parameters