Skip to contentSkip to conversation

hw/intc: Rename NIOS2 kconfig as ALTERA_IIC

PATCH In review Philippe Mathieu-Daudé 1 participant 2 messages Oct 7, 2020 – Oct 15, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/intc: Rename NIOS2 kconfig as ALTERA_IIC

The 'NIOS2' Kconfig symbol is used to select an generic interrupt controller, and has not much to do with the Nios2 target. Rename the symbol as 'ALTERA_IIC'.

---
 hw/intc/Kconfig     | 3 +++
 hw/intc/meson.build | 2 +-
 hw/nios2/Kconfig    | 7 ++-----
 3 files changed, 6 insertions(+), 6 deletions(-)
hw/intc/Kconfig +3 -0
index d07954086a..d940c09cde 100644
@@ -73,3 +73,6 @@ config SIFIVE_CLINT
 
 config SIFIVE_PLIC
     bool
+
+config ALTERA_IIC
+    bool
hw/intc/meson.build +1 -1
index 3f82cc230a..47c6726b8e 100644
@@ -37,7 +37,7 @@ specific_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_plic.c'))
 specific_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
 specific_ss.add(when: 'CONFIG_LOONGSON_LIOINTC', if_true: files('loongson_liointc.c'))
 specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gic.c'))
-specific_ss.add(when: 'CONFIG_NIOS2', if_true: files('nios2_iic.c'))
+specific_ss.add(when: 'CONFIG_ALTERA_IIC', if_true: files('nios2_iic.c'))
 specific_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c'))
 specific_ss.add(when: 'CONFIG_OMPIC', if_true: files('ompic.c'))
 specific_ss.add(when: 'CONFIG_OPENPIC_KVM', if_true: files('openpic_kvm.c'))
hw/nios2/Kconfig +2 -5
index b10ea640da..95e72186af 100644
@@ -1,12 +1,9 @@
 config NIOS2_10M50
     bool
-    select NIOS2
+    select ALTERA_IIC
     select SERIAL
     select ALTERA_TIMER
 
 config NIOS2_GENERIC_NOMMU
     bool
-    select NIOS2
-
-config NIOS2
-    bool
+    select ALTERA_IIC
Signature · 1 line
2.26.2
#1 lore raw

ping?

Quoted 55 lines · Philippe Mathieu-Daudé

The 'NIOS2' Kconfig symbol is used to select an generic interrupt controller, and has not much to do with the Nios2 target. Rename the symbol as 'ALTERA_IIC'.

---
  hw/intc/Kconfig     | 3 +++
  hw/intc/meson.build | 2 +-
  hw/nios2/Kconfig    | 7 ++-----
  3 files changed, 6 insertions(+), 6 deletions(-)
hw/intc/Kconfig +3 -0
index d07954086a..d940c09cde 100644
@@ -73,3 +73,6 @@ config SIFIVE_CLINT
 
  config SIFIVE_PLIC
      bool
+
+config ALTERA_IIC
+    bool
hw/intc/meson.build +1 -1
index 3f82cc230a..47c6726b8e 100644
@@ -37,7 +37,7 @@ specific_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_plic.c'))
  specific_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
  specific_ss.add(when: 'CONFIG_LOONGSON_LIOINTC', if_true: files('loongson_liointc.c'))
  specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gic.c'))
-specific_ss.add(when: 'CONFIG_NIOS2', if_true: files('nios2_iic.c'))
+specific_ss.add(when: 'CONFIG_ALTERA_IIC', if_true: files('nios2_iic.c'))
  specific_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c'))
  specific_ss.add(when: 'CONFIG_OMPIC', if_true: files('ompic.c'))
  specific_ss.add(when: 'CONFIG_OPENPIC_KVM', if_true: files('openpic_kvm.c'))
hw/nios2/Kconfig +2 -5
index b10ea640da..95e72186af 100644
@@ -1,12 +1,9 @@
  config NIOS2_10M50
      bool
-    select NIOS2
+    select ALTERA_IIC
      select SERIAL
      select ALTERA_TIMER
 
  config NIOS2_GENERIC_NOMMU
      bool
-    select NIOS2
-
-config NIOS2
-    bool
+    select ALTERA_IIC