pplus.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Definitions for Motorola MCG Falcon/Raven & HAWK North Bridge & Memory ctlr.
  3. *
  4. * Author: Mark A. Greerinclude/asm-ppc/hawk.h
  5. * mgreer@mvista.com
  6. *
  7. * Modified by Randy Vinson (rvinson@mvista.com)
  8. *
  9. * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under
  10. * the terms of the GNU General Public License version 2. This program
  11. * is licensed "as is" without any warranty of any kind, whether express
  12. * or implied.
  13. */
  14. #ifndef __PPC_PPLUS_H
  15. #define __PPC_PPLUS_H
  16. #include <asm/io.h>
  17. /*
  18. * Due to limiations imposed by legacy hardware (primaryily IDE controllers),
  19. * the PPLUS boards operate using a PReP address map.
  20. *
  21. * From Processor (physical) -> PCI:
  22. * PCI Mem Space: 0xc0000000 - 0xfe000000 -> 0x00000000 - 0x3e000000 (768 MB)
  23. * PCI I/O Space: 0x80000000 - 0x90000000 -> 0x00000000 - 0x10000000 (256 MB)
  24. * Note: Must skip 0xfe000000-0xfe400000 for CONFIG_HIGHMEM/PKMAP area
  25. *
  26. * From PCI -> Processor (physical):
  27. * System Memory: 0x80000000 -> 0x00000000
  28. */
  29. #define PPLUS_ISA_MEM_BASE PREP_ISA_MEM_BASE
  30. #define PPLUS_ISA_IO_BASE PREP_ISA_IO_BASE
  31. /* PCI Memory space mapping info */
  32. #define PPLUS_PCI_MEM_SIZE 0x30000000U
  33. #define PPLUS_PROC_PCI_MEM_START PPLUS_ISA_MEM_BASE
  34. #define PPLUS_PROC_PCI_MEM_END (PPLUS_PROC_PCI_MEM_START + \
  35. PPLUS_PCI_MEM_SIZE - 1)
  36. #define PPLUS_PCI_MEM_START 0x00000000U
  37. #define PPLUS_PCI_MEM_END (PPLUS_PCI_MEM_START + \
  38. PPLUS_PCI_MEM_SIZE - 1)
  39. /* PCI I/O space mapping info */
  40. #define PPLUS_PCI_IO_SIZE 0x10000000U
  41. #define PPLUS_PROC_PCI_IO_START PPLUS_ISA_IO_BASE
  42. #define PPLUS_PROC_PCI_IO_END (PPLUS_PROC_PCI_IO_START + \
  43. PPLUS_PCI_IO_SIZE - 1)
  44. #define PPLUS_PCI_IO_START 0x00000000U
  45. #define PPLUS_PCI_IO_END (PPLUS_PCI_IO_START + \
  46. PPLUS_PCI_IO_SIZE - 1)
  47. /* System memory mapping info */
  48. #define PPLUS_PCI_DRAM_OFFSET PREP_PCI_DRAM_OFFSET
  49. #define PPLUS_PCI_PHY_MEM_OFFSET (PPLUS_ISA_MEM_BASE-PPLUS_PCI_MEM_START)
  50. /* Define base addresses for important sets of registers */
  51. #define PPLUS_HAWK_SMC_BASE 0xfef80000U
  52. #define PPLUS_HAWK_PPC_REG_BASE 0xfeff0000U
  53. #define PPLUS_SYS_CONFIG_REG 0xfef80400U
  54. #define PPLUS_L2_CONTROL_REG 0x8000081cU
  55. #define PPLUS_VGA_MEM_BASE 0xf0000000U
  56. #endif /* __PPC_PPLUS_H */