| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * | 
|  | 3 | *    Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu> | 
|  | 4 | * | 
|  | 5 | *    Module name: ibm4xx.h | 
|  | 6 | * | 
|  | 7 | *    Description: | 
|  | 8 | *	A generic include file which pulls in appropriate include files | 
|  | 9 | *      for specific board types based on configuration settings. | 
|  | 10 | * | 
|  | 11 | */ | 
|  | 12 |  | 
|  | 13 | #ifdef __KERNEL__ | 
|  | 14 | #ifndef __ASM_IBM4XX_H__ | 
|  | 15 | #define __ASM_IBM4XX_H__ | 
|  | 16 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #include <asm/types.h> | 
|  | 18 |  | 
|  | 19 | #ifdef CONFIG_40x | 
|  | 20 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #if defined(CONFIG_BUBINGA) | 
|  | 22 | #include <platforms/4xx/bubinga.h> | 
|  | 23 | #endif | 
|  | 24 |  | 
|  | 25 | #if defined(CONFIG_CPCI405) | 
|  | 26 | #include <platforms/4xx/cpci405.h> | 
|  | 27 | #endif | 
|  | 28 |  | 
|  | 29 | #if defined(CONFIG_EP405) | 
|  | 30 | #include <platforms/4xx/ep405.h> | 
|  | 31 | #endif | 
|  | 32 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #if defined(CONFIG_REDWOOD_5) | 
|  | 34 | #include <platforms/4xx/redwood5.h> | 
|  | 35 | #endif | 
|  | 36 |  | 
|  | 37 | #if defined(CONFIG_REDWOOD_6) | 
|  | 38 | #include <platforms/4xx/redwood6.h> | 
|  | 39 | #endif | 
|  | 40 |  | 
|  | 41 | #if defined(CONFIG_SYCAMORE) | 
|  | 42 | #include <platforms/4xx/sycamore.h> | 
|  | 43 | #endif | 
|  | 44 |  | 
|  | 45 | #if defined(CONFIG_WALNUT) | 
|  | 46 | #include <platforms/4xx/walnut.h> | 
|  | 47 | #endif | 
|  | 48 |  | 
|  | 49 | #if defined(CONFIG_XILINX_ML300) | 
|  | 50 | #include <platforms/4xx/xilinx_ml300.h> | 
|  | 51 | #endif | 
|  | 52 |  | 
| Grant C. Likely | 909aeca | 2006-01-19 01:13:37 -0700 | [diff] [blame] | 53 | #if defined(CONFIG_XILINX_ML403) | 
|  | 54 | #include <platforms/4xx/xilinx_ml403.h> | 
|  | 55 | #endif | 
|  | 56 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | #ifndef __ASSEMBLY__ | 
|  | 58 |  | 
|  | 59 | #ifdef CONFIG_40x | 
|  | 60 | /* | 
|  | 61 | * The "residual" board information structure the boot loader passes | 
|  | 62 | * into the kernel. | 
|  | 63 | */ | 
|  | 64 | extern bd_t __res; | 
|  | 65 | #endif | 
|  | 66 |  | 
|  | 67 | void ppc4xx_setup_arch(void); | 
|  | 68 | void ppc4xx_map_io(void); | 
|  | 69 | void ppc4xx_init_IRQ(void); | 
|  | 70 | void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5, | 
|  | 71 | unsigned long r6, unsigned long r7); | 
|  | 72 | #endif | 
|  | 73 |  | 
|  | 74 | #ifndef PPC4xx_MACHINE_NAME | 
|  | 75 | #define PPC4xx_MACHINE_NAME	"Unidentified 4xx class" | 
|  | 76 | #endif | 
|  | 77 |  | 
|  | 78 |  | 
|  | 79 | /* IO_BASE is for PCI I/O. | 
|  | 80 | * ISA not supported, just here to resolve copilation. | 
|  | 81 | */ | 
|  | 82 |  | 
|  | 83 | #ifndef _IO_BASE | 
|  | 84 | #define _IO_BASE	0xe8000000	/* The PCI address window */ | 
|  | 85 | #define _ISA_MEM_BASE	0 | 
|  | 86 | #define PCI_DRAM_OFFSET	0 | 
|  | 87 | #endif | 
|  | 88 |  | 
| Al Viro | 2efc80c | 2006-09-23 16:45:55 +0100 | [diff] [blame] | 89 | #elif defined(CONFIG_44x) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 |  | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 91 | #if defined(CONFIG_BAMBOO) | 
|  | 92 | #include <platforms/4xx/bamboo.h> | 
|  | 93 | #endif | 
|  | 94 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | #if defined(CONFIG_EBONY) | 
|  | 96 | #include <platforms/4xx/ebony.h> | 
|  | 97 | #endif | 
|  | 98 |  | 
|  | 99 | #if defined(CONFIG_LUAN) | 
|  | 100 | #include <platforms/4xx/luan.h> | 
|  | 101 | #endif | 
|  | 102 |  | 
| Roland Dreier | 90eb266 | 2005-11-07 00:58:14 -0800 | [diff] [blame] | 103 | #if defined(CONFIG_YUCCA) | 
|  | 104 | #include <platforms/4xx/yucca.h> | 
|  | 105 | #endif | 
|  | 106 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | #if defined(CONFIG_OCOTEA) | 
|  | 108 | #include <platforms/4xx/ocotea.h> | 
|  | 109 | #endif | 
|  | 110 |  | 
|  | 111 | #ifndef __ASSEMBLY__ | 
|  | 112 | #ifdef CONFIG_40x | 
|  | 113 | /* | 
|  | 114 | * The "residual" board information structure the boot loader passes | 
|  | 115 | * into the kernel. | 
|  | 116 | */ | 
|  | 117 | extern bd_t __res; | 
|  | 118 | #endif | 
|  | 119 | #endif | 
|  | 120 | #endif /* CONFIG_40x */ | 
|  | 121 |  | 
|  | 122 | #endif /* __ASM_IBM4XX_H__ */ | 
|  | 123 | #endif /* __KERNEL__ */ |