From mboxrd@z Thu Jan 1 00:00:00 1970 From: shawn.guo@freescale.com (Shawn Guo) Date: Sat, 20 Aug 2011 23:54:58 +0800 Subject: [PATCH 2/6] ARM: add Highbank core platform support In-Reply-To: <1313526898-19920-3-git-send-email-robherring2@gmail.com> References: <1313526898-19920-1-git-send-email-robherring2@gmail.com> <1313526898-19920-3-git-send-email-robherring2@gmail.com> Message-ID: <20110820155457.GC13302@S2100-06.ap.freescale.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Aug 16, 2011 at 03:34:54PM -0500, Rob Herring wrote: > From: Rob Herring > > This adds basic support for the Calxeda Highbank platform. > > Signed-off-by: Rob Herring > --- [...] > + > +void highbank_init_irq(void) > +{ > + struct device_node *node; > + struct of_intc_desc desc; > + int n = 0; > + > + memset(&desc, 0, sizeof(desc)); > + desc.controller = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic"); > + gic_of_init(&desc); > + node = desc.controller; > + for_each_child_of_node(node, desc.controller) { > + gic_of_ppi_init(&desc); > + } > + > + for_each_compatible_node(node, NULL, "arm,pl061") { > + irq_domain_add_simple(node, 160 + (8 * n)); > + n++; > + } > + > +#ifdef CONFIG_CACHE_L2X0 > + l2x0_of_init(0, ~0UL); > +#endif Would it be good to create a l2x0_of_init() in cache-l2x0.h to git rid of this #ifdef? -- Regards, Shawn