Kuninori Morimoto | 6c01ba4 | 2011-11-10 18:45:52 -0800 | [diff] [blame] | 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. |
Kuninori Morimoto | 6c01ba4 | 2011-11-10 18:45:52 -0800 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef __ASM_R8A7740_H__ |
| 16 | #define __ASM_R8A7740_H__ |
| 17 | |
| 18 | /* |
| 19 | * MD_CKx pin |
| 20 | */ |
| 21 | #define MD_CK2 (1 << 2) |
| 22 | #define MD_CK1 (1 << 1) |
| 23 | #define MD_CK0 (1 << 0) |
| 24 | |
Kuninori Morimoto | 643c330 | 2012-06-25 03:36:49 -0700 | [diff] [blame] | 25 | /* DMA slave IDs */ |
| 26 | enum { |
| 27 | SHDMA_SLAVE_INVALID, |
Kuninori Morimoto | cb76eb8 | 2012-06-25 03:37:00 -0700 | [diff] [blame] | 28 | SHDMA_SLAVE_SDHI0_RX, |
| 29 | SHDMA_SLAVE_SDHI0_TX, |
| 30 | SHDMA_SLAVE_SDHI1_RX, |
| 31 | SHDMA_SLAVE_SDHI1_TX, |
| 32 | SHDMA_SLAVE_SDHI2_RX, |
| 33 | SHDMA_SLAVE_SDHI2_TX, |
Kuninori Morimoto | 643c330 | 2012-06-25 03:36:49 -0700 | [diff] [blame] | 34 | SHDMA_SLAVE_FSIA_RX, |
| 35 | SHDMA_SLAVE_FSIA_TX, |
| 36 | SHDMA_SLAVE_FSIB_TX, |
Kuninori Morimoto | dbf382e | 2012-06-25 03:37:10 -0700 | [diff] [blame] | 37 | SHDMA_SLAVE_USBHS_TX, |
| 38 | SHDMA_SLAVE_USBHS_RX, |
Guennadi Liakhovetski | 9a14562 | 2013-06-26 16:40:53 +0200 | [diff] [blame] | 39 | SHDMA_SLAVE_MMCIF_TX, |
| 40 | SHDMA_SLAVE_MMCIF_RX, |
Kuninori Morimoto | 643c330 | 2012-06-25 03:36:49 -0700 | [diff] [blame] | 41 | }; |
| 42 | |
Kuninori Morimoto | f96c764 | 2013-03-28 01:49:15 -0700 | [diff] [blame] | 43 | extern void r8a7740_meram_workaround(void); |
Bastian Hecht | f9b4df4 | 2013-04-17 12:34:04 +0200 | [diff] [blame] | 44 | extern void r8a7740_init_irq_of(void); |
Kuninori Morimoto | f96c764 | 2013-03-28 01:49:15 -0700 | [diff] [blame] | 45 | extern void r8a7740_map_io(void); |
| 46 | extern void r8a7740_add_early_devices(void); |
| 47 | extern void r8a7740_add_standard_devices(void); |
| 48 | extern void r8a7740_clock_init(u8 md_ck); |
| 49 | extern void r8a7740_pinmux_init(void); |
| 50 | extern void r8a7740_pm_init(void); |
| 51 | |
Magnus Damm | c41215b | 2014-08-25 12:36:53 +0900 | [diff] [blame] | 52 | #if defined(CONFIG_PM) && !defined(CONFIG_ARCH_MULTIPLATFORM) |
Rafael J. Wysocki | 7b56740 | 2012-08-07 01:13:37 +0200 | [diff] [blame] | 53 | extern void __init r8a7740_init_pm_domains(void); |
| 54 | #else |
| 55 | static inline void r8a7740_init_pm_domains(void) {} |
Magnus Damm | c41215b | 2014-08-25 12:36:53 +0900 | [diff] [blame] | 56 | #endif /* CONFIG_PM && !CONFIG_ARCH_MULTIPLATFORM */ |
Kuninori Morimoto | 8459293 | 2012-07-05 01:25:58 -0700 | [diff] [blame] | 57 | |
Kuninori Morimoto | 6c01ba4 | 2011-11-10 18:45:52 -0800 | [diff] [blame] | 58 | #endif /* __ASM_R8A7740_H__ */ |