From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh.shilimkar@ti.com (Santosh Shilimkar) Date: Tue, 29 Mar 2011 11:19:07 +0530 Subject: [pm-core][PATCH v3 01/21] OMAP4: PM: Add omap WakeupGen module support In-Reply-To: <20110328205027.GC30616@atomide.com> References: <1301304157-2466-1-git-send-email-santosh.shilimkar@ti.com> <1301304157-2466-2-git-send-email-santosh.shilimkar@ti.com> <20110328205027.GC30616@atomide.com> Message-ID: <5cbdd88c3ca3fe5c5a0f119be446ce99@mail.gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org > -----Original Message----- > From: Tony Lindgren [mailto:tony at atomide.com] > Sent: Tuesday, March 29, 2011 2:20 AM > To: Santosh Shilimkar > Cc: linux-omap at vger.kernel.org; khilman at ti.com; rnayak at ti.com; > linux-arm-kernel at lists.infradead.org > Subject: Re: [pm-core][PATCH v3 01/21] OMAP4: PM: Add omap WakeupGen > module support > > * Santosh Shilimkar [110328 02:20]: > > --- a/arch/arm/mach-omap2/omap4-common.c > > +++ b/arch/arm/mach-omap2/omap4-common.c > > @@ -21,6 +21,7 @@ > > > > #include > > #include > > +#include > > > > #ifdef CONFIG_CACHE_L2X0 > > void __iomem *l2cache_base; > > @@ -41,6 +42,8 @@ void __init gic_init_irq(void) > > gic_cpu_base = ioremap(OMAP44XX_GIC_CPU_BASE, SZ_512); > > BUG_ON(!gic_cpu_base); > > > > + omap_wakeupgen_init(); > > + > > gic_init(0, 29, gic_dist_base_addr, gic_cpu_base); > > } > > Do you really need to initialize all of this that early? > Yes. It's a interrupt controller extension and needs to work together with GIC.