Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b179a8e1 authored by Neeraj Upadhyay's avatar Neeraj Upadhyay
Browse files

irqchip: gic-v3: provide save and restore api



Provide api to save/restore GICD state for SPIs. SPI
configuration is restored for GICD_ICFGR, GICD_ISENABLER,
GICD_IPRIORITYR, GICD_IROUTER registers. Following is the
sequence for restore:

1. For SPIs, check whether any of GICD_ICFGR, GICD_ISENABLER,
   GICD_IPRIORITYR, GICD_IROUTER, current configuration is
   different from saved configuration.

For all irqs, with mismatched configurations,

2. Set GICD_ICENABLER and wait for its completion.

3. Restore any changed GICD_ICFGR, GICD_IPRIORITYR, GICD_IROUTER
   configurations.

4. Set GICD_ICACTIVER.

5. Set pending for the interrupt.

6. Enable interrupt and wait for its completion.

Change-Id: I31cd5eb8c3226dcdfd474bc88b91c1cb5ca909e6
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent ea8e4215
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment