 28a3c1b5f1
			
		
	
	
		28a3c1b5f1
		
	
	
	
	
		
			
			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>
		
	
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			185 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			185 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| config NIOS2_10M50
 | |
|     bool
 | |
|     select NIOS2
 | |
|     select SERIAL
 | |
|     select ALTERA_TIMER
 | |
|     select NIOS2_VIC
 | |
| 
 | |
| config NIOS2_GENERIC_NOMMU
 | |
|     bool
 | |
|     select NIOS2
 | |
| 
 | |
| config NIOS2
 | |
|     bool
 |