diff options
author | Colin Cross <ccross@android.com> | 2011-02-10 15:54:10 -0500 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2011-09-23 02:35:30 -0400 |
commit | 254056f3b12563c11e6dbcfad2fbfce20a4f3302 (patch) | |
tree | 4e25156bfe5cc0613a0aaeba91233bf9936a8d92 /arch/arm/include/asm/hardware | |
parent | 1fb9026344ea9ecc7c5860240104109112384a61 (diff) |
ARM: gic: Use cpu pm notifiers to save gic state
When the cpu is powered down in a low power mode, the gic cpu
interface may be reset, and when the cpu cluster is powered
down, the gic distributor may also be reset.
This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save
and restore the gic cpu interface registers, and the
CPU_CLUSTER_PM_ENTER and CPU_CLUSTER_PM_EXIT notifiers to save
and restore the gic distributor registers.
Original-author: Gary King <gking@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r-- | arch/arm/include/asm/hardware/gic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/gic.h b/arch/arm/include/asm/hardware/gic.h index 435d3f86c708..c5627057b1c7 100644 --- a/arch/arm/include/asm/hardware/gic.h +++ b/arch/arm/include/asm/hardware/gic.h | |||
@@ -46,6 +46,14 @@ struct gic_chip_data { | |||
46 | unsigned int irq_offset; | 46 | unsigned int irq_offset; |
47 | void __iomem *dist_base; | 47 | void __iomem *dist_base; |
48 | void __iomem *cpu_base; | 48 | void __iomem *cpu_base; |
49 | #ifdef CONFIG_CPU_PM | ||
50 | u32 saved_spi_enable[DIV_ROUND_UP(1020, 32)]; | ||
51 | u32 saved_spi_conf[DIV_ROUND_UP(1020, 16)]; | ||
52 | u32 saved_spi_target[DIV_ROUND_UP(1020, 4)]; | ||
53 | u32 __percpu *saved_ppi_enable; | ||
54 | u32 __percpu *saved_ppi_conf; | ||
55 | #endif | ||
56 | unsigned int gic_irqs; | ||
49 | }; | 57 | }; |
50 | #endif | 58 | #endif |
51 | 59 | ||