Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / arm / plat-orion / include / plat / common.h
bloba7fa005a5a0eb335e6b0267a090664a5a9d86ae7
1 /*
2 * arch/arm/plat-orion/include/plat/common.h
4 * Marvell Orion SoC common setup code used by different mach-/common.c
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
11 #ifndef __PLAT_COMMON_H
12 #include <linux/mv643xx_eth.h>
14 struct dsa_platform_data;
16 void __init orion_uart0_init(unsigned int membase,
17 resource_size_t mapbase,
18 unsigned int irq,
19 unsigned int uartclk);
21 void __init orion_uart1_init(unsigned int membase,
22 resource_size_t mapbase,
23 unsigned int irq,
24 unsigned int uartclk);
26 void __init orion_uart2_init(unsigned int membase,
27 resource_size_t mapbase,
28 unsigned int irq,
29 unsigned int uartclk);
31 void __init orion_uart3_init(unsigned int membase,
32 resource_size_t mapbase,
33 unsigned int irq,
34 unsigned int uartclk);
36 void __init orion_rtc_init(unsigned long mapbase,
37 unsigned long irq);
39 void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data,
40 unsigned long mapbase,
41 unsigned long irq,
42 unsigned long irq_err,
43 int tclk);
45 void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data,
46 unsigned long mapbase,
47 unsigned long irq,
48 unsigned long irq_err,
49 int tclk);
51 void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data,
52 unsigned long mapbase,
53 unsigned long irq,
54 unsigned long irq_err,
55 int tclk);
57 void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data,
58 unsigned long mapbase,
59 unsigned long irq,
60 unsigned long irq_err,
61 int tclk);
63 void __init orion_ge00_switch_init(struct dsa_platform_data *d,
64 int irq);
65 void __init orion_i2c_init(unsigned long mapbase,
66 unsigned long irq,
67 unsigned long freq_m);
69 void __init orion_i2c_1_init(unsigned long mapbase,
70 unsigned long irq,
71 unsigned long freq_m);
73 void __init orion_spi_init(unsigned long mapbase,
74 unsigned long tclk);
76 void __init orion_spi_1_init(unsigned long mapbase,
77 unsigned long tclk);
79 void __init orion_wdt_init(unsigned long tclk);
81 void __init orion_xor0_init(unsigned long mapbase_low,
82 unsigned long mapbase_high,
83 unsigned long irq_0,
84 unsigned long irq_1);
86 void __init orion_xor1_init(unsigned long mapbase_low,
87 unsigned long mapbase_high,
88 unsigned long irq_0,
89 unsigned long irq_1);
91 void __init orion_ehci_init(unsigned long mapbase,
92 unsigned long irq,
93 enum orion_ehci_phy_ver phy_version);
95 void __init orion_ehci_1_init(unsigned long mapbase,
96 unsigned long irq);
98 void __init orion_ehci_2_init(unsigned long mapbase,
99 unsigned long irq);
101 void __init orion_sata_init(struct mv_sata_platform_data *sata_data,
102 unsigned long mapbase,
103 unsigned long irq);
105 void __init orion_crypto_init(unsigned long mapbase,
106 unsigned long srambase,
107 unsigned long sram_size,
108 unsigned long irq);
109 #endif