at91rm9200.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * arch/arm/mach-at91/include/mach/at91rm9200.h
  3. *
  4. * Copyright (C) 2005 Ivan Kokshaysky
  5. * Copyright (C) SAN People
  6. *
  7. * Common definitions.
  8. * Based on AT91RM9200 datasheet revision E.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. */
  15. #ifndef AT91RM9200_H
  16. #define AT91RM9200_H
  17. /*
  18. * Peripheral identifiers/interrupts.
  19. */
  20. #define AT91RM9200_ID_PIOA 2 /* Parallel IO Controller A */
  21. #define AT91RM9200_ID_PIOB 3 /* Parallel IO Controller B */
  22. #define AT91RM9200_ID_PIOC 4 /* Parallel IO Controller C */
  23. #define AT91RM9200_ID_PIOD 5 /* Parallel IO Controller D */
  24. #define AT91RM9200_ID_US0 6 /* USART 0 */
  25. #define AT91RM9200_ID_US1 7 /* USART 1 */
  26. #define AT91RM9200_ID_US2 8 /* USART 2 */
  27. #define AT91RM9200_ID_US3 9 /* USART 3 */
  28. #define AT91RM9200_ID_MCI 10 /* Multimedia Card Interface */
  29. #define AT91RM9200_ID_UDP 11 /* USB Device Port */
  30. #define AT91RM9200_ID_TWI 12 /* Two-Wire Interface */
  31. #define AT91RM9200_ID_SPI 13 /* Serial Peripheral Interface */
  32. #define AT91RM9200_ID_SSC0 14 /* Serial Synchronous Controller 0 */
  33. #define AT91RM9200_ID_SSC1 15 /* Serial Synchronous Controller 1 */
  34. #define AT91RM9200_ID_SSC2 16 /* Serial Synchronous Controller 2 */
  35. #define AT91RM9200_ID_TC0 17 /* Timer Counter 0 */
  36. #define AT91RM9200_ID_TC1 18 /* Timer Counter 1 */
  37. #define AT91RM9200_ID_TC2 19 /* Timer Counter 2 */
  38. #define AT91RM9200_ID_TC3 20 /* Timer Counter 3 */
  39. #define AT91RM9200_ID_TC4 21 /* Timer Counter 4 */
  40. #define AT91RM9200_ID_TC5 22 /* Timer Counter 5 */
  41. #define AT91RM9200_ID_UHP 23 /* USB Host port */
  42. #define AT91RM9200_ID_EMAC 24 /* Ethernet MAC */
  43. #define AT91RM9200_ID_IRQ0 25 /* Advanced Interrupt Controller (IRQ0) */
  44. #define AT91RM9200_ID_IRQ1 26 /* Advanced Interrupt Controller (IRQ1) */
  45. #define AT91RM9200_ID_IRQ2 27 /* Advanced Interrupt Controller (IRQ2) */
  46. #define AT91RM9200_ID_IRQ3 28 /* Advanced Interrupt Controller (IRQ3) */
  47. #define AT91RM9200_ID_IRQ4 29 /* Advanced Interrupt Controller (IRQ4) */
  48. #define AT91RM9200_ID_IRQ5 30 /* Advanced Interrupt Controller (IRQ5) */
  49. #define AT91RM9200_ID_IRQ6 31 /* Advanced Interrupt Controller (IRQ6) */
  50. /*
  51. * Peripheral physical base addresses.
  52. */
  53. #define AT91RM9200_BASE_TCB0 0xfffa0000
  54. #define AT91RM9200_BASE_TC0 0xfffa0000
  55. #define AT91RM9200_BASE_TC1 0xfffa0040
  56. #define AT91RM9200_BASE_TC2 0xfffa0080
  57. #define AT91RM9200_BASE_TCB1 0xfffa4000
  58. #define AT91RM9200_BASE_TC3 0xfffa4000
  59. #define AT91RM9200_BASE_TC4 0xfffa4040
  60. #define AT91RM9200_BASE_TC5 0xfffa4080
  61. #define AT91RM9200_BASE_UDP 0xfffb0000
  62. #define AT91RM9200_BASE_MCI 0xfffb4000
  63. #define AT91RM9200_BASE_TWI 0xfffb8000
  64. #define AT91RM9200_BASE_EMAC 0xfffbc000
  65. #define AT91RM9200_BASE_US0 0xfffc0000
  66. #define AT91RM9200_BASE_US1 0xfffc4000
  67. #define AT91RM9200_BASE_US2 0xfffc8000
  68. #define AT91RM9200_BASE_US3 0xfffcc000
  69. #define AT91RM9200_BASE_SSC0 0xfffd0000
  70. #define AT91RM9200_BASE_SSC1 0xfffd4000
  71. #define AT91RM9200_BASE_SSC2 0xfffd8000
  72. #define AT91RM9200_BASE_SPI 0xfffe0000
  73. /*
  74. * System Peripherals
  75. */
  76. #define AT91RM9200_BASE_DBGU AT91_BASE_DBGU0 /* Debug Unit */
  77. #define AT91RM9200_BASE_PIOA 0xfffff400 /* PIO Controller A */
  78. #define AT91RM9200_BASE_PIOB 0xfffff600 /* PIO Controller B */
  79. #define AT91RM9200_BASE_PIOC 0xfffff800 /* PIO Controller C */
  80. #define AT91RM9200_BASE_PIOD 0xfffffa00 /* PIO Controller D */
  81. #define AT91RM9200_BASE_ST 0xfffffd00 /* System Timer */
  82. #define AT91RM9200_BASE_RTC 0xfffffe00 /* Real-Time Clock */
  83. #define AT91RM9200_BASE_MC 0xffffff00 /* Memory Controllers */
  84. #define AT91_USART0 AT91RM9200_BASE_US0
  85. #define AT91_USART1 AT91RM9200_BASE_US1
  86. #define AT91_USART2 AT91RM9200_BASE_US2
  87. #define AT91_USART3 AT91RM9200_BASE_US3
  88. /*
  89. * Internal Memory.
  90. */
  91. #define AT91RM9200_ROM_BASE 0x00100000 /* Internal ROM base address */
  92. #define AT91RM9200_ROM_SIZE SZ_128K /* Internal ROM size (128Kb) */
  93. #define AT91RM9200_SRAM_BASE 0x00200000 /* Internal SRAM base address */
  94. #define AT91RM9200_SRAM_SIZE SZ_16K /* Internal SRAM size (16Kb) */
  95. #define AT91RM9200_UHP_BASE 0x00300000 /* USB Host controller */
  96. #endif