From 673dd36f0d0cf8893d6b46d524ad80e81076b885 Mon Sep 17 00:00:00 2001 From: "Mark A. Greer" Date: Wed, 15 Apr 2009 12:40:00 -0700 Subject: davinci: Move interrupt ctlr info to SoC infrastructure Use the SoC infrastructure to hold the interrupt controller information (i.e., base address, default priorities, interrupt controller type, and the number of IRQs). The interrupt controller base, although initially put in the soc_info structure's intc_base field, is eventually put in the global 'davinci_intc_base' so the low-level interrupt code can access it without a dereference. These changes enable the SoC default irq priorities to be put in the SoC-specific files, and the interrupt controller to be at any base address. Signed-off-by: Mark A. Greer Signed-off-by: Kevin Hilman --- arch/arm/mach-davinci/common.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/mach-davinci/common.c') diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index 2e5b888e6ca..d72d517d090 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -22,6 +22,8 @@ struct davinci_soc_info davinci_soc_info; EXPORT_SYMBOL(davinci_soc_info); +void __iomem *davinci_intc_base; + static struct davinci_id * __init davinci_get_id(u32 jtag_id) { int i; @@ -84,6 +86,7 @@ void __init davinci_common_init(struct davinci_soc_info *soc_info) goto err; } + davinci_intc_base = davinci_soc_info.intc_base; return; err: -- cgit v1.2.3-70-g09d2