rpxlite.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * A collection of structures, addresses, and values associated with
  3. * the RPCG RPX-Lite board. Copied from the MBX stuff.
  4. *
  5. * Copyright (c) 1998 Dan Malek (dmalek@jlc.net)
  6. */
  7. #ifdef __KERNEL__
  8. #ifndef __MACH_RPX_DEFS
  9. #define __MACH_RPX_DEFS
  10. #ifndef __ASSEMBLY__
  11. /* A Board Information structure that is given to a program when
  12. * prom starts it up.
  13. */
  14. typedef struct bd_info {
  15. unsigned int bi_memstart; /* Memory start address */
  16. unsigned int bi_memsize; /* Memory (end) size in bytes */
  17. unsigned int bi_intfreq; /* Internal Freq, in Hz */
  18. unsigned int bi_busfreq; /* Bus Freq, in Hz */
  19. unsigned char bi_enetaddr[6];
  20. unsigned int bi_baudrate;
  21. } bd_t;
  22. extern bd_t m8xx_board_info;
  23. /* Memory map is configured by the PROM startup.
  24. * We just map a few things we need. The CSR is actually 4 byte-wide
  25. * registers that can be accessed as 8-, 16-, or 32-bit values.
  26. */
  27. #define RPX_CSR_ADDR ((uint)0xfa400000)
  28. #define RPX_CSR_SIZE ((uint)(4 * 1024))
  29. #define IMAP_ADDR ((uint)0xfa200000)
  30. #define IMAP_SIZE ((uint)(64 * 1024))
  31. #define PCMCIA_MEM_ADDR ((uint)0x04000000)
  32. #define PCMCIA_MEM_SIZE ((uint)(64 * 1024))
  33. #define PCMCIA_IO_ADDR ((uint)0x04400000)
  34. #define PCMCIA_IO_SIZE ((uint)(4 * 1024))
  35. /* Things of interest in the CSR.
  36. */
  37. #define BCSR0_ETHEN ((uint)0x80000000)
  38. #define BCSR0_ETHLPBK ((uint)0x40000000)
  39. #define BCSR0_COLTESTDIS ((uint)0x20000000)
  40. #define BCSR0_FULLDPLXDIS ((uint)0x10000000)
  41. #define BCSR0_LEDOFF ((uint)0x08000000)
  42. #define BCSR0_USBDISABLE ((uint)0x04000000)
  43. #define BCSR0_USBHISPEED ((uint)0x02000000)
  44. #define BCSR0_USBPWREN ((uint)0x01000000)
  45. #define BCSR0_PCMCIAVOLT ((uint)0x000f0000)
  46. #define BCSR0_PCMCIA3VOLT ((uint)0x000a0000)
  47. #define BCSR0_PCMCIA5VOLT ((uint)0x00060000)
  48. #define BCSR1_IPB5SEL ((uint)0x00100000)
  49. #define BCSR1_PCVCTL4 ((uint)0x00080000)
  50. #define BCSR1_PCVCTL5 ((uint)0x00040000)
  51. #define BCSR1_PCVCTL6 ((uint)0x00020000)
  52. #define BCSR1_PCVCTL7 ((uint)0x00010000)
  53. #if defined(CONFIG_HTDMSOUND)
  54. #include <platforms/rpxhiox.h>
  55. #endif
  56. /* define IO_BASE for pcmcia */
  57. #define _IO_BASE 0x80000000
  58. #define _IO_BASE_SIZE 0x1000
  59. #ifdef CONFIG_IDE
  60. # define MAX_HWIFS 1
  61. #endif
  62. /* CPM Ethernet through SCCx.
  63. *
  64. * This ENET stuff is for the MPC850 with ethernet on SCC2. Some of
  65. * this may be unique to the RPX-Lite configuration.
  66. * Note TENA is on Port B.
  67. */
  68. #define PA_ENET_RXD ((ushort)0x0004)
  69. #define PA_ENET_TXD ((ushort)0x0008)
  70. #define PA_ENET_TCLK ((ushort)0x0200)
  71. #define PA_ENET_RCLK ((ushort)0x0800)
  72. #define PB_ENET_TENA ((uint)0x00002000)
  73. #define PC_ENET_CLSN ((ushort)0x0040)
  74. #define PC_ENET_RENA ((ushort)0x0080)
  75. #define SICR_ENET_MASK ((uint)0x0000ff00)
  76. #define SICR_ENET_CLKRT ((uint)0x00003d00)
  77. /* We don't use the 8259.
  78. */
  79. #define NR_8259_INTS 0
  80. #endif /* !__ASSEMBLY__ */
  81. #endif /* __MACH_RPX_DEFS */
  82. #endif /* __KERNEL__ */