pq2ads.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * A collection of structures, addresses, and values associated with
  3. * the Motorola MPC8260ADS/MPC8266ADS-PCI boards.
  4. * Copied from the RPX-Classic and SBS8260 stuff.
  5. *
  6. * Copyright (c) 2001 Dan Malek (dan@mvista.com)
  7. */
  8. #ifdef __KERNEL__
  9. #ifndef __MACH_ADS8260_DEFS
  10. #define __MACH_ADS8260_DEFS
  11. #include <linux/config.h>
  12. #include <asm/ppcboot.h>
  13. /* Memory map is configured by the PROM startup.
  14. * We just map a few things we need. The CSR is actually 4 byte-wide
  15. * registers that can be accessed as 8-, 16-, or 32-bit values.
  16. */
  17. #define CPM_MAP_ADDR ((uint)0xf0000000)
  18. #define BCSR_ADDR ((uint)0xf4500000)
  19. #define BCSR_SIZE ((uint)(32 * 1024))
  20. #define BOOTROM_RESTART_ADDR ((uint)0xff000104)
  21. /* For our show_cpuinfo hooks. */
  22. #define CPUINFO_VENDOR "Motorola"
  23. #define CPUINFO_MACHINE "PQ2 ADS PowerPC"
  24. /* The ADS8260 has 16, 32-bit wide control/status registers, accessed
  25. * only on word boundaries.
  26. * Not all are used (yet), or are interesting to us (yet).
  27. */
  28. /* Things of interest in the CSR.
  29. */
  30. #define BCSR0_LED0 ((uint)0x02000000) /* 0 == on */
  31. #define BCSR0_LED1 ((uint)0x01000000) /* 0 == on */
  32. #define BCSR1_FETHIEN ((uint)0x08000000) /* 0 == enable */
  33. #define BCSR1_FETH_RST ((uint)0x04000000) /* 0 == reset */
  34. #define BCSR1_RS232_EN1 ((uint)0x02000000) /* 0 == enable */
  35. #define BCSR1_RS232_EN2 ((uint)0x01000000) /* 0 == enable */
  36. #define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable */
  37. #define BCSR3_FETH2_RST ((uint)0x80000000) /* 0 == reset */
  38. #define PHY_INTERRUPT SIU_INT_IRQ7
  39. #ifdef CONFIG_PCI
  40. /* PCI interrupt controller */
  41. #define PCI_INT_STAT_REG 0xF8200000
  42. #define PCI_INT_MASK_REG 0xF8200004
  43. #define PIRQA (NR_CPM_INTS + 0)
  44. #define PIRQB (NR_CPM_INTS + 1)
  45. #define PIRQC (NR_CPM_INTS + 2)
  46. #define PIRQD (NR_CPM_INTS + 3)
  47. /*
  48. * PCI memory map definitions for MPC8266ADS-PCI.
  49. *
  50. * processor view
  51. * local address PCI address target
  52. * 0x80000000-0x9FFFFFFF 0x80000000-0x9FFFFFFF PCI mem with prefetch
  53. * 0xA0000000-0xBFFFFFFF 0xA0000000-0xBFFFFFFF PCI mem w/o prefetch
  54. * 0xF4000000-0xF7FFFFFF 0x00000000-0x03FFFFFF PCI IO
  55. *
  56. * PCI master view
  57. * local address PCI address target
  58. * 0x00000000-0x1FFFFFFF 0x00000000-0x1FFFFFFF MPC8266 local memory
  59. */
  60. /* All the other PCI memory map definitions reside at syslib/m82xx_pci.h
  61. Here we should redefine what is unique for this board */
  62. #define M82xx_PCI_SLAVE_MEM_LOCAL 0x00000000 /* Local base */
  63. #define M82xx_PCI_SLAVE_MEM_BUS 0x00000000 /* PCI base */
  64. #define M82xx_PCI_SLAVE_MEM_SIZE 0x10000000 /* 256 Mb */
  65. #define M82xx_PCI_SLAVE_SEC_WND_SIZE ~(0x40000000 - 1U) /* 2 x 512Mb */
  66. #define M82xx_PCI_SLAVE_SEC_WND_BASE 0x80000000 /* PCI Memory base */
  67. #if defined(CONFIG_ADS8272)
  68. #define PCI_INT_TO_SIU SIU_INT_IRQ2
  69. #elif defined(CONFIG_PQ2FADS)
  70. #define PCI_INT_TO_SIU SIU_INT_IRQ6
  71. #else
  72. #warning PCI Bridge will be without interrupts support
  73. #endif
  74. #endif /* CONFIG_PCI */
  75. #endif /* __MACH_ADS8260_DEFS */
  76. #endif /* __KERNEL__ */