mpc10x.h 2.1 KB

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