aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/r8a7740.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/r8a7740.h')
-rw-r--r--arch/arm/mach-shmobile/r8a7740.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/r8a7740.h b/arch/arm/mach-shmobile/r8a7740.h
new file mode 100644
index 000000000000..1d1a5fd78b6b
--- /dev/null
+++ b/arch/arm/mach-shmobile/r8a7740.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2011 Renesas Solutions Corp.
3 * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef __ASM_R8A7740_H__
20#define __ASM_R8A7740_H__
21
22/*
23 * MD_CKx pin
24 */
25#define MD_CK2 (1 << 2)
26#define MD_CK1 (1 << 1)
27#define MD_CK0 (1 << 0)
28
29/* DMA slave IDs */
30enum {
31 SHDMA_SLAVE_INVALID,
32 SHDMA_SLAVE_SDHI0_RX,
33 SHDMA_SLAVE_SDHI0_TX,
34 SHDMA_SLAVE_SDHI1_RX,
35 SHDMA_SLAVE_SDHI1_TX,
36 SHDMA_SLAVE_SDHI2_RX,
37 SHDMA_SLAVE_SDHI2_TX,
38 SHDMA_SLAVE_FSIA_RX,
39 SHDMA_SLAVE_FSIA_TX,
40 SHDMA_SLAVE_FSIB_TX,
41 SHDMA_SLAVE_USBHS_TX,
42 SHDMA_SLAVE_USBHS_RX,
43 SHDMA_SLAVE_MMCIF_TX,
44 SHDMA_SLAVE_MMCIF_RX,
45};
46
47extern void r8a7740_meram_workaround(void);
48extern void r8a7740_init_irq_of(void);
49extern void r8a7740_map_io(void);
50extern void r8a7740_add_early_devices(void);
51extern void r8a7740_add_standard_devices(void);
52extern void r8a7740_add_standard_devices_dt(void);
53extern void r8a7740_clock_init(u8 md_ck);
54extern void r8a7740_pinmux_init(void);
55extern void r8a7740_pm_init(void);
56
57#ifdef CONFIG_PM
58extern void __init r8a7740_init_pm_domains(void);
59#else
60static inline void r8a7740_init_pm_domains(void) {}
61#endif /* CONFIG_PM */
62
63#endif /* __ASM_R8A7740_H__ */