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

ARM: davinci: aintc: wrap davinci_irq_init() with a helper

We're going to extend the davinci_irq_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 2d242aa2
...@@ -438,7 +438,7 @@ static __init void dm355_evm_init(void) ...@@ -438,7 +438,7 @@ static __init void dm355_evm_init(void)
MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM") MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = dm355_evm_map_io, .map_io = dm355_evm_map_io,
.init_irq = davinci_irq_init, .init_irq = dm355_init_irq,
.init_time = dm355_init_time, .init_time = dm355_init_time,
.init_machine = dm355_evm_init, .init_machine = dm355_evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -273,7 +273,7 @@ static __init void dm355_leopard_init(void) ...@@ -273,7 +273,7 @@ static __init void dm355_leopard_init(void)
MACHINE_START(DM355_LEOPARD, "DaVinci DM355 leopard") MACHINE_START(DM355_LEOPARD, "DaVinci DM355 leopard")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = dm355_leopard_map_io, .map_io = dm355_leopard_map_io,
.init_irq = davinci_irq_init, .init_irq = dm355_init_irq,
.init_time = dm355_init_time, .init_time = dm355_init_time,
.init_machine = dm355_leopard_init, .init_machine = dm355_leopard_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -831,7 +831,7 @@ static __init void dm365_evm_init(void) ...@@ -831,7 +831,7 @@ static __init void dm365_evm_init(void)
MACHINE_START(DAVINCI_DM365_EVM, "DaVinci DM365 EVM") MACHINE_START(DAVINCI_DM365_EVM, "DaVinci DM365 EVM")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = dm365_evm_map_io, .map_io = dm365_evm_map_io,
.init_irq = davinci_irq_init, .init_irq = dm365_init_irq,
.init_time = dm365_init_time, .init_time = dm365_init_time,
.init_machine = dm365_evm_init, .init_machine = dm365_evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -888,7 +888,7 @@ MACHINE_START(DAVINCI_EVM, "DaVinci DM644x EVM") ...@@ -888,7 +888,7 @@ MACHINE_START(DAVINCI_EVM, "DaVinci DM644x EVM")
/* Maintainer: MontaVista Software <source@mvista.com> */ /* Maintainer: MontaVista Software <source@mvista.com> */
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = davinci_evm_map_io, .map_io = davinci_evm_map_io,
.init_irq = davinci_irq_init, .init_irq = dm644x_init_irq,
.init_time = dm644x_init_time, .init_time = dm644x_init_time,
.init_machine = davinci_evm_init, .init_machine = davinci_evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -860,7 +860,7 @@ static __init void evm_init(void) ...@@ -860,7 +860,7 @@ static __init void evm_init(void)
MACHINE_START(DAVINCI_DM6467_EVM, "DaVinci DM646x EVM") MACHINE_START(DAVINCI_DM6467_EVM, "DaVinci DM646x EVM")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = davinci_map_io, .map_io = davinci_map_io,
.init_irq = davinci_irq_init, .init_irq = dm646x_init_irq,
.init_time = dm646x_evm_init_time, .init_time = dm646x_evm_init_time,
.init_machine = evm_init, .init_machine = evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
...@@ -870,7 +870,7 @@ MACHINE_END ...@@ -870,7 +870,7 @@ MACHINE_END
MACHINE_START(DAVINCI_DM6467TEVM, "DaVinci DM6467T EVM") MACHINE_START(DAVINCI_DM6467TEVM, "DaVinci DM6467T EVM")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = davinci_map_io, .map_io = davinci_map_io,
.init_irq = davinci_irq_init, .init_irq = dm646x_init_irq,
.init_time = dm6467t_evm_init_time, .init_time = dm6467t_evm_init_time,
.init_machine = evm_init, .init_machine = evm_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -231,7 +231,7 @@ MACHINE_START(NEUROS_OSD2, "Neuros OSD2") ...@@ -231,7 +231,7 @@ MACHINE_START(NEUROS_OSD2, "Neuros OSD2")
/* Maintainer: Neuros Technologies <neuros@groups.google.com> */ /* Maintainer: Neuros Technologies <neuros@groups.google.com> */
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = davinci_ntosd2_map_io, .map_io = davinci_ntosd2_map_io,
.init_irq = davinci_irq_init, .init_irq = dm644x_init_irq,
.init_time = dm644x_init_time, .init_time = dm644x_init_time,
.init_machine = davinci_ntosd2_init, .init_machine = davinci_ntosd2_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -152,7 +152,7 @@ static __init void davinci_sffsdr_init(void) ...@@ -152,7 +152,7 @@ static __init void davinci_sffsdr_init(void)
MACHINE_START(SFFSDR, "Lyrtech SFFSDR") MACHINE_START(SFFSDR, "Lyrtech SFFSDR")
.atag_offset = 0x100, .atag_offset = 0x100,
.map_io = davinci_sffsdr_map_io, .map_io = davinci_sffsdr_map_io,
.init_irq = davinci_irq_init, .init_irq = dm644x_init_irq,
.init_time = dm644x_init_time, .init_time = dm644x_init_time,
.init_machine = davinci_sffsdr_init, .init_machine = davinci_sffsdr_init,
.init_late = davinci_init_late, .init_late = davinci_init_late,
......
...@@ -88,6 +88,7 @@ int davinci_init_wdt(void); ...@@ -88,6 +88,7 @@ int davinci_init_wdt(void);
/* DM355 function declarations */ /* DM355 function declarations */
void dm355_init(void); void dm355_init(void);
void dm355_init_time(void); void dm355_init_time(void);
void dm355_init_irq(void);
void dm355_register_clocks(void); void dm355_register_clocks(void);
void dm355_init_spi0(unsigned chipselect_mask, void dm355_init_spi0(unsigned chipselect_mask,
const struct spi_board_info *info, unsigned len); const struct spi_board_info *info, unsigned len);
...@@ -97,6 +98,7 @@ int dm355_gpio_register(void); ...@@ -97,6 +98,7 @@ int dm355_gpio_register(void);
/* DM365 function declarations */ /* DM365 function declarations */
void dm365_init(void); void dm365_init(void);
void dm365_init_irq(void);
void dm365_init_time(void); void dm365_init_time(void);
void dm365_register_clocks(void); void dm365_register_clocks(void);
void dm365_init_asp(void); void dm365_init_asp(void);
...@@ -110,6 +112,7 @@ int dm365_gpio_register(void); ...@@ -110,6 +112,7 @@ int dm365_gpio_register(void);
/* DM644x function declarations */ /* DM644x function declarations */
void dm644x_init(void); void dm644x_init(void);
void dm644x_init_irq(void);
void dm644x_init_devices(void); void dm644x_init_devices(void);
void dm644x_init_time(void); void dm644x_init_time(void);
void dm644x_register_clocks(void); void dm644x_register_clocks(void);
...@@ -119,6 +122,7 @@ int dm644x_gpio_register(void); ...@@ -119,6 +122,7 @@ int dm644x_gpio_register(void);
/* DM646x function declarations */ /* DM646x function declarations */
void dm646x_init(void); void dm646x_init(void);
void dm646x_init_irq(void);
void dm646x_init_time(unsigned long ref_clk_rate, unsigned long aux_clkin_rate); void dm646x_init_time(unsigned long ref_clk_rate, unsigned long aux_clkin_rate);
void dm646x_register_clocks(void); void dm646x_register_clocks(void);
void dm646x_init_mcasp0(struct snd_platform_data *pdata); void dm646x_init_mcasp0(struct snd_platform_data *pdata);
......
...@@ -792,6 +792,11 @@ int __init dm355_init_video(struct vpfe_config *vpfe_cfg, ...@@ -792,6 +792,11 @@ int __init dm355_init_video(struct vpfe_config *vpfe_cfg,
return 0; return 0;
} }
void __init dm355_init_irq(void)
{
davinci_irq_init();
}
static int __init dm355_init_devices(void) static int __init dm355_init_devices(void)
{ {
struct platform_device *edma_pdev; struct platform_device *edma_pdev;
......
...@@ -1051,6 +1051,11 @@ int __init dm365_init_video(struct vpfe_config *vpfe_cfg, ...@@ -1051,6 +1051,11 @@ int __init dm365_init_video(struct vpfe_config *vpfe_cfg,
return 0; return 0;
} }
void __init dm365_init_irq(void)
{
davinci_irq_init();
}
static int __init dm365_init_devices(void) static int __init dm365_init_devices(void)
{ {
struct platform_device *edma_pdev; struct platform_device *edma_pdev;
......
...@@ -728,6 +728,11 @@ int __init dm644x_init_video(struct vpfe_config *vpfe_cfg, ...@@ -728,6 +728,11 @@ int __init dm644x_init_video(struct vpfe_config *vpfe_cfg,
return 0; return 0;
} }
void __init dm644x_init_irq(void)
{
davinci_irq_init();
}
void __init dm644x_init_devices(void) void __init dm644x_init_devices(void)
{ {
struct platform_device *edma_pdev; struct platform_device *edma_pdev;
......
...@@ -689,6 +689,11 @@ void __init dm646x_register_clocks(void) ...@@ -689,6 +689,11 @@ void __init dm646x_register_clocks(void)
platform_device_register(&dm646x_pll2_device); platform_device_register(&dm646x_pll2_device);
} }
void __init dm646x_init_irq(void)
{
davinci_irq_init();
}
static int __init dm646x_init_devices(void) static int __init dm646x_init_devices(void)
{ {
int ret = 0; int ret = 0;
......
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