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