Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | ||
1da177e4 LT |
17 | #include <asm/types.h> |
18 | ||
19 | #ifdef CONFIG_40x | |
20 | ||
1da177e4 LT |
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 | ||
1da177e4 LT |
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 | ||
909aeca6 GL |
53 | #if defined(CONFIG_XILINX_ML403) |
54 | #include <platforms/4xx/xilinx_ml403.h> | |
55 | #endif | |
56 | ||
1da177e4 LT |
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 | ||
89 | #elif CONFIG_44x | |
90 | ||
c9cf73ae MP |
91 | #if defined(CONFIG_BAMBOO) |
92 | #include <platforms/4xx/bamboo.h> | |
93 | #endif | |
94 | ||
1da177e4 LT |
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 | ||
90eb2665 RD |
103 | #if defined(CONFIG_YUCCA) |
104 | #include <platforms/4xx/yucca.h> | |
105 | #endif | |
106 | ||
1da177e4 LT |
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__ */ |