mpc10x.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * arch/ppc/boot/include/mpc10.h
  3. *
  4. * Common defines for the Motorola SPS MPC106/8240/107 Host bridge/Mem
  5. * ctrl/EPIC/etc.
  6. *
  7. * Author: Tom Rini <trini@mvista.com>
  8. *
  9. * This is a heavily stripped down version of:
  10. * include/asm-ppc/mpc10x.h
  11. *
  12. * Author: Mark A. Greer
  13. * mgreer@mvista.com
  14. *
  15. * 2001-2002 (c) MontaVista, Software, Inc. This file is licensed under
  16. * the terms of the GNU General Public License version 2. This program
  17. * is licensed "as is" without any warranty of any kind, whether express
  18. * or implied.
  19. */
  20. #ifndef __BOOT_MPC10X_H__
  21. #define __BOOT_MPC10X_H__
  22. /*
  23. * The values here don't completely map everything but should work in most
  24. * cases.
  25. *
  26. * MAP A (PReP Map)
  27. * Processor: 0x80000000 - 0x807fffff -> PCI I/O: 0x00000000 - 0x007fffff
  28. * Processor: 0xc0000000 - 0xdfffffff -> PCI MEM: 0x00000000 - 0x1fffffff
  29. * PCI MEM: 0x80000000 -> Processor System Memory: 0x00000000
  30. * EUMB mapped to: ioremap_base - 0x00100000 (ioremap_base - 1 MB)
  31. *
  32. * MAP B (CHRP Map)
  33. * Processor: 0xfe000000 - 0xfebfffff -> PCI I/O: 0x00000000 - 0x00bfffff
  34. * Processor: 0x80000000 - 0xbfffffff -> PCI MEM: 0x80000000 - 0xbfffffff
  35. * PCI MEM: 0x00000000 -> Processor System Memory: 0x00000000
  36. * EUMB mapped to: ioremap_base - 0x00100000 (ioremap_base - 1 MB)
  37. */
  38. /* Define the type of map to use */
  39. #define MPC10X_MEM_MAP_A 1
  40. #define MPC10X_MEM_MAP_B 2
  41. /* Map A (PReP Map) Defines */
  42. #define MPC10X_MAPA_CNFG_ADDR 0x80000cf8
  43. #define MPC10X_MAPA_CNFG_DATA 0x80000cfc
  44. /* Map B (CHRP Map) Defines */
  45. #define MPC10X_MAPB_CNFG_ADDR 0xfec00000
  46. #define MPC10X_MAPB_CNFG_DATA 0xfee00000
  47. /* Define offsets for the memory controller registers in the config space */
  48. #define MPC10X_MCTLR_MEM_START_1 0x80 /* Banks 0-3 */
  49. #define MPC10X_MCTLR_MEM_START_2 0x84 /* Banks 4-7 */
  50. #define MPC10X_MCTLR_EXT_MEM_START_1 0x88 /* Banks 0-3 */
  51. #define MPC10X_MCTLR_EXT_MEM_START_2 0x8c /* Banks 4-7 */
  52. #define MPC10X_MCTLR_MEM_END_1 0x90 /* Banks 0-3 */
  53. #define MPC10X_MCTLR_MEM_END_2 0x94 /* Banks 4-7 */
  54. #define MPC10X_MCTLR_EXT_MEM_END_1 0x98 /* Banks 0-3 */
  55. #define MPC10X_MCTLR_EXT_MEM_END_2 0x9c /* Banks 4-7 */
  56. #define MPC10X_MCTLR_MEM_BANK_ENABLES 0xa0
  57. #endif /* __BOOT_MPC10X_H__ */