aboutsummaryrefslogtreecommitdiff
path: root/hw/nios2/Kconfig
diff options
context:
space:
mode:
authorAmir Gonnen <amir.gonnen@neuroblade.ai>2022-04-21 08:17:33 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-04-26 08:17:05 -0700
commit28a3c1b5f183f765f9ba04fc206807dce07960f8 (patch)
treeadb7b94d6ff25b0ac1c0f7342e5e883433f2f120 /hw/nios2/Kconfig
parente734cedf119700813478cc84511d9d7cc966c1d6 (diff)
hw/nios2: Machine with a Vectored Interrupt Controller
Demonstrate how to use nios2 VIC on a machine. Introduce a new machine property to attach a VIC. When VIC is present, let the CPU know that it should use the External Interrupt Interface instead of the Internal Interrupt Interface. The devices on the machine are attached to the VIC and not directly to cpu. To allow VIC update EIC fields, we set the "cpu" property of the VIC with a reference to the nios2 cpu. [rth: Put a property on the 10m50-ghrd machine, rather than create a new machine class.] Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Amir Gonnen <amir.gonnen@neuroblade.ai> Message-Id: <20220303153906.2024748-6-amir.gonnen@neuroblade.ai> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220421151735.31996-63-richard.henderson@linaro.org>
Diffstat (limited to 'hw/nios2/Kconfig')
-rw-r--r--hw/nios2/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/nios2/Kconfig b/hw/nios2/Kconfig
index b10ea640da..4748ae27b6 100644
--- a/hw/nios2/Kconfig
+++ b/hw/nios2/Kconfig
@@ -3,6 +3,7 @@ config NIOS2_10M50
select NIOS2
select SERIAL
select ALTERA_TIMER
+ select NIOS2_VIC
config NIOS2_GENERIC_NOMMU
bool