[ARM] VIC: Add power management device
Add power management support to the VIC by registering each VIC as a system device to get suspend/resume events going. Since the VIC registeration is done early, we need to record the VICs in a static array which is used to add the system devices later once the initcalls are run. This means there is now a configuration value for the number of VICs in the system. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
@@ -168,7 +168,7 @@ void __init netx_init_irq(void)
|
||||
{
|
||||
int irq;
|
||||
|
||||
vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0);
|
||||
vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0, 0);
|
||||
|
||||
for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) {
|
||||
set_irq_chip(irq, &netx_hif_chip);
|
||||
|
Reference in New Issue
Block a user