common.h 1.2 KB
Newer Older
1 2 3
#ifndef __ARCH_MACH_COMMON_H
#define __ARCH_MACH_COMMON_H

4
extern void shmobile_init_delay(void);
5 6
extern void shmobile_boot_vector(void);
extern unsigned long shmobile_boot_fn;
7
extern unsigned long shmobile_boot_size;
8 9 10 11
extern void shmobile_smp_boot(void);
extern void shmobile_smp_sleep(void);
extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
			      unsigned long arg);
12
extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
13
extern void shmobile_boot_scu(void);
14 15
extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys,
					  unsigned int max_cpus);
16 17
extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
18
extern struct platform_suspend_ops shmobile_suspend_ops;
19

20 21
#ifdef CONFIG_SUSPEND
int shmobile_suspend_init(void);
22
void shmobile_smp_apmu_suspend_init(void);
23 24
#else
static inline int shmobile_suspend_init(void) { return 0; }
25
static inline void shmobile_smp_apmu_suspend_init(void) { }
26 27
#endif

28 29 30 31 32 33
#ifdef CONFIG_CPU_FREQ
int shmobile_cpufreq_init(void);
#else
static inline int shmobile_cpufreq_init(void) { return 0; }
#endif

34
static inline void __init shmobile_init_late(void)
35 36
{
	shmobile_suspend_init();
37
	shmobile_cpufreq_init();
38 39
}

40
#endif /* __ARCH_MACH_COMMON_H */