Commit 005510cd authored by Suman Anna's avatar Suman Anna
Browse files

remoteproc/pruss: fix up the INTC configuration per PRU core



The PRUSS INTC configuration is currently stored globally in the PRUSS
structure, and is filled in when each PRU core is loaded through the
processing of its resource table entry. This configuration is never
undone when a PRU core is unloaded.

Fix up the configuration of the PRUSS INTC to be managed per PRU core.
This is done by adding a pruss_intc_unconfigure() function and reworking
the current pruss_intc_configure() function. These functions will only
be used by the pru_rproc platform driver during the booting/shutdown of
the PRU. So, the per PRU core INTC configuration is stored in the
pru_rproc structure, and passed in to the INTC configuration functions.

This fixes the loading and unloading of the pru_rproc module or the
unloading and reloading of a specific PRU core. This allows different
applications to unload and reload a PRU.

Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent 3bc4dfbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment