Merge tag 'dt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-2.6.git] / arch / arm / mach-shmobile / include / mach / r8a7740.h
blobb34d19b5ca5c582bc50f22727122cba93fa766bf
1 /*
2 * Copyright (C) 2011 Renesas Solutions Corp.
3 * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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.
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.
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
19 #ifndef __ASM_R8A7740_H__
20 #define __ASM_R8A7740_H__
22 #include <mach/pm-rmobile.h>
25 * MD_CKx pin
27 #define MD_CK2 (1 << 2)
28 #define MD_CK1 (1 << 1)
29 #define MD_CK0 (1 << 0)
31 /* DMA slave IDs */
32 enum {
33 SHDMA_SLAVE_INVALID,
34 SHDMA_SLAVE_SDHI0_RX,
35 SHDMA_SLAVE_SDHI0_TX,
36 SHDMA_SLAVE_SDHI1_RX,
37 SHDMA_SLAVE_SDHI1_TX,
38 SHDMA_SLAVE_SDHI2_RX,
39 SHDMA_SLAVE_SDHI2_TX,
40 SHDMA_SLAVE_FSIA_RX,
41 SHDMA_SLAVE_FSIA_TX,
42 SHDMA_SLAVE_FSIB_TX,
43 SHDMA_SLAVE_USBHS_TX,
44 SHDMA_SLAVE_USBHS_RX,
47 extern void r8a7740_meram_workaround(void);
48 extern void r8a7740_init_delay(void);
49 extern void r8a7740_init_irq(void);
50 extern void r8a7740_init_irq_of(void);
51 extern void r8a7740_map_io(void);
52 extern void r8a7740_add_early_devices(void);
53 extern void r8a7740_add_standard_devices(void);
54 extern void r8a7740_add_standard_devices_dt(void);
55 extern void r8a7740_clock_init(u8 md_ck);
56 extern void r8a7740_pinmux_init(void);
57 extern void r8a7740_pm_init(void);
59 #ifdef CONFIG_PM
60 extern void __init r8a7740_init_pm_domains(void);
61 #else
62 static inline void r8a7740_init_pm_domains(void) {}
63 #endif /* CONFIG_PM */
65 #endif /* __ASM_R8A7740_H__ */