![Magnus Damm](/assets/img/avatar_default.png)
Break out the R-Car SYSC power management code from the r8a7779 SoC code. With this new shared R-Car SYSC code base it is possible to hook in Generation 2 SoCs as well. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
#ifndef __ASM_R8A7779_H__
|
|
#define __ASM_R8A7779_H__
|
|
|
|
#include <linux/sh_clk.h>
|
|
#include <linux/pm_domain.h>
|
|
#include <mach/pm-rcar.h>
|
|
|
|
/* HPB-DMA slave IDs */
|
|
enum {
|
|
HPBDMA_SLAVE_DUMMY,
|
|
HPBDMA_SLAVE_SDHI0_TX,
|
|
HPBDMA_SLAVE_SDHI0_RX,
|
|
};
|
|
|
|
struct r8a7779_pm_domain {
|
|
struct generic_pm_domain genpd;
|
|
struct rcar_sysc_ch ch;
|
|
};
|
|
|
|
static inline struct rcar_sysc_ch *to_r8a7779_ch(struct generic_pm_domain *d)
|
|
{
|
|
return &container_of(d, struct r8a7779_pm_domain, genpd)->ch;
|
|
}
|
|
|
|
extern void r8a7779_init_delay(void);
|
|
extern void r8a7779_init_irq_extpin(int irlm);
|
|
extern void r8a7779_init_irq_extpin_dt(int irlm);
|
|
extern void r8a7779_init_irq_dt(void);
|
|
extern void r8a7779_map_io(void);
|
|
extern void r8a7779_earlytimer_init(void);
|
|
extern void r8a7779_add_early_devices(void);
|
|
extern void r8a7779_add_standard_devices(void);
|
|
extern void r8a7779_add_standard_devices_dt(void);
|
|
extern void r8a7779_init_late(void);
|
|
extern void r8a7779_clock_init(void);
|
|
extern void r8a7779_pinmux_init(void);
|
|
extern void r8a7779_pm_init(void);
|
|
extern void r8a7779_register_twd(void);
|
|
|
|
#ifdef CONFIG_PM
|
|
extern void __init r8a7779_init_pm_domains(void);
|
|
#else
|
|
static inline void r8a7779_init_pm_domains(void) {}
|
|
#endif /* CONFIG_PM */
|
|
|
|
extern struct smp_operations r8a7779_smp_ops;
|
|
|
|
#endif /* __ASM_R8A7779_H__ */
|