From patchwork Tue Oct 23 15:22:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [04/10] ARM: imx: initialize cpu power up counters Date: Tue, 23 Oct 2012 05:22:53 -0000 From: Shawn Guo X-Patchwork-Id: 193509 Message-Id: <1351005779-30347-5-git-send-email-shawn.guo@linaro.org> To: linux-arm-kernel@lists.infradead.org Cc: Sascha Hauer , Shawn Guo , Robert Lee The default values of cpu power up counters are unnecessarily large. Initialize them to small ones for minimizing the power up latency. Signed-off-by: Shawn Guo --- arch/arm/mach-imx/gpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index e1537f9..c75842d 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -19,6 +19,7 @@ #define GPC_IMR1 0x008 #define GPC_PGC_CPU_PDN 0x2a0 +#define GPC_PGC_CPU_PUPSCR 0x2a4 #define IMR_NUM 4 @@ -106,6 +107,9 @@ void __init imx_gpc_init(void) gpc_base = of_iomap(np, 0); WARN_ON(!gpc_base); + /* Initialize cpu power up counters to minimize the latency */ + writel_relaxed(0x101, gpc_base + GPC_PGC_CPU_PUPSCR); + /* Register GPC as the secondary interrupt controller behind GIC */ gic_arch_extn.irq_mask = imx_gpc_irq_mask; gic_arch_extn.irq_unmask = imx_gpc_irq_unmask;