Andrew Lunn | 28a2b45 | 2011-05-15 13:32:41 +0200 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/plat-orion/include/plat/common.h |
| 3 | * |
| 4 | * Marvell Orion SoC common setup code used by different mach-/common.c |
| 5 | * |
| 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 | */ |
| 10 | |
| 11 | #ifndef __PLAT_COMMON_H |
Andrew Lunn | 7e3819d | 2011-05-15 13:32:44 +0200 | [diff] [blame] | 12 | #include <linux/mv643xx_eth.h> |
Andrew Lunn | 28a2b45 | 2011-05-15 13:32:41 +0200 | [diff] [blame] | 13 | |
Andrew Lunn | 7e3819d | 2011-05-15 13:32:44 +0200 | [diff] [blame] | 14 | struct dsa_platform_data; |
Andrew Lunn | 28a2b45 | 2011-05-15 13:32:41 +0200 | [diff] [blame] | 15 | |
| 16 | void __init orion_uart0_init(unsigned int membase, |
| 17 | resource_size_t mapbase, |
| 18 | unsigned int irq, |
| 19 | unsigned int uartclk); |
| 20 | |
| 21 | void __init orion_uart1_init(unsigned int membase, |
| 22 | resource_size_t mapbase, |
| 23 | unsigned int irq, |
| 24 | unsigned int uartclk); |
| 25 | |
| 26 | void __init orion_uart2_init(unsigned int membase, |
| 27 | resource_size_t mapbase, |
| 28 | unsigned int irq, |
| 29 | unsigned int uartclk); |
| 30 | |
| 31 | void __init orion_uart3_init(unsigned int membase, |
| 32 | resource_size_t mapbase, |
| 33 | unsigned int irq, |
| 34 | unsigned int uartclk); |
Andrew Lunn | f6eaccb | 2011-05-15 13:32:42 +0200 | [diff] [blame] | 35 | |
| 36 | void __init orion_rtc_init(unsigned long mapbase, |
| 37 | unsigned long irq); |
Andrew Lunn | 7e3819d | 2011-05-15 13:32:44 +0200 | [diff] [blame] | 38 | |
| 39 | void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data, |
| 40 | struct mbus_dram_target_info *mbus_dram_info, |
| 41 | unsigned long mapbase, |
| 42 | unsigned long irq, |
| 43 | unsigned long irq_err, |
| 44 | int tclk); |
| 45 | |
| 46 | void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data, |
| 47 | struct mbus_dram_target_info *mbus_dram_info, |
| 48 | unsigned long mapbase, |
| 49 | unsigned long irq, |
| 50 | unsigned long irq_err, |
| 51 | int tclk); |
| 52 | |
| 53 | void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, |
| 54 | struct mbus_dram_target_info *mbus_dram_info, |
| 55 | unsigned long mapbase, |
| 56 | unsigned long irq, |
| 57 | unsigned long irq_err, |
| 58 | int tclk); |
| 59 | |
| 60 | void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, |
| 61 | struct mbus_dram_target_info *mbus_dram_info, |
| 62 | unsigned long mapbase, |
| 63 | unsigned long irq, |
| 64 | unsigned long irq_err, |
| 65 | int tclk); |
| 66 | |
| 67 | void __init orion_ge00_switch_init(struct dsa_platform_data *d, |
| 68 | int irq); |
Andrew Lunn | aac7ffa | 2011-05-15 13:32:45 +0200 | [diff] [blame] | 69 | void __init orion_i2c_init(unsigned long mapbase, |
| 70 | unsigned long irq, |
| 71 | unsigned long freq_m); |
Andrew Lunn | 7e3819d | 2011-05-15 13:32:44 +0200 | [diff] [blame] | 72 | |
Andrew Lunn | aac7ffa | 2011-05-15 13:32:45 +0200 | [diff] [blame] | 73 | void __init orion_i2c_1_init(unsigned long mapbase, |
| 74 | unsigned long irq, |
| 75 | unsigned long freq_m); |
Andrew Lunn | 980f9f6 | 2011-05-15 13:32:46 +0200 | [diff] [blame] | 76 | |
| 77 | void __init orion_spi_init(unsigned long mapbase, |
| 78 | unsigned long tclk); |
| 79 | |
| 80 | void __init orion_spi_1_init(unsigned long mapbase, |
| 81 | unsigned long tclk); |
Andrew Lunn | 5e00d37 | 2011-05-15 13:32:47 +0200 | [diff] [blame] | 82 | |
| 83 | void __init orion_wdt_init(unsigned long tclk); |
Andrew Lunn | ee96272 | 2011-05-15 13:32:48 +0200 | [diff] [blame^] | 84 | |
| 85 | void __init orion_xor0_init(struct mbus_dram_target_info *mbus_dram_info, |
| 86 | unsigned long mapbase_low, |
| 87 | unsigned long mapbase_high, |
| 88 | unsigned long irq_0, |
| 89 | unsigned long irq_1); |
| 90 | |
| 91 | void __init orion_xor1_init(unsigned long mapbase_low, |
| 92 | unsigned long mapbase_high, |
| 93 | unsigned long irq_0, |
| 94 | unsigned long irq_1); |
Andrew Lunn | 28a2b45 | 2011-05-15 13:32:41 +0200 | [diff] [blame] | 95 | #endif |