mpc885ads.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * A collection of structures, addresses, and values associated with
  3. * the Freescale MPC885ADS board.
  4. * Copied from the FADS stuff.
  5. *
  6. * Author: MontaVista Software, Inc.
  7. * source@mvista.com
  8. *
  9. * 2005 (c) MontaVista Software, Inc. This file is licensed under the
  10. * terms of the GNU General Public License version 2. This program is licensed
  11. * "as is" without any warranty of any kind, whether express or implied.
  12. */
  13. #ifdef __KERNEL__
  14. #ifndef __ASM_MPC885ADS_H__
  15. #define __ASM_MPC885ADS_H__
  16. #include <linux/config.h>
  17. #include <asm/ppcboot.h>
  18. /* U-Boot maps BCSR to 0xff080000 */
  19. #define BCSR_ADDR ((uint)0xff080000)
  20. #define BCSR_SIZE ((uint)32)
  21. #define BCSR0 ((uint)(BCSR_ADDR + 0x00))
  22. #define BCSR1 ((uint)(BCSR_ADDR + 0x04))
  23. #define BCSR2 ((uint)(BCSR_ADDR + 0x08))
  24. #define BCSR3 ((uint)(BCSR_ADDR + 0x0c))
  25. #define BCSR4 ((uint)(BCSR_ADDR + 0x10))
  26. #define CFG_PHYDEV_ADDR ((uint)0xff0a0000)
  27. #define BCSR5 ((uint)(CFG_PHYDEV_ADDR + 0x300))
  28. #define IMAP_ADDR ((uint)0xff000000)
  29. #define IMAP_SIZE ((uint)(64 * 1024))
  30. #define PCMCIA_MEM_ADDR ((uint)0xff020000)
  31. #define PCMCIA_MEM_SIZE ((uint)(64 * 1024))
  32. /* Bits of interest in the BCSRs.
  33. */
  34. #define BCSR1_ETHEN ((uint)0x20000000)
  35. #define BCSR1_IRDAEN ((uint)0x10000000)
  36. #define BCSR1_RS232EN_1 ((uint)0x01000000)
  37. #define BCSR1_PCCEN ((uint)0x00800000)
  38. #define BCSR1_PCCVCC0 ((uint)0x00400000)
  39. #define BCSR1_PCCVPP0 ((uint)0x00200000)
  40. #define BCSR1_PCCVPP1 ((uint)0x00100000)
  41. #define BCSR1_PCCVPP_MASK (BCSR1_PCCVPP0 | BCSR1_PCCVPP1)
  42. #define BCSR1_RS232EN_2 ((uint)0x00040000)
  43. #define BCSR1_PCCVCC1 ((uint)0x00010000)
  44. #define BCSR1_PCCVCC_MASK (BCSR1_PCCVCC0 | BCSR1_PCCVCC1)
  45. #define BCSR4_ETH10_RST ((uint)0x80000000) /* 10Base-T PHY reset*/
  46. #define BCSR4_USB_LO_SPD ((uint)0x04000000)
  47. #define BCSR4_USB_VCC ((uint)0x02000000)
  48. #define BCSR4_USB_FULL_SPD ((uint)0x00040000)
  49. #define BCSR4_USB_EN ((uint)0x00020000)
  50. #define BCSR5_MII2_EN 0x40
  51. #define BCSR5_MII2_RST 0x20
  52. #define BCSR5_T1_RST 0x10
  53. #define BCSR5_ATM155_RST 0x08
  54. #define BCSR5_ATM25_RST 0x04
  55. #define BCSR5_MII1_EN 0x02
  56. #define BCSR5_MII1_RST 0x01
  57. /* Interrupt level assignments */
  58. #define PHY_INTERRUPT SIU_IRQ7 /* PHY link change interrupt */
  59. #define SIU_INT_FEC1 SIU_LEVEL1 /* FEC1 interrupt */
  60. #define SIU_INT_FEC2 SIU_LEVEL3 /* FEC2 interrupt */
  61. #define FEC_INTERRUPT SIU_INT_FEC1 /* FEC interrupt */
  62. /* We don't use the 8259 */
  63. #define NR_8259_INTS 0
  64. /* CPM Ethernet through SCC3 */
  65. #define PA_ENET_RXD ((ushort)0x0040)
  66. #define PA_ENET_TXD ((ushort)0x0080)
  67. #define PE_ENET_TCLK ((uint)0x00004000)
  68. #define PE_ENET_RCLK ((uint)0x00008000)
  69. #define PE_ENET_TENA ((uint)0x00000010)
  70. #define PC_ENET_CLSN ((ushort)0x0400)
  71. #define PC_ENET_RENA ((ushort)0x0800)
  72. /* Control bits in the SICR to route TCLK (CLK5) and RCLK (CLK6) to
  73. * SCC3. Also, make sure GR3 (bit 8) and SC3 (bit 9) are zero */
  74. #define SICR_ENET_MASK ((uint)0x00ff0000)
  75. #define SICR_ENET_CLKRT ((uint)0x002c0000)
  76. #endif /* __ASM_MPC885ADS_H__ */
  77. #endif /* __KERNEL__ */