| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * arch/arm/plat-orion/include/plat/common.h | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Marvell Orion SoC common setup code used by different mach-/common.c | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This file is licensed under the terms of the GNU General Public | 
					
						
							|  |  |  |  * License version 2.  This program is licensed "as is" without any | 
					
						
							|  |  |  |  * warranty of any kind, whether express or implied. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __PLAT_COMMON_H
 | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | #include <linux/mv643xx_eth.h>
 | 
					
						
							| 
									
										
										
										
											2013-05-10 22:12:27 +02:00
										 |  |  | #include <linux/platform_data/usb-ehci-orion.h>
 | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | struct dsa_platform_data; | 
					
						
							| 
									
										
										
										
											2012-11-17 15:22:28 +01:00
										 |  |  | struct mv_sata_platform_data; | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-11 14:27:23 +02:00
										 |  |  | void __init orion_uart0_init(void __iomem *membase, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 			     resource_size_t mapbase, | 
					
						
							|  |  |  | 			     unsigned int irq, | 
					
						
							| 
									
										
										
										
											2011-12-24 03:06:34 +01:00
										 |  |  | 			     struct clk *clk); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-11 14:27:23 +02:00
										 |  |  | void __init orion_uart1_init(void __iomem *membase, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 			     resource_size_t mapbase, | 
					
						
							|  |  |  | 			     unsigned int irq, | 
					
						
							| 
									
										
										
										
											2011-12-24 03:06:34 +01:00
										 |  |  | 			     struct clk *clk); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-11 14:27:23 +02:00
										 |  |  | void __init orion_uart2_init(void __iomem *membase, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 			     resource_size_t mapbase, | 
					
						
							|  |  |  | 			     unsigned int irq, | 
					
						
							| 
									
										
										
										
											2011-12-24 03:06:34 +01:00
										 |  |  | 			     struct clk *clk); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-11 14:27:23 +02:00
										 |  |  | void __init orion_uart3_init(void __iomem *membase, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | 			     resource_size_t mapbase, | 
					
						
							|  |  |  | 			     unsigned int irq, | 
					
						
							| 
									
										
										
										
											2011-12-24 03:06:34 +01:00
										 |  |  | 			     struct clk *clk); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:42 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_rtc_init(unsigned long mapbase, | 
					
						
							|  |  |  | 			   unsigned long irq); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data, | 
					
						
							|  |  |  | 			    unsigned long mapbase, | 
					
						
							|  |  |  | 			    unsigned long irq, | 
					
						
							| 
									
										
										
										
											2012-07-26 12:15:46 +02:00
										 |  |  | 			    unsigned long irq_err, | 
					
						
							|  |  |  | 			    unsigned int tx_csum_limit); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data, | 
					
						
							|  |  |  | 			    unsigned long mapbase, | 
					
						
							|  |  |  | 			    unsigned long irq, | 
					
						
							| 
									
										
										
										
											2012-07-26 12:15:46 +02:00
										 |  |  | 			    unsigned long irq_err, | 
					
						
							|  |  |  | 			    unsigned int tx_csum_limit); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, | 
					
						
							|  |  |  | 			    unsigned long mapbase, | 
					
						
							|  |  |  | 			    unsigned long irq, | 
					
						
							| 
									
										
										
										
											2011-12-24 01:24:24 +01:00
										 |  |  | 			    unsigned long irq_err); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, | 
					
						
							|  |  |  | 			    unsigned long mapbase, | 
					
						
							|  |  |  | 			    unsigned long irq, | 
					
						
							| 
									
										
										
										
											2011-12-24 01:24:24 +01:00
										 |  |  | 			    unsigned long irq_err); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_ge00_switch_init(struct dsa_platform_data *d, | 
					
						
							|  |  |  | 				   int irq); | 
					
						
							| 
									
										
										
										
											2011-12-24 01:24:24 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:45 +02:00
										 |  |  | void __init orion_i2c_init(unsigned long mapbase, | 
					
						
							|  |  |  | 			   unsigned long irq, | 
					
						
							|  |  |  | 			   unsigned long freq_m); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:44 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:45 +02:00
										 |  |  | void __init orion_i2c_1_init(unsigned long mapbase, | 
					
						
							|  |  |  | 			     unsigned long irq, | 
					
						
							|  |  |  | 			     unsigned long freq_m); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-06 17:17:26 +02:00
										 |  |  | void __init orion_spi_init(unsigned long mapbase); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-06 17:17:26 +02:00
										 |  |  | void __init orion_spi_1_init(unsigned long mapbase); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:47 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-04 16:57:31 +01:00
										 |  |  | void __init orion_wdt_init(void); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:48 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-07 21:48:08 +01:00
										 |  |  | void __init orion_xor0_init(unsigned long mapbase_low, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:48 +02:00
										 |  |  | 			    unsigned long mapbase_high, | 
					
						
							|  |  |  | 			    unsigned long irq_0, | 
					
						
							|  |  |  | 			    unsigned long irq_1); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void __init orion_xor1_init(unsigned long mapbase_low, | 
					
						
							|  |  |  | 			    unsigned long mapbase_high, | 
					
						
							|  |  |  | 			    unsigned long irq_0, | 
					
						
							|  |  |  | 			    unsigned long irq_1); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-07 21:48:08 +01:00
										 |  |  | void __init orion_ehci_init(unsigned long mapbase, | 
					
						
							| 
									
										
										
										
											2012-02-08 15:52:47 +01:00
										 |  |  | 			    unsigned long irq, | 
					
						
							|  |  |  | 			    enum orion_ehci_phy_ver phy_version); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-07 21:48:08 +01:00
										 |  |  | void __init orion_ehci_1_init(unsigned long mapbase, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:49 +02:00
										 |  |  | 			      unsigned long irq); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-07 21:48:08 +01:00
										 |  |  | void __init orion_ehci_2_init(unsigned long mapbase, | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:49 +02:00
										 |  |  | 			      unsigned long irq); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:50 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_sata_init(struct mv_sata_platform_data *sata_data, | 
					
						
							|  |  |  | 			    unsigned long mapbase, | 
					
						
							|  |  |  | 			    unsigned long irq); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:51 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_crypto_init(unsigned long mapbase, | 
					
						
							|  |  |  | 			      unsigned long srambase, | 
					
						
							|  |  |  | 			      unsigned long sram_size, | 
					
						
							|  |  |  | 			      unsigned long irq); | 
					
						
							| 
									
										
										
										
											2012-04-06 17:17:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | void __init orion_clkdev_add(const char *con_id, const char *dev_id, | 
					
						
							|  |  |  | 			     struct clk *clk); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void __init orion_clkdev_init(struct clk *tclk); | 
					
						
							| 
									
										
										
										
											2011-05-15 13:32:41 +02:00
										 |  |  | #endif
 |