2011-12-14 00:36:12 +08:00
|
|
|
#ifndef __ASM_R8A7779_H__
|
|
|
|
#define __ASM_R8A7779_H__
|
|
|
|
|
2012-01-10 14:50:01 +08:00
|
|
|
#include <linux/sh_clk.h>
|
|
|
|
#include <linux/pm_domain.h>
|
2013-04-05 02:53:50 +08:00
|
|
|
#include <linux/sh_eth.h>
|
2013-08-23 04:23:13 +08:00
|
|
|
#include <linux/platform_data/camera-rcar.h>
|
2012-01-10 14:50:01 +08:00
|
|
|
|
2013-08-26 01:46:23 +08:00
|
|
|
/* HPB-DMA slave IDs */
|
|
|
|
enum {
|
|
|
|
HPBDMA_SLAVE_DUMMY,
|
|
|
|
HPBDMA_SLAVE_SDHI0_TX,
|
|
|
|
HPBDMA_SLAVE_SDHI0_RX,
|
|
|
|
};
|
|
|
|
|
2012-01-10 14:50:01 +08:00
|
|
|
struct platform_device;
|
|
|
|
|
|
|
|
struct r8a7779_pm_ch {
|
|
|
|
unsigned long chan_offs;
|
|
|
|
unsigned int chan_bit;
|
|
|
|
unsigned int isr_bit;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct r8a7779_pm_domain {
|
|
|
|
struct generic_pm_domain genpd;
|
|
|
|
struct r8a7779_pm_ch ch;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct r8a7779_pm_ch *to_r8a7779_ch(struct generic_pm_domain *d)
|
|
|
|
{
|
|
|
|
return &container_of(d, struct r8a7779_pm_domain, genpd)->ch;
|
|
|
|
}
|
|
|
|
|
2013-03-28 16:49:27 +08:00
|
|
|
extern void r8a7779_init_delay(void);
|
|
|
|
extern void r8a7779_init_irq_extpin(int irlm);
|
2013-10-02 16:38:23 +08:00
|
|
|
extern void r8a7779_init_irq_extpin_dt(int irlm);
|
2013-03-28 16:49:27 +08:00
|
|
|
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);
|
2013-04-05 02:53:50 +08:00
|
|
|
extern void r8a7779_add_ether_device(struct sh_eth_plat_data *pdata);
|
2013-08-23 04:23:13 +08:00
|
|
|
extern void r8a7779_add_vin_device(int idx,
|
|
|
|
struct rcar_vin_platform_data *pdata);
|
2013-06-02 05:30:15 +08:00
|
|
|
extern void r8a7779_init_late(void);
|
2013-03-28 16:49:27 +08:00
|
|
|
extern void r8a7779_clock_init(void);
|
|
|
|
extern void r8a7779_pinmux_init(void);
|
|
|
|
extern void r8a7779_pm_init(void);
|
|
|
|
extern void r8a7779_register_twd(void);
|
2012-01-10 16:44:39 +08:00
|
|
|
extern int r8a7779_sysc_power_down(struct r8a7779_pm_ch *r8a7779_ch);
|
|
|
|
extern int r8a7779_sysc_power_up(struct r8a7779_pm_ch *r8a7779_ch);
|
|
|
|
|
2012-01-10 14:50:01 +08:00
|
|
|
#ifdef CONFIG_PM
|
2012-08-07 07:14:14 +08:00
|
|
|
extern void __init r8a7779_init_pm_domains(void);
|
2012-01-10 14:50:01 +08:00
|
|
|
#else
|
2012-08-07 07:14:14 +08:00
|
|
|
static inline void r8a7779_init_pm_domains(void) {}
|
2012-01-10 14:50:01 +08:00
|
|
|
#endif /* CONFIG_PM */
|
|
|
|
|
2011-09-08 20:15:22 +08:00
|
|
|
extern struct smp_operations r8a7779_smp_ops;
|
|
|
|
|
2011-12-14 00:36:12 +08:00
|
|
|
#endif /* __ASM_R8A7779_H__ */
|