ux500: make gic_cpu_base_addr visible to entry-macro-gic.S
Subsystems (3)
PATCH 2/2 ux500: make gic_cpu_base_addr visible to entry-macro-gic.S
This makes the __iomem type gic_cpu_base_addr visible to the new renamed file entry-macro-gic.S.
Signed-off-by srinidhi kasagar <[email protected]>
Acked-by Linus Walleij <[email protected]>
--- arch/arm/mach-ux500/cpu.c | 7 ++++++- arch/arm/mach-ux500/include/mach/setup.h | 1 + 2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-ux500/cpu.c +6 -1
@@ -58,10 +58,15 @@ void __init ux500_init_devices(void)amba_add_devices (ux500_amba_devs,ARRAY_SIZE (ux500_amba_devs)); } +/* used by entry-macro.S */ +void __iomem *gic_cpu_base_addr; +void __init ux500_init_irq (void ) { + gic_cpu_base_addr =__io_address (UX500_GIC_CPU_BASE ); +gic_dist_init (0 ,__io_address (UX500_GIC_DIST_BASE ),29 ); -gic_cpu_init (0 ,__io_address (UX500_GIC_CPU_BASE )); +gic_cpu_init (0 , gic_cpu_base_addr);/* * Init clocks here so that they are available for system timer
arch/arm/mach-ux500/include/mach/setup.h +1 -0
@@ -30,6 +30,7 @@ extern void __init amba_add_devices(struct amba_device *devs[], int num);struct sys_timer ;extern struct sys_timer ux500_timer; +extern void __iomem *gic_cpu_base_addr;#define __IO_DEV_DESC (x, sz) { \ .virtual = IO_ADDRESS(x), \
Signature · 1 line
1.6.3.3