• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 Renesas Solutions Corp.
3  *
4  * Kuninori Morimoto <morimoto.kuninori@renesas.com>
5  *
6  * This file is subject to the terms and conditions of the GNU General Public
7  * License.  See the file "COPYING" in the main directory of this archive
8  * for more details.
9  */
10 
11 #ifndef __ASM_SH7372_H__
12 #define __ASM_SH7372_H__
13 
14 /* DMA slave IDs */
15 enum {
16 	SHDMA_SLAVE_INVALID,
17 	SHDMA_SLAVE_SCIF0_TX,
18 	SHDMA_SLAVE_SCIF0_RX,
19 	SHDMA_SLAVE_SCIF1_TX,
20 	SHDMA_SLAVE_SCIF1_RX,
21 	SHDMA_SLAVE_SCIF2_TX,
22 	SHDMA_SLAVE_SCIF2_RX,
23 	SHDMA_SLAVE_SCIF3_TX,
24 	SHDMA_SLAVE_SCIF3_RX,
25 	SHDMA_SLAVE_SCIF4_TX,
26 	SHDMA_SLAVE_SCIF4_RX,
27 	SHDMA_SLAVE_SCIF5_TX,
28 	SHDMA_SLAVE_SCIF5_RX,
29 	SHDMA_SLAVE_SCIF6_TX,
30 	SHDMA_SLAVE_SCIF6_RX,
31 	SHDMA_SLAVE_FLCTL0_TX,
32 	SHDMA_SLAVE_FLCTL0_RX,
33 	SHDMA_SLAVE_FLCTL1_TX,
34 	SHDMA_SLAVE_FLCTL1_RX,
35 	SHDMA_SLAVE_SDHI0_RX,
36 	SHDMA_SLAVE_SDHI0_TX,
37 	SHDMA_SLAVE_SDHI1_RX,
38 	SHDMA_SLAVE_SDHI1_TX,
39 	SHDMA_SLAVE_SDHI2_RX,
40 	SHDMA_SLAVE_SDHI2_TX,
41 	SHDMA_SLAVE_FSIA_RX,
42 	SHDMA_SLAVE_FSIA_TX,
43 	SHDMA_SLAVE_MMCIF_RX,
44 	SHDMA_SLAVE_MMCIF_TX,
45 	SHDMA_SLAVE_USB0_TX,
46 	SHDMA_SLAVE_USB0_RX,
47 	SHDMA_SLAVE_USB1_TX,
48 	SHDMA_SLAVE_USB1_RX,
49 };
50 
51 extern struct clk sh7372_extal1_clk;
52 extern struct clk sh7372_extal2_clk;
53 extern struct clk sh7372_dv_clki_clk;
54 extern struct clk sh7372_dv_clki_div2_clk;
55 extern struct clk sh7372_pllc2_clk;
56 
57 extern void sh7372_init_irq(void);
58 extern void sh7372_map_io(void);
59 extern void sh7372_earlytimer_init(void);
60 extern void sh7372_add_early_devices(void);
61 extern void sh7372_add_standard_devices(void);
62 extern void sh7372_add_early_devices_dt(void);
63 extern void sh7372_add_standard_devices_dt(void);
64 extern void sh7372_clock_init(void);
65 extern void sh7372_pinmux_init(void);
66 extern void sh7372_pm_init(void);
67 extern void sh7372_resume_core_standby_sysc(void);
68 extern int  sh7372_do_idle_sysc(unsigned long sleep_mode);
69 extern void sh7372_intcs_suspend(void);
70 extern void sh7372_intcs_resume(void);
71 extern void sh7372_intca_suspend(void);
72 extern void sh7372_intca_resume(void);
73 
74 extern unsigned long sh7372_cpu_resume;
75 
76 #ifdef CONFIG_PM
77 extern void __init sh7372_init_pm_domains(void);
78 #else
sh7372_init_pm_domains(void)79 static inline void sh7372_init_pm_domains(void) {}
80 #endif
81 
82 extern void __init sh7372_pm_init_late(void);
83 
84 #endif /* __ASM_SH7372_H__ */
85