mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
98abaf1370
* Use shmobile_init_late on r8a7791 and r8a7790 whien booting using DT-only * Support Core-Standby for Suspend to RAM on r8a7791 and r8a7790 SoCs * Shared CMA reservation for R-Car Gen2 SoCs * Add r8a7791 SYSC power management support -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJTqnn+AAoJENfPZGlqN0++SZIP/jn48ADVugeEANLibUl10IBb hWKh80Fr4/ELaXd0KJTa8SDzLW/JB3rr29bwBhkRWIcsMIeWObI2wJEnSVX2yZkO ZBijr9FbdmhQ5VmkXEqjUqYkGKx/0IGHMFQ8R6Io3tiwpLXFdz2+moT8cu3Rl4TP WNvP+xEPjvPUb/7PygXg2Ypdq5jmV4j24LUCJj+yo3ULP2zv92d620CuWT3P0zbv 5PRP3SvbzgwYHhINFF8e4StYsjrl++V+w5pjdm3XDcVNkDoc6p/e8Jqse6wjAYY+ 2ShUXhfg7/D56BlEChHb6xwlJmImO81x1NrB5zM69vpvGGQ9fW1XwDAtrFzocDag vDDp4KIY8TD/T6E6KhEpOdW1GSWYukJ2PBqsgxuYaY8eBO7HDPbG5klj8VEfACgu ZeY0F2Uq/wb1mJNh32s1FIaWQPGAGPY5Yi77ShHbo3xKQBlqtY2M3Snw8hYLUKgS tDowT94fWAdXXlFCtvOUMyPEa5+hqZ68PlYFU7Z0jvYcaUm9Ui/EEgo7YqdBWh9e CVN1fG5SvV8HY5h81GqvC87B45EzALqMG28rhv4e0rSP9PxHuIGWd/m22ea+aV8G eDKinQ0+EXeyG6BKjbx63s3zGiv60gNcj8anG7Kd6UNpyLnRGewWJkIpSonmqO9R TQNXLY08LHnONq/gw5Xc =6J6K -----END PGP SIGNATURE----- Merge tag 'renesas-soc-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/soc Merge "Renesas ARM Based SoC Updates for v3.17" from Simon Horman: - Use shmobile_init_late on r8a7791 and r8a7790 whien booting using DT-only - Support Core-Standby for Suspend to RAM on r8a7791 and r8a7790 SoCs - Shared CMA reservation for R-Car Gen2 SoCs - Add r8a7791 SYSC power management support * tag 'renesas-soc-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: ARM: shmobile: Remove ARCH_HAS_CPUFREQ config for shmobile ARM: shmobile: rcar-gen2: update call to dma_contiguous_reserve_area ARM: shmobile: rcar-gen2: correct return value of shmobile_smp_apmu_suspend_init ARM: shmobile: rcar-gen2: Remove useless copied section for LongTrail ARM: shmobile: rcar-gen2: Use "1ULL" instead of "(u64)1" ARM: shmobile: rcar-gen2: Update for of_get_flat_dt_prop() update ARM: shmobile: Add shared R-Car Gen2 CMA reservation code ARM: shmobile: Use shmobile_init_late() on r8a7791 DT-only ARM: shmobile: Use shmobile_init_late() on r8a7790 DT-only ARM: shmobile: Mark all SoCs in shmobile as CPUFreq, capable ARM: shmobile: r8a7791: Support Core-Standby for Suspend to RAM ARM: shmobile: r8a7790: Support Core-Standby for Suspend to RAM ARM: shmobile: APMU: Add Core-Standby-state for Suspend to RAM ARM: shmobile: r8a7791 SYSC setup code Signed-off-by: Olof Johansson <olof@lixom.net>
66 lines
2.1 KiB
C
66 lines
2.1 KiB
C
#ifndef __ARCH_MACH_COMMON_H
|
|
#define __ARCH_MACH_COMMON_H
|
|
|
|
extern void shmobile_earlytimer_init(void);
|
|
extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
|
|
unsigned int mult, unsigned int div);
|
|
extern void shmobile_init_delay(void);
|
|
struct twd_local_timer;
|
|
extern void shmobile_setup_console(void);
|
|
extern void shmobile_boot_vector(void);
|
|
extern unsigned long shmobile_boot_fn;
|
|
extern unsigned long shmobile_boot_arg;
|
|
extern unsigned long shmobile_boot_size;
|
|
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);
|
|
extern int shmobile_smp_cpu_disable(unsigned int cpu);
|
|
extern void shmobile_invalidate_start(void);
|
|
extern void shmobile_boot_scu(void);
|
|
extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
|
|
extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
|
|
extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
|
|
extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus);
|
|
extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu,
|
|
struct task_struct *idle);
|
|
extern void shmobile_smp_apmu_cpu_die(unsigned int cpu);
|
|
extern int shmobile_smp_apmu_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_set_driver(struct cpuidle_driver *drv);
|
|
|
|
#ifdef CONFIG_SUSPEND
|
|
int shmobile_suspend_init(void);
|
|
void shmobile_smp_apmu_suspend_init(void);
|
|
#else
|
|
static inline int shmobile_suspend_init(void) { return 0; }
|
|
static inline void shmobile_smp_apmu_suspend_init(void) { }
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_IDLE
|
|
int shmobile_cpuidle_init(void);
|
|
#else
|
|
static inline int shmobile_cpuidle_init(void) { return 0; }
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_FREQ
|
|
int shmobile_cpufreq_init(void);
|
|
#else
|
|
static inline int shmobile_cpufreq_init(void) { return 0; }
|
|
#endif
|
|
|
|
extern void __iomem *shmobile_scu_base;
|
|
|
|
static inline void __init shmobile_init_late(void)
|
|
{
|
|
shmobile_suspend_init();
|
|
shmobile_cpuidle_init();
|
|
shmobile_cpufreq_init();
|
|
}
|
|
|
|
#endif /* __ARCH_MACH_COMMON_H */
|