Commit f451ca3e authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Sekhar Nori

ARM: davinci: cp-intc: add a wrapper around cp_intc_init()

We're going to extend the cp_intc_init() function with a config
structure so we can drop the intc-related fields from davinci_soc_info.

Once we do it, we won't be able to use this routine directly as the
init_irq callback. Wrap the calls in additional helpers that don't
take parameters and can be assigned to init_irq.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent ed4d189b
...@@ -634,7 +634,7 @@ static void __init da830_evm_map_io(void) ...@@ -634,7 +634,7 @@ static void __init da830_evm_map_io(void)
MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137/AM17x EVM") MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137/AM17x EVM")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = da830_evm_map_io, .map_io = da830_evm_map_io,
.init_irq = cp_intc_init, .init_irq = da830_init_irq,
.init_time = da830_init_time, .init_time = da830_init_time,
.init_machine = da830_evm_init, .init_machine = da830_evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -1500,7 +1500,7 @@ static void __init da850_evm_map_io(void) ...@@ -1500,7 +1500,7 @@ static void __init da850_evm_map_io(void)
MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM") MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = da850_evm_map_io, .map_io = da850_evm_map_io,
.init_irq = cp_intc_init, .init_irq = da850_init_irq,
.init_time = da850_init_time, .init_time = da850_init_time,
.init_machine = da850_evm_init, .init_machine = da850_evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -627,7 +627,7 @@ static void __init mityomapl138_map_io(void) ...@@ -627,7 +627,7 @@ static void __init mityomapl138_map_io(void)
MACHINE_START(MITYOMAPL138, "MityDSP-L138/MityARM-1808") MACHINE_START(MITYOMAPL138, "MityDSP-L138/MityARM-1808")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = mityomapl138_map_io, .map_io = mityomapl138_map_io,
.init_irq = cp_intc_init, .init_irq = da850_init_irq,
.init_time = da850_init_time, .init_time = da850_init_time,
.init_machine = mityomapl138_init, .init_machine = mityomapl138_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -398,7 +398,7 @@ static void __init omapl138_hawk_map_io(void) ...@@ -398,7 +398,7 @@ static void __init omapl138_hawk_map_io(void)
MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard") MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = omapl138_hawk_map_io, .map_io = omapl138_hawk_map_io,
.init_irq = cp_intc_init, .init_irq = da850_init_irq,
.init_time = da850_init_time, .init_time = da850_init_time,
.init_machine = omapl138_hawk_init, .init_machine = omapl138_hawk_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -821,6 +821,11 @@ void __init da830_init(void) ...@@ -821,6 +821,11 @@ void __init da830_init(void)
WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module"); WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module");
} }
void __init da830_init_irq(void)
{
cp_intc_init();
}
void __init da830_init_time(void) void __init da830_init_time(void)
{ {
void __iomem *pll; void __iomem *pll;
......
...@@ -759,6 +759,11 @@ void __init da850_init(void) ...@@ -759,6 +759,11 @@ void __init da850_init(void)
WARN(!da8xx_syscfg1_base, "Unable to map syscfg1 module"); WARN(!da8xx_syscfg1_base, "Unable to map syscfg1 module");
} }
void __init da850_init_irq(void)
{
cp_intc_init();
}
void __init da850_init_time(void) void __init da850_init_time(void)
{ {
void __iomem *pll0; void __iomem *pll0;
......
...@@ -88,10 +88,12 @@ extern unsigned int da850_max_speed; ...@@ -88,10 +88,12 @@ extern unsigned int da850_max_speed;
#define DA8XX_ARM_RAM_BASE 0xffff0000 #define DA8XX_ARM_RAM_BASE 0xffff0000
void da830_init(void); void da830_init(void);
void da830_init_irq(void);
void da830_init_time(void); void da830_init_time(void);
void da830_register_clocks(void); void da830_register_clocks(void);
void da850_init(void); void da850_init(void);
void da850_init_irq(void);
void da850_init_time(void); void da850_init_time(void);
void da850_register_clocks(void); void da850_register_clocks(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment