Tool/software: Linux
I have a question about pruss_intc_trigger() in drivers/remoteproc/pruss_intc.c
The function comments indicate that this takes a Linux IRQ number. From the TRM (section 6.3) you can see that ARM interrupts 20-27 map to PRU host interrupts 2-9. Based on that and the pruss_intc node from am33xx.dtsi, I am interpreting the irq function parameter as the ARM interrupt number. Walking through the code it is obvious that the function is setting a system event via SISR. I am a little unclear of how the ARM interrupt number is bound to the PRU system event but I think this is done using struct pruss_intc_config and the firmware resource table?
The resource table lets you configure host interrupts 0-9 but the device tree only has entries for host interrupts 2-9. Because of that I assume you can't trigger host interrupts 0 and 1 with this function. Can anyone confirm?