| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | #ifndef __ASM_ARCH_ZYLONITE_H
 | 
					
						
							|  |  |  | #define __ASM_ARCH_ZYLONITE_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define ZYLONITE_ETH_PHYS	0x14000000
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 19:00:13 +08:00
										 |  |  | #define EXT_GPIO(x)		(128 + (x))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-20 15:23:59 +08:00
										 |  |  | #define ZYLONITE_NR_IRQS	(IRQ_BOARD_START + 32)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | /* the following variables are processor specific and initialized
 | 
					
						
							|  |  |  |  * by the corresponding zylonite_pxa3xx_init() | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | extern int gpio_eth_irq; | 
					
						
							| 
									
										
										
										
											2008-06-17 19:03:54 +08:00
										 |  |  | extern int gpio_debug_led1; | 
					
						
							|  |  |  | extern int gpio_debug_led2; | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-15 15:50:49 +01:00
										 |  |  | extern int wm9713_irq; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | extern int lcd_id; | 
					
						
							|  |  |  | extern int lcd_orientation; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-01 22:03:37 +02:00
										 |  |  | #ifdef CONFIG_MACH_ZYLONITE300
 | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | extern void zylonite_pxa300_init(void); | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | static inline void zylonite_pxa300_init(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	if (cpu_is_pxa300() || cpu_is_pxa310()) | 
					
						
							| 
									
										
										
										
											2008-10-20 16:00:08 -07:00
										 |  |  | 		panic("%s: PXA300/PXA310 not supported\n", __func__); | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-01 22:03:37 +02:00
										 |  |  | #ifdef CONFIG_MACH_ZYLONITE320
 | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | extern void zylonite_pxa320_init(void); | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | static inline void zylonite_pxa320_init(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	if (cpu_is_pxa320()) | 
					
						
							| 
									
										
										
										
											2008-10-20 16:00:08 -07:00
										 |  |  | 		panic("%s: PXA320 not supported\n", __func__); | 
					
						
							| 
									
										
										
										
											2007-09-11 19:13:17 -07:00
										 |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* __ASM_ARCH_ZYLONITE_H */
 |