pq2ads.h 3.0 KB

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