Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Since there are many different boards and no standard configuration, |
| 3 | * we have a unique include file for each. Rather than change every |
| 4 | * file that has to include MPC8260 configuration, they all include |
| 5 | * this one and the configuration switching is done here. |
| 6 | */ |
| 7 | #ifdef __KERNEL__ |
| 8 | #ifndef __ASM_PPC_MPC8260_H__ |
| 9 | #define __ASM_PPC_MPC8260_H__ |
| 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
| 12 | #ifdef CONFIG_8260 |
| 13 | |
| 14 | #ifdef CONFIG_EST8260 |
| 15 | #include <platforms/est8260.h> |
| 16 | #endif |
| 17 | |
| 18 | #ifdef CONFIG_SBC82xx |
| 19 | #include <platforms/sbc82xx.h> |
| 20 | #endif |
| 21 | |
| 22 | #ifdef CONFIG_SBS8260 |
| 23 | #include <platforms/sbs8260.h> |
| 24 | #endif |
| 25 | |
| 26 | #ifdef CONFIG_RPX8260 |
| 27 | #include <platforms/rpx8260.h> |
| 28 | #endif |
| 29 | |
| 30 | #ifdef CONFIG_WILLOW |
| 31 | #include <platforms/willow.h> |
| 32 | #endif |
| 33 | |
| 34 | #ifdef CONFIG_TQM8260 |
| 35 | #include <platforms/tqm8260.h> |
| 36 | #endif |
| 37 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | #ifdef CONFIG_PCI_8260 |
Vitaly Bordug | a6dbba7 | 2005-05-28 15:52:09 -0700 | [diff] [blame] | 39 | #include <syslib/m82xx_pci.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | #endif |
| 41 | |
| 42 | /* Make sure the memory translation stuff is there if PCI not used. |
| 43 | */ |
| 44 | #ifndef _IO_BASE |
| 45 | #define _IO_BASE 0 |
| 46 | #endif |
| 47 | |
| 48 | #ifndef _ISA_MEM_BASE |
| 49 | #define _ISA_MEM_BASE 0 |
| 50 | #endif |
| 51 | |
| 52 | #ifndef PCI_DRAM_OFFSET |
| 53 | #define PCI_DRAM_OFFSET 0 |
| 54 | #endif |
| 55 | |
| 56 | /* Map 256MB I/O region |
| 57 | */ |
| 58 | #ifndef IO_PHYS_ADDR |
| 59 | #define IO_PHYS_ADDR 0xe0000000 |
| 60 | #endif |
| 61 | #ifndef IO_VIRT_ADDR |
| 62 | #define IO_VIRT_ADDR IO_PHYS_ADDR |
| 63 | #endif |
| 64 | |
Kumar Gala | 8e8fff09 | 2005-09-03 15:55:34 -0700 | [diff] [blame] | 65 | enum ppc_sys_devices { |
| 66 | MPC82xx_CPM_FCC1, |
| 67 | MPC82xx_CPM_FCC2, |
| 68 | MPC82xx_CPM_FCC3, |
| 69 | MPC82xx_CPM_I2C, |
| 70 | MPC82xx_CPM_SCC1, |
| 71 | MPC82xx_CPM_SCC2, |
| 72 | MPC82xx_CPM_SCC3, |
| 73 | MPC82xx_CPM_SCC4, |
| 74 | MPC82xx_CPM_SPI, |
| 75 | MPC82xx_CPM_MCC1, |
| 76 | MPC82xx_CPM_MCC2, |
| 77 | MPC82xx_CPM_SMC1, |
| 78 | MPC82xx_CPM_SMC2, |
| 79 | MPC82xx_CPM_USB, |
| 80 | MPC82xx_SEC1, |
Vitaly Bordug | 2ca2d5e | 2006-08-14 23:00:31 -0700 | [diff] [blame] | 81 | MPC82xx_MDIO_BB, |
Vitaly Bordug | 75288c7 | 2006-01-20 22:22:34 +0300 | [diff] [blame] | 82 | NUM_PPC_SYS_DEVS, |
Kumar Gala | 8e8fff09 | 2005-09-03 15:55:34 -0700 | [diff] [blame] | 83 | }; |
| 84 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | #ifndef __ASSEMBLY__ |
| 86 | /* The "residual" data board information structure the boot loader |
| 87 | * hands to us. |
| 88 | */ |
| 89 | extern unsigned char __res[]; |
| 90 | #endif |
| 91 | |
Vitaly Bordug | 1461b4e | 2005-10-28 17:46:28 -0700 | [diff] [blame] | 92 | #ifndef BOARD_CHIP_NAME |
| 93 | #define BOARD_CHIP_NAME "" |
| 94 | #endif |
| 95 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | #endif /* CONFIG_8260 */ |
| 97 | #endif /* !__ASM_PPC_MPC8260_H__ */ |
| 98 | #endif /* __KERNEL__ */ |