pins.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * Freescale STMP37XX SoC pin multiplexing
  3. *
  4. * Author: Vladislav Buzov <vbuzov@embeddedalley.com>
  5. *
  6. * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
  7. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
  8. */
  9. /*
  10. * The code contained herein is licensed under the GNU General Public
  11. * License. You may obtain a copy of the GNU General Public License
  12. * Version 2 or later at the following locations:
  13. *
  14. * http://www.opensource.org/licenses/gpl-license.html
  15. * http://www.gnu.org/copyleft/gpl.html
  16. */
  17. #ifndef __ASM_ARCH_PINS_H
  18. #define __ASM_ARCH_PINS_H
  19. /*
  20. * Define all STMP37XX pins, a pin name corresponds to a STMP37xx hardware
  21. * interface this pin belongs to.
  22. */
  23. /* Bank 0 */
  24. #define PINID_GPMI_D00 STMP3XXX_PINID(0, 0)
  25. #define PINID_GPMI_D01 STMP3XXX_PINID(0, 1)
  26. #define PINID_GPMI_D02 STMP3XXX_PINID(0, 2)
  27. #define PINID_GPMI_D03 STMP3XXX_PINID(0, 3)
  28. #define PINID_GPMI_D04 STMP3XXX_PINID(0, 4)
  29. #define PINID_GPMI_D05 STMP3XXX_PINID(0, 5)
  30. #define PINID_GPMI_D06 STMP3XXX_PINID(0, 6)
  31. #define PINID_GPMI_D07 STMP3XXX_PINID(0, 7)
  32. #define PINID_GPMI_D08 STMP3XXX_PINID(0, 8)
  33. #define PINID_GPMI_D09 STMP3XXX_PINID(0, 9)
  34. #define PINID_GPMI_D10 STMP3XXX_PINID(0, 10)
  35. #define PINID_GPMI_D11 STMP3XXX_PINID(0, 11)
  36. #define PINID_GPMI_D12 STMP3XXX_PINID(0, 12)
  37. #define PINID_GPMI_D13 STMP3XXX_PINID(0, 13)
  38. #define PINID_GPMI_D14 STMP3XXX_PINID(0, 14)
  39. #define PINID_GPMI_D15 STMP3XXX_PINID(0, 15)
  40. #define PINID_GPMI_A0 STMP3XXX_PINID(0, 16)
  41. #define PINID_GPMI_A1 STMP3XXX_PINID(0, 17)
  42. #define PINID_GPMI_A2 STMP3XXX_PINID(0, 18)
  43. #define PINID_GPMI_RDY0 STMP3XXX_PINID(0, 19)
  44. #define PINID_GPMI_RDY2 STMP3XXX_PINID(0, 20)
  45. #define PINID_GPMI_RDY3 STMP3XXX_PINID(0, 21)
  46. #define PINID_GPMI_RESETN STMP3XXX_PINID(0, 22)
  47. #define PINID_GPMI_IRQ STMP3XXX_PINID(0, 23)
  48. #define PINID_GPMI_WRN STMP3XXX_PINID(0, 24)
  49. #define PINID_GPMI_RDN STMP3XXX_PINID(0, 25)
  50. #define PINID_UART2_CTS STMP3XXX_PINID(0, 26)
  51. #define PINID_UART2_RTS STMP3XXX_PINID(0, 27)
  52. #define PINID_UART2_RX STMP3XXX_PINID(0, 28)
  53. #define PINID_UART2_TX STMP3XXX_PINID(0, 29)
  54. /* Bank 1 */
  55. #define PINID_LCD_D00 STMP3XXX_PINID(1, 0)
  56. #define PINID_LCD_D01 STMP3XXX_PINID(1, 1)
  57. #define PINID_LCD_D02 STMP3XXX_PINID(1, 2)
  58. #define PINID_LCD_D03 STMP3XXX_PINID(1, 3)
  59. #define PINID_LCD_D04 STMP3XXX_PINID(1, 4)
  60. #define PINID_LCD_D05 STMP3XXX_PINID(1, 5)
  61. #define PINID_LCD_D06 STMP3XXX_PINID(1, 6)
  62. #define PINID_LCD_D07 STMP3XXX_PINID(1, 7)
  63. #define PINID_LCD_D08 STMP3XXX_PINID(1, 8)
  64. #define PINID_LCD_D09 STMP3XXX_PINID(1, 9)
  65. #define PINID_LCD_D10 STMP3XXX_PINID(1, 10)
  66. #define PINID_LCD_D11 STMP3XXX_PINID(1, 11)
  67. #define PINID_LCD_D12 STMP3XXX_PINID(1, 12)
  68. #define PINID_LCD_D13 STMP3XXX_PINID(1, 13)
  69. #define PINID_LCD_D14 STMP3XXX_PINID(1, 14)
  70. #define PINID_LCD_D15 STMP3XXX_PINID(1, 15)
  71. #define PINID_LCD_RESET STMP3XXX_PINID(1, 16)
  72. #define PINID_LCD_RS STMP3XXX_PINID(1, 17)
  73. #define PINID_LCD_WR_RWN STMP3XXX_PINID(1, 18)
  74. #define PINID_LCD_RD_E STMP3XXX_PINID(1, 19)
  75. #define PINID_LCD_CS STMP3XXX_PINID(1, 20)
  76. #define PINID_LCD_BUSY STMP3XXX_PINID(1, 21)
  77. #define PINID_SSP1_CMD STMP3XXX_PINID(1, 22)
  78. #define PINID_SSP1_SCK STMP3XXX_PINID(1, 23)
  79. #define PINID_SSP1_DATA0 STMP3XXX_PINID(1, 24)
  80. #define PINID_SSP1_DATA1 STMP3XXX_PINID(1, 25)
  81. #define PINID_SSP1_DATA2 STMP3XXX_PINID(1, 26)
  82. #define PINID_SSP1_DATA3 STMP3XXX_PINID(1, 27)
  83. #define PINID_SSP1_DETECT STMP3XXX_PINID(1, 28)
  84. /* Bank 2 */
  85. #define PINID_PWM0 STMP3XXX_PINID(2, 0)
  86. #define PINID_PWM1 STMP3XXX_PINID(2, 1)
  87. #define PINID_PWM2 STMP3XXX_PINID(2, 2)
  88. #define PINID_PWM3 STMP3XXX_PINID(2, 3)
  89. #define PINID_PWM4 STMP3XXX_PINID(2, 4)
  90. #define PINID_I2C_SCL STMP3XXX_PINID(2, 5)
  91. #define PINID_I2C_SDA STMP3XXX_PINID(2, 6)
  92. #define PINID_ROTTARYA STMP3XXX_PINID(2, 7)
  93. #define PINID_ROTTARYB STMP3XXX_PINID(2, 8)
  94. #define PINID_EMI_CKE STMP3XXX_PINID(2, 9)
  95. #define PINID_EMI_RASN STMP3XXX_PINID(2, 10)
  96. #define PINID_EMI_CASN STMP3XXX_PINID(2, 11)
  97. #define PINID_EMI_CE0N STMP3XXX_PINID(2, 12)
  98. #define PINID_EMI_CE1N STMP3XXX_PINID(2, 13)
  99. #define PINID_EMI_CE2N STMP3XXX_PINID(2, 14)
  100. #define PINID_EMI_CE3N STMP3XXX_PINID(2, 15)
  101. #define PINID_EMI_A00 STMP3XXX_PINID(2, 16)
  102. #define PINID_EMI_A01 STMP3XXX_PINID(2, 17)
  103. #define PINID_EMI_A02 STMP3XXX_PINID(2, 18)
  104. #define PINID_EMI_A03 STMP3XXX_PINID(2, 19)
  105. #define PINID_EMI_A04 STMP3XXX_PINID(2, 20)
  106. #define PINID_EMI_A05 STMP3XXX_PINID(2, 21)
  107. #define PINID_EMI_A06 STMP3XXX_PINID(2, 22)
  108. #define PINID_EMI_A07 STMP3XXX_PINID(2, 23)
  109. #define PINID_EMI_A08 STMP3XXX_PINID(2, 24)
  110. #define PINID_EMI_A09 STMP3XXX_PINID(2, 25)
  111. #define PINID_EMI_A10 STMP3XXX_PINID(2, 26)
  112. #define PINID_EMI_A11 STMP3XXX_PINID(2, 27)
  113. #define PINID_EMI_A12 STMP3XXX_PINID(2, 28)
  114. #define PINID_EMI_A13 STMP3XXX_PINID(2, 29)
  115. #define PINID_EMI_A14 STMP3XXX_PINID(2, 30)
  116. #define PINID_EMI_WEN STMP3XXX_PINID(2, 31)
  117. /* Bank 3 */
  118. #define PINID_EMI_D00 STMP3XXX_PINID(3, 0)
  119. #define PINID_EMI_D01 STMP3XXX_PINID(3, 1)
  120. #define PINID_EMI_D02 STMP3XXX_PINID(3, 2)
  121. #define PINID_EMI_D03 STMP3XXX_PINID(3, 3)
  122. #define PINID_EMI_D04 STMP3XXX_PINID(3, 4)
  123. #define PINID_EMI_D05 STMP3XXX_PINID(3, 5)
  124. #define PINID_EMI_D06 STMP3XXX_PINID(3, 6)
  125. #define PINID_EMI_D07 STMP3XXX_PINID(3, 7)
  126. #define PINID_EMI_D08 STMP3XXX_PINID(3, 8)
  127. #define PINID_EMI_D09 STMP3XXX_PINID(3, 9)
  128. #define PINID_EMI_D10 STMP3XXX_PINID(3, 10)
  129. #define PINID_EMI_D11 STMP3XXX_PINID(3, 11)
  130. #define PINID_EMI_D12 STMP3XXX_PINID(3, 12)
  131. #define PINID_EMI_D13 STMP3XXX_PINID(3, 13)
  132. #define PINID_EMI_D14 STMP3XXX_PINID(3, 14)
  133. #define PINID_EMI_D15 STMP3XXX_PINID(3, 15)
  134. #define PINID_EMI_DQS0 STMP3XXX_PINID(3, 16)
  135. #define PINID_EMI_DQS1 STMP3XXX_PINID(3, 17)
  136. #define PINID_EMI_DQM0 STMP3XXX_PINID(3, 18)
  137. #define PINID_EMI_DQM1 STMP3XXX_PINID(3, 19)
  138. #define PINID_EMI_CLK STMP3XXX_PINID(3, 20)
  139. #define PINID_EMI_CLKN STMP3XXX_PINID(3, 21)
  140. #endif /* __ASM_ARCH_PINS_H */