spd8xx.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * Speech Design SPD8xxTS board specific definitions
  3. *
  4. * Copyright (c) 2000,2001 Wolfgang Denk (wd@denx.de)
  5. */
  6. #ifdef __KERNEL__
  7. #ifndef __ASM_SPD8XX_H__
  8. #define __ASM_SPD8XX_H__
  9. #include <linux/config.h>
  10. #include <asm/ppcboot.h>
  11. #ifndef __ASSEMBLY__
  12. #define SPD_IMMR_BASE 0xFFF00000 /* phys. addr of IMMR */
  13. #define SPD_IMAP_SIZE (64 * 1024) /* size of mapped area */
  14. #define IMAP_ADDR SPD_IMMR_BASE /* physical base address of IMMR area */
  15. #define IMAP_SIZE SPD_IMAP_SIZE /* mapped size of IMMR area */
  16. #define PCMCIA_MEM_ADDR ((uint)0xFE100000)
  17. #define PCMCIA_MEM_SIZE ((uint)(64 * 1024))
  18. #define IDE0_INTERRUPT 10 /* = IRQ5 */
  19. #define IDE1_INTERRUPT 12 /* = IRQ6 */
  20. #define CPM_INTERRUPT 13 /* = SIU_LEVEL6 (was: SIU_LEVEL2) */
  21. /* override the default number of IDE hardware interfaces */
  22. #define MAX_HWIFS 2
  23. /*
  24. * Definitions for IDE0 Interface
  25. */
  26. #define IDE0_BASE_OFFSET 0x0000 /* Offset in PCMCIA memory */
  27. #define IDE0_DATA_REG_OFFSET 0x0000
  28. #define IDE0_ERROR_REG_OFFSET 0x0081
  29. #define IDE0_NSECTOR_REG_OFFSET 0x0082
  30. #define IDE0_SECTOR_REG_OFFSET 0x0083
  31. #define IDE0_LCYL_REG_OFFSET 0x0084
  32. #define IDE0_HCYL_REG_OFFSET 0x0085
  33. #define IDE0_SELECT_REG_OFFSET 0x0086
  34. #define IDE0_STATUS_REG_OFFSET 0x0087
  35. #define IDE0_CONTROL_REG_OFFSET 0x0106
  36. #define IDE0_IRQ_REG_OFFSET 0x000A /* not used */
  37. /*
  38. * Definitions for IDE1 Interface
  39. */
  40. #define IDE1_BASE_OFFSET 0x0C00 /* Offset in PCMCIA memory */
  41. #define IDE1_DATA_REG_OFFSET 0x0000
  42. #define IDE1_ERROR_REG_OFFSET 0x0081
  43. #define IDE1_NSECTOR_REG_OFFSET 0x0082
  44. #define IDE1_SECTOR_REG_OFFSET 0x0083
  45. #define IDE1_LCYL_REG_OFFSET 0x0084
  46. #define IDE1_HCYL_REG_OFFSET 0x0085
  47. #define IDE1_SELECT_REG_OFFSET 0x0086
  48. #define IDE1_STATUS_REG_OFFSET 0x0087
  49. #define IDE1_CONTROL_REG_OFFSET 0x0106
  50. #define IDE1_IRQ_REG_OFFSET 0x000A /* not used */
  51. /* CPM Ethernet through SCCx.
  52. *
  53. * Bits in parallel I/O port registers that have to be set/cleared
  54. * to configure the pins for SCC2 use.
  55. */
  56. #define PA_ENET_MDC ((ushort)0x0001) /* PA 15 !!! */
  57. #define PA_ENET_MDIO ((ushort)0x0002) /* PA 14 !!! */
  58. #define PA_ENET_RXD ((ushort)0x0004) /* PA 13 */
  59. #define PA_ENET_TXD ((ushort)0x0008) /* PA 12 */
  60. #define PA_ENET_RCLK ((ushort)0x0200) /* PA 6 */
  61. #define PA_ENET_TCLK ((ushort)0x0400) /* PA 5 */
  62. #define PB_ENET_TENA ((uint)0x00002000) /* PB 18 */
  63. #define PC_ENET_CLSN ((ushort)0x0040) /* PC 9 */
  64. #define PC_ENET_RENA ((ushort)0x0080) /* PC 8 */
  65. #define PC_ENET_RESET ((ushort)0x0100) /* PC 7 !!! */
  66. /* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK2) to
  67. * SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
  68. */
  69. #define SICR_ENET_MASK ((uint)0x0000ff00)
  70. #define SICR_ENET_CLKRT ((uint)0x00002E00)
  71. /* We don't use the 8259.
  72. */
  73. #define NR_8259_INTS 0
  74. #endif /* !__ASSEMBLY__ */
  75. #endif /* __ASM_SPD8XX_H__ */
  76. #endif /* __KERNEL__ */