Merge branch 'dt2' into cleanup3-base
[linux-2.6.git] / arch / arm / mach-shmobile / include / mach / r8a7779.h
blobf08d6ecf5d1dad38f09704a5f05931bfc833adf6
1 #ifndef __ASM_R8A7779_H__
2 #define __ASM_R8A7779_H__
4 #include <linux/sh_clk.h>
5 #include <linux/pm_domain.h>
6 #include <linux/sh_eth.h>
8 struct platform_device;
10 struct r8a7779_pm_ch {
11 unsigned long chan_offs;
12 unsigned int chan_bit;
13 unsigned int isr_bit;
16 struct r8a7779_pm_domain {
17 struct generic_pm_domain genpd;
18 struct r8a7779_pm_ch ch;
21 static inline struct r8a7779_pm_ch *to_r8a7779_ch(struct generic_pm_domain *d)
23 return &container_of(d, struct r8a7779_pm_domain, genpd)->ch;
26 extern void r8a7779_init_delay(void);
27 extern void r8a7779_init_irq_extpin(int irlm);
28 extern void r8a7779_init_irq_dt(void);
29 extern void r8a7779_map_io(void);
30 extern void r8a7779_earlytimer_init(void);
31 extern void r8a7779_add_early_devices(void);
32 extern void r8a7779_add_standard_devices(void);
33 extern void r8a7779_add_standard_devices_dt(void);
34 extern void r8a7779_add_ether_device(struct sh_eth_plat_data *pdata);
35 extern void r8a7779_init_late(void);
36 extern void r8a7779_clock_init(void);
37 extern void r8a7779_pinmux_init(void);
38 extern void r8a7779_pm_init(void);
39 extern void r8a7779_register_twd(void);
40 extern int r8a7779_sysc_power_down(struct r8a7779_pm_ch *r8a7779_ch);
41 extern int r8a7779_sysc_power_up(struct r8a7779_pm_ch *r8a7779_ch);
43 #ifdef CONFIG_PM
44 extern void __init r8a7779_init_pm_domains(void);
45 #else
46 static inline void r8a7779_init_pm_domains(void) {}
47 #endif /* CONFIG_PM */
49 extern struct smp_operations r8a7779_smp_ops;
51 #endif /* __ASM_R8A7779_H__ */