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.
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
,
19 unsigned int uartclk
);
21 void __init
orion_uart1_init(unsigned int membase
,
22 resource_size_t mapbase
,
24 unsigned int uartclk
);
26 void __init
orion_uart2_init(unsigned int membase
,
27 resource_size_t mapbase
,
29 unsigned int uartclk
);
31 void __init
orion_uart3_init(unsigned int membase
,
32 resource_size_t mapbase
,
34 unsigned int uartclk
);
36 void __init
orion_rtc_init(unsigned long mapbase
,
39 void __init
orion_ge00_init(struct mv643xx_eth_platform_data
*eth_data
,
40 unsigned long mapbase
,
42 unsigned long irq_err
,
45 void __init
orion_ge01_init(struct mv643xx_eth_platform_data
*eth_data
,
46 unsigned long mapbase
,
48 unsigned long irq_err
,
51 void __init
orion_ge10_init(struct mv643xx_eth_platform_data
*eth_data
,
52 unsigned long mapbase
,
54 unsigned long irq_err
,
57 void __init
orion_ge11_init(struct mv643xx_eth_platform_data
*eth_data
,
58 unsigned long mapbase
,
60 unsigned long irq_err
,
63 void __init
orion_ge00_switch_init(struct dsa_platform_data
*d
,
65 void __init
orion_i2c_init(unsigned long mapbase
,
67 unsigned long freq_m
);
69 void __init
orion_i2c_1_init(unsigned long mapbase
,
71 unsigned long freq_m
);
73 void __init
orion_spi_init(unsigned long mapbase
,
76 void __init
orion_spi_1_init(unsigned long mapbase
,
79 void __init
orion_wdt_init(unsigned long tclk
);
81 void __init
orion_xor0_init(unsigned long mapbase_low
,
82 unsigned long mapbase_high
,
86 void __init
orion_xor1_init(unsigned long mapbase_low
,
87 unsigned long mapbase_high
,
91 void __init
orion_ehci_init(unsigned long mapbase
,
93 enum orion_ehci_phy_ver phy_version
);
95 void __init
orion_ehci_1_init(unsigned long mapbase
,
98 void __init
orion_ehci_2_init(unsigned long mapbase
,
101 void __init
orion_sata_init(struct mv_sata_platform_data
*sata_data
,
102 unsigned long mapbase
,
105 void __init
orion_crypto_init(unsigned long mapbase
,
106 unsigned long srambase
,
107 unsigned long sram_size
,