[PATCH 2/4] ARM: Xilinx: Adding Xilinx board support
Russell King - ARM Linux
linux at arm.linux.org.uk
Sat Feb 5 11:18:53 EST 2011
On Sat, Feb 05, 2011 at 09:08:42AM -0700, John Linn wrote:
> +void __init irq_init(void)
> +{
> + gic_cpu_base_addr = (void __iomem *)SCU_GIC_CPU_BASE;
Just pass this address into gic_init - there's no need to initialize
this variable yourself anymore.
> + gic_init(0, 29, (void __iomem *)SCU_GIC_DIST_BASE, gic_cpu_base_addr);
...
> +static struct map_desc io_desc[] __initdata = {
...
> +#ifdef CONFIG_DEBUG_LL
> + {
> + .virtual = UART0_BASE,
> + .pfn = __phys_to_pfn(UART0_BASE),
> + .length = SZ_4K,
> + .type = MT_DEVICE,
> + },
> +#endif
You shouldn't need to do this if your addruart macro in mach/debug-macros.S
is correctly returning the virtual and physical addresses in rp and rv.
More information about the linux-arm-kernel
mailing list