forked from Minki/linux
f465d145d7
This is a patch series from Shawn Guo that moves from individual late_initcalls() to using a member in the machine structure to invoke a platform's late initcalls. This cleanup is a step in the move towards multiplatform kernels since it would reduce the need to check for compatible platforms in each and every initcall. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJPwHYJAAoJEIwa5zzehBx3PugP/2Wd6HN030iO5EhFBcBcrh5T WaJ4KfzK3tWev5QA3idvenVNhk5My1HQ+PLij7BLpjNqKCKlNK0k/K9wMI5X827T wkFFprdUcoMVrB1ZCjzwCk4/uTGWB5BMxoZ6mlBh1sZIR/yXo91t+wO971Uqr0ho Ky1oW9uaPZ6Eja00iDLkfJfygquA5+zNb0a29q19zWnHlRkH76jtqZgfDKy9I2nq virYZ4uhoPnY2g1JxhnaMNNC861CgfTDEtmtNjgeEbA6t9bbjqsZoQRhcYHZP4OM a4Iu8FOyIvAAzQzUglfAZ4Ar4uYTmVRnG39XFh4wK/8tJYt0hEQwFS26B0pYKx/5 F76bwc4SqO7H9AWBF0WhyUbny5XmJcNwJjobm/oCeAvemTi3xA6BbubyfKMHPoIr dDSEqcAcMt9G6sS48h3Pm0caEYDVzxf202vdylz1JABiJZi1W/7v+NMdhujfotJh 7IGehNRu0foPEsRIS9wsvD2TzSdQtDdjyFkGHd83XMc3JpvwmyePO6ynbbxrVnJJ HzlPnbLIk3VyqyVCqVXj21NKEY1dbsYPItketAwwzc1BUGcld0qvQY/t/UI4JQT6 9vq77AwNjUhfomDdEWTp7aNx0whkY0R5KEY9jHjuu9WoE+xdPZbQKm589AJ6LA4U j6HPMzWKUHOKT6g10rCl =21h6 -----END PGP SIGNATURE----- Merge tag 'cleanup-initcall' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc Pull sweeping late_initcall cleanup for arm-soc from Olof Johansson: "This is a patch series from Shawn Guo that moves from individual late_initcalls() to using a member in the machine structure to invoke a platform's late initcalls. This cleanup is a step in the move towards multiplatform kernels since it would reduce the need to check for compatible platforms in each and every initcall." Fix up trivial conflicts in arch/arm/mach-{exynos/mach-universal_c210.c, imx/mach-cpuimx51.c, omap2/board-generic.c} due to changes nearby (and, in the case of cpuimx51.c the board support being deleted) * tag 'cleanup-initcall' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ARM: ux500: use machine specific hook for late init ARM: tegra: use machine specific hook for late init ARM: shmobile: use machine specific hook for late init ARM: sa1100: use machine specific hook for late init ARM: s3c64xx: use machine specific hook for late init ARM: prima2: use machine specific hook for late init ARM: pnx4008: use machine specific hook for late init ARM: omap2: use machine specific hook for late init ARM: omap1: use machine specific hook for late init ARM: msm: use machine specific hook for late init ARM: imx: use machine specific hook for late init ARM: exynos: use machine specific hook for late init ARM: ep93xx: use machine specific hook for late init ARM: davinci: use machine specific hook for late init ARM: provide a late_initcall hook for platform initialization
103 lines
3.4 KiB
C
103 lines
3.4 KiB
C
#ifndef __ARCH_MACH_COMMON_H
|
|
#define __ARCH_MACH_COMMON_H
|
|
|
|
extern void shmobile_earlytimer_init(void);
|
|
extern struct sys_timer shmobile_timer;
|
|
extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
|
|
unsigned int mult, unsigned int div);
|
|
struct twd_local_timer;
|
|
extern void shmobile_setup_console(void);
|
|
extern void shmobile_secondary_vector(void);
|
|
extern int shmobile_platform_cpu_kill(unsigned int cpu);
|
|
struct clk;
|
|
extern int shmobile_clk_init(void);
|
|
extern void shmobile_handle_irq_intc(struct pt_regs *);
|
|
extern struct platform_suspend_ops shmobile_suspend_ops;
|
|
struct cpuidle_driver;
|
|
extern void (*shmobile_cpuidle_modes[])(void);
|
|
extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv);
|
|
|
|
extern void sh7367_init_irq(void);
|
|
extern void sh7367_map_io(void);
|
|
extern void sh7367_add_early_devices(void);
|
|
extern void sh7367_add_standard_devices(void);
|
|
extern void sh7367_clock_init(void);
|
|
extern void sh7367_pinmux_init(void);
|
|
extern struct clk sh7367_extalb1_clk;
|
|
extern struct clk sh7367_extal2_clk;
|
|
|
|
extern void sh7377_init_irq(void);
|
|
extern void sh7377_map_io(void);
|
|
extern void sh7377_add_early_devices(void);
|
|
extern void sh7377_add_standard_devices(void);
|
|
extern void sh7377_clock_init(void);
|
|
extern void sh7377_pinmux_init(void);
|
|
extern struct clk sh7377_extalc1_clk;
|
|
extern struct clk sh7377_extal2_clk;
|
|
|
|
extern void sh7372_init_irq(void);
|
|
extern void sh7372_map_io(void);
|
|
extern void sh7372_add_early_devices(void);
|
|
extern void sh7372_add_standard_devices(void);
|
|
extern void sh7372_clock_init(void);
|
|
extern void sh7372_pinmux_init(void);
|
|
extern void sh7372_pm_init(void);
|
|
extern void sh7372_resume_core_standby_sysc(void);
|
|
extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
|
|
extern struct clk sh7372_extal1_clk;
|
|
extern struct clk sh7372_extal2_clk;
|
|
|
|
extern void sh73a0_init_irq(void);
|
|
extern void sh73a0_map_io(void);
|
|
extern void sh73a0_add_early_devices(void);
|
|
extern void sh73a0_add_standard_devices(void);
|
|
extern void sh73a0_clock_init(void);
|
|
extern void sh73a0_pinmux_init(void);
|
|
extern struct clk sh73a0_extal1_clk;
|
|
extern struct clk sh73a0_extal2_clk;
|
|
extern struct clk sh73a0_extcki_clk;
|
|
extern struct clk sh73a0_extalr_clk;
|
|
|
|
extern unsigned int sh73a0_get_core_count(void);
|
|
extern void sh73a0_secondary_init(unsigned int cpu);
|
|
extern int sh73a0_boot_secondary(unsigned int cpu);
|
|
extern void sh73a0_smp_prepare_cpus(void);
|
|
|
|
extern void r8a7740_init_irq(void);
|
|
extern void r8a7740_map_io(void);
|
|
extern void r8a7740_add_early_devices(void);
|
|
extern void r8a7740_add_standard_devices(void);
|
|
extern void r8a7740_clock_init(u8 md_ck);
|
|
extern void r8a7740_pinmux_init(void);
|
|
|
|
extern void r8a7779_init_irq(void);
|
|
extern void r8a7779_map_io(void);
|
|
extern void r8a7779_add_early_devices(void);
|
|
extern void r8a7779_add_standard_devices(void);
|
|
extern void r8a7779_clock_init(void);
|
|
extern void r8a7779_pinmux_init(void);
|
|
extern void r8a7779_pm_init(void);
|
|
|
|
extern unsigned int r8a7779_get_core_count(void);
|
|
extern int r8a7779_platform_cpu_kill(unsigned int cpu);
|
|
extern void r8a7779_secondary_init(unsigned int cpu);
|
|
extern int r8a7779_boot_secondary(unsigned int cpu);
|
|
extern void r8a7779_smp_prepare_cpus(void);
|
|
extern void r8a7779_register_twd(void);
|
|
|
|
extern void shmobile_init_late(void);
|
|
|
|
#ifdef CONFIG_SUSPEND
|
|
int shmobile_suspend_init(void);
|
|
#else
|
|
static inline int shmobile_suspend_init(void) { return 0; }
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_IDLE
|
|
int shmobile_cpuidle_init(void);
|
|
#else
|
|
static inline int shmobile_cpuidle_init(void) { return 0; }
|
|
#endif
|
|
|
|
#endif /* __ARCH_MACH_COMMON_H */
|