prpmc750.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * arch/ppc/platforms/prpmc750.h
  3. *
  4. * Definitions for Motorola PrPMC750 board support
  5. *
  6. * Author: Matt Porter <mporter@mvista.com>
  7. *
  8. * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under
  9. * the terms of the GNU General Public License version 2. This program
  10. * is licensed "as is" without any warranty of any kind, whether express
  11. * or implied.
  12. */
  13. #ifdef __KERNEL__
  14. #ifndef __ASM_PRPMC750_H__
  15. #define __ASM_PRPMC750_H__
  16. /*
  17. * Due to limiations imposed by legacy hardware (primaryily IDE controllers),
  18. * the PrPMC750 carrier board operates using a PReP address map.
  19. *
  20. * From Processor (physical) -> PCI:
  21. * PCI Mem Space: 0xc0000000 - 0xfe000000 -> 0x00000000 - 0x3e000000 (768 MB)
  22. * PCI I/O Space: 0x80000000 - 0x90000000 -> 0x00000000 - 0x10000000 (256 MB)
  23. * Note: Must skip 0xfe000000-0xfe400000 for CONFIG_HIGHMEM/PKMAP area
  24. *
  25. * From PCI -> Processor (physical):
  26. * System Memory: 0x80000000 -> 0x00000000
  27. */
  28. #define PRPMC750_ISA_IO_BASE PREP_ISA_IO_BASE
  29. #define PRPMC750_ISA_MEM_BASE PREP_ISA_MEM_BASE
  30. /* PCI Memory space mapping info */
  31. #define PRPMC750_PCI_MEM_SIZE 0x30000000U
  32. #define PRPMC750_PROC_PCI_MEM_START PRPMC750_ISA_MEM_BASE
  33. #define PRPMC750_PROC_PCI_MEM_END (PRPMC750_PROC_PCI_MEM_START + \
  34. PRPMC750_PCI_MEM_SIZE - 1)
  35. #define PRPMC750_PCI_MEM_START 0x00000000U
  36. #define PRPMC750_PCI_MEM_END (PRPMC750_PCI_MEM_START + \
  37. PRPMC750_PCI_MEM_SIZE - 1)
  38. /* PCI I/O space mapping info */
  39. #define PRPMC750_PCI_IO_SIZE 0x10000000U
  40. #define PRPMC750_PROC_PCI_IO_START PRPMC750_ISA_IO_BASE
  41. #define PRPMC750_PROC_PCI_IO_END (PRPMC750_PROC_PCI_IO_START + \
  42. PRPMC750_PCI_IO_SIZE - 1)
  43. #define PRPMC750_PCI_IO_START 0x00000000U
  44. #define PRPMC750_PCI_IO_END (PRPMC750_PCI_IO_START + \
  45. PRPMC750_PCI_IO_SIZE - 1)
  46. /* System memory mapping info */
  47. #define PRPMC750_PCI_DRAM_OFFSET PREP_PCI_DRAM_OFFSET
  48. #define PRPMC750_PCI_PHY_MEM_OFFSET (PRPMC750_ISA_MEM_BASE-PRPMC750_PCI_MEM_START)
  49. /* Register address definitions */
  50. #define PRPMC750_HAWK_SMC_BASE 0xfef80000U
  51. #define PRPMC750_HAWK_PPC_REG_BASE 0xfeff0000U
  52. #define PRPMC750_BASE_BAUD 1843200
  53. #define PRPMC750_SERIAL_0 0xfef88000
  54. #define PRPMC750_SERIAL_0_DLL (PRPMC750_SERIAL_0 + (UART_DLL << 4))
  55. #define PRPMC750_SERIAL_0_DLM (PRPMC750_SERIAL_0 + (UART_DLM << 4))
  56. #define PRPMC750_SERIAL_0_LCR (PRPMC750_SERIAL_0 + (UART_LCR << 4))
  57. #define PRPMC750_STATUS_REG 0xfef88080
  58. #define PRPMC750_BAUDOUT_MASK 0x02
  59. #define PRPMC750_MONARCH_MASK 0x01
  60. #define PRPMC750_MODRST_REG 0xfef880a0
  61. #define PRPMC750_MODRST_MASK 0x01
  62. #define PRPMC750_PIRQ_REG 0xfef880b0
  63. #define PRPMC750_SEL1_MASK 0x02
  64. #define PRPMC750_SEL0_MASK 0x01
  65. #define PRPMC750_TBEN_REG 0xfef880c0
  66. #define PRPMC750_TBEN_MASK 0x01
  67. /* UART Defines. */
  68. #define RS_TABLE_SIZE 4
  69. /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
  70. #define BASE_BAUD (PRPMC750_BASE_BAUD / 16)
  71. #define STD_COM_FLAGS ASYNC_BOOT_AUTOCONF
  72. #define SERIAL_PORT_DFNS \
  73. { 0, BASE_BAUD, PRPMC750_SERIAL_0, 1, STD_COM_FLAGS, \
  74. iomem_base: (unsigned char *)PRPMC750_SERIAL_0, \
  75. iomem_reg_shift: 4, \
  76. io_type: SERIAL_IO_MEM } /* ttyS0 */
  77. #endif /* __ASM_PRPMC750_H__ */
  78. #endif /* __KERNEL__ */