Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 1 | #ifndef __ASM_SH7757_H__ |
| 2 | #define __ASM_SH7757_H__ |
| 3 | |
| 4 | enum { |
| 5 | /* PTA */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 6 | GPIO_PTA0, GPIO_PTA1, GPIO_PTA2, GPIO_PTA3, |
| 7 | GPIO_PTA4, GPIO_PTA5, GPIO_PTA6, GPIO_PTA7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 8 | |
| 9 | /* PTB */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 10 | GPIO_PTB0, GPIO_PTB1, GPIO_PTB2, GPIO_PTB3, |
| 11 | GPIO_PTB4, GPIO_PTB5, GPIO_PTB6, GPIO_PTB7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 12 | |
| 13 | /* PTC */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 14 | GPIO_PTC0, GPIO_PTC1, GPIO_PTC2, GPIO_PTC3, |
| 15 | GPIO_PTC4, GPIO_PTC5, GPIO_PTC6, GPIO_PTC7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 16 | |
| 17 | /* PTD */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 18 | GPIO_PTD0, GPIO_PTD1, GPIO_PTD2, GPIO_PTD3, |
| 19 | GPIO_PTD4, GPIO_PTD5, GPIO_PTD6, GPIO_PTD7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 20 | |
| 21 | /* PTE */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 22 | GPIO_PTE0, GPIO_PTE1, GPIO_PTE2, GPIO_PTE3, |
| 23 | GPIO_PTE4, GPIO_PTE5, GPIO_PTE6, GPIO_PTE7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 24 | |
| 25 | /* PTF */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 26 | GPIO_PTF0, GPIO_PTF1, GPIO_PTF2, GPIO_PTF3, |
| 27 | GPIO_PTF4, GPIO_PTF5, GPIO_PTF6, GPIO_PTF7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 28 | |
| 29 | /* PTG */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 30 | GPIO_PTG0, GPIO_PTG1, GPIO_PTG2, GPIO_PTG3, |
| 31 | GPIO_PTG4, GPIO_PTG5, GPIO_PTG6, GPIO_PTG7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 32 | |
| 33 | /* PTH */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 34 | GPIO_PTH0, GPIO_PTH1, GPIO_PTH2, GPIO_PTH3, |
| 35 | GPIO_PTH4, GPIO_PTH5, GPIO_PTH6, GPIO_PTH7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 36 | |
| 37 | /* PTI */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 38 | GPIO_PTI0, GPIO_PTI1, GPIO_PTI2, GPIO_PTI3, |
| 39 | GPIO_PTI4, GPIO_PTI5, GPIO_PTI6, GPIO_PTI7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 40 | |
| 41 | /* PTJ */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 42 | GPIO_PTJ0, GPIO_PTJ1, GPIO_PTJ2, GPIO_PTJ3, |
| 43 | GPIO_PTJ4, GPIO_PTJ5, GPIO_PTJ6, GPIO_PTJ7_RESV, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 44 | |
| 45 | /* PTK */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 46 | GPIO_PTK0, GPIO_PTK1, GPIO_PTK2, GPIO_PTK3, |
| 47 | GPIO_PTK4, GPIO_PTK5, GPIO_PTK6, GPIO_PTK7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 48 | |
| 49 | /* PTL */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 50 | GPIO_PTL0, GPIO_PTL1, GPIO_PTL2, GPIO_PTL3, |
| 51 | GPIO_PTL4, GPIO_PTL5, GPIO_PTL6, GPIO_PTL7_RESV, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 52 | |
| 53 | /* PTM */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 54 | GPIO_PTM0, GPIO_PTM1, GPIO_PTM2, GPIO_PTM3, |
| 55 | GPIO_PTM4, GPIO_PTM5, GPIO_PTM6, GPIO_PTM7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 56 | |
| 57 | /* PTN */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 58 | GPIO_PTN0, GPIO_PTN1, GPIO_PTN2, GPIO_PTN3, |
| 59 | GPIO_PTN4, GPIO_PTN5, GPIO_PTN6, GPIO_PTN7_RESV, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 60 | |
| 61 | /* PTO */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 62 | GPIO_PTO0, GPIO_PTO1, GPIO_PTO2, GPIO_PTO3, |
| 63 | GPIO_PTO4, GPIO_PTO5, GPIO_PTO6, GPIO_PTO7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 64 | |
| 65 | /* PTP */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 66 | GPIO_PTP0, GPIO_PTP1, GPIO_PTP2, GPIO_PTP3, |
| 67 | GPIO_PTP4, GPIO_PTP5, GPIO_PTP6, GPIO_PTP7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 68 | |
| 69 | /* PTQ */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 70 | GPIO_PTQ0, GPIO_PTQ1, GPIO_PTQ2, GPIO_PTQ3, |
| 71 | GPIO_PTQ4, GPIO_PTQ5, GPIO_PTQ6, GPIO_PTQ7_RESV, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 72 | |
| 73 | /* PTR */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 74 | GPIO_PTR0, GPIO_PTR1, GPIO_PTR2, GPIO_PTR3, |
| 75 | GPIO_PTR4, GPIO_PTR5, GPIO_PTR6, GPIO_PTR7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 76 | |
| 77 | /* PTS */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 78 | GPIO_PTS0, GPIO_PTS1, GPIO_PTS2, GPIO_PTS3, |
| 79 | GPIO_PTS4, GPIO_PTS5, GPIO_PTS6, GPIO_PTS7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 80 | |
| 81 | /* PTT */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 82 | GPIO_PTT0, GPIO_PTT1, GPIO_PTT2, GPIO_PTT3, |
| 83 | GPIO_PTT4, GPIO_PTT5, GPIO_PTT6, GPIO_PTT7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 84 | |
| 85 | /* PTU */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 86 | GPIO_PTU0, GPIO_PTU1, GPIO_PTU2, GPIO_PTU3, |
| 87 | GPIO_PTU4, GPIO_PTU5, GPIO_PTU6, GPIO_PTU7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 88 | |
| 89 | /* PTV */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 90 | GPIO_PTV0, GPIO_PTV1, GPIO_PTV2, GPIO_PTV3, |
| 91 | GPIO_PTV4, GPIO_PTV5, GPIO_PTV6, GPIO_PTV7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 92 | |
| 93 | /* PTW */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 94 | GPIO_PTW0, GPIO_PTW1, GPIO_PTW2, GPIO_PTW3, |
| 95 | GPIO_PTW4, GPIO_PTW5, GPIO_PTW6, GPIO_PTW7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 96 | |
| 97 | /* PTX */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 98 | GPIO_PTX0, GPIO_PTX1, GPIO_PTX2, GPIO_PTX3, |
| 99 | GPIO_PTX4, GPIO_PTX5, GPIO_PTX6, GPIO_PTX7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 100 | |
| 101 | /* PTY */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 102 | GPIO_PTY0, GPIO_PTY1, GPIO_PTY2, GPIO_PTY3, |
| 103 | GPIO_PTY4, GPIO_PTY5, GPIO_PTY6, GPIO_PTY7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 104 | |
| 105 | /* PTZ */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 106 | GPIO_PTZ0, GPIO_PTZ1, GPIO_PTZ2, GPIO_PTZ3, |
| 107 | GPIO_PTZ4, GPIO_PTZ5, GPIO_PTZ6, GPIO_PTZ7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 108 | |
| 109 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 110 | /* PTA (mobule: LBSC, RGMII) */ |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 111 | GPIO_FN_BS, GPIO_FN_RDWR, GPIO_FN_WE1, GPIO_FN_RDY, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 112 | GPIO_FN_ET0_MDC, GPIO_FN_ET0_MDIO, |
| 113 | GPIO_FN_ET1_MDC, GPIO_FN_ET1_MDIO, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 114 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 115 | /* PTB (mobule: INTC, ONFI, TMU) */ |
| 116 | GPIO_FN_IRQ15, GPIO_FN_IRQ14, GPIO_FN_IRQ13, GPIO_FN_IRQ12, |
| 117 | GPIO_FN_IRQ11, GPIO_FN_IRQ10, GPIO_FN_IRQ9, GPIO_FN_IRQ8, |
| 118 | GPIO_FN_ON_NRE, GPIO_FN_ON_NWE, GPIO_FN_ON_NWP, GPIO_FN_ON_NCE0, |
| 119 | GPIO_FN_ON_R_B0, GPIO_FN_ON_ALE, GPIO_FN_ON_CLE, |
| 120 | GPIO_FN_TCLK, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 121 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 122 | /* PTC (mobule: IRQ, PWMU) */ |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 123 | GPIO_FN_IRQ7, GPIO_FN_IRQ6, GPIO_FN_IRQ5, GPIO_FN_IRQ4, |
| 124 | GPIO_FN_IRQ3, GPIO_FN_IRQ2, GPIO_FN_IRQ1, GPIO_FN_IRQ0, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 125 | GPIO_FN_PWMU0, GPIO_FN_PWMU1, GPIO_FN_PWMU2, GPIO_FN_PWMU3, |
| 126 | GPIO_FN_PWMU4, GPIO_FN_PWMU5, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 127 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 128 | /* PTD (mobule: SPI0, DMAC) */ |
| 129 | GPIO_FN_SP0_MOSI, GPIO_FN_SP0_MISO, GPIO_FN_SP0_SCK, |
| 130 | GPIO_FN_SP0_SCK_FB, GPIO_FN_SP0_SS0, GPIO_FN_SP0_SS1, |
| 131 | GPIO_FN_SP0_SS2, GPIO_FN_SP0_SS3, GPIO_FN_DREQ0, |
| 132 | GPIO_FN_DACK0, GPIO_FN_TEND0, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 133 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 134 | /* PTE (mobule: RMII) */ |
| 135 | GPIO_FN_RMII0_CRS_DV, GPIO_FN_RMII0_TXD1, GPIO_FN_RMII0_TXD0, |
| 136 | GPIO_FN_RMII0_TXEN, GPIO_FN_RMII0_REFCLK, GPIO_FN_RMII0_RXD1, |
| 137 | GPIO_FN_RMII0_RXD0, GPIO_FN_RMII0_RX_ER, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 138 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 139 | /* PTF (mobule: RMII, SerMux) */ |
| 140 | GPIO_FN_RMII1_CRS_DV, GPIO_FN_RMII1_TXD1, GPIO_FN_RMII1_TXD0, |
| 141 | GPIO_FN_RMII1_TXEN, GPIO_FN_RMII1_REFCLK, GPIO_FN_RMII1_RXD1, |
| 142 | GPIO_FN_RMII1_RXD0, GPIO_FN_RMII1_RX_ER, GPIO_FN_RAC_RI, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 143 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 144 | /* PTG (mobule: system, LBSC, LPC, WDT, LPC, eMMC) */ |
| 145 | GPIO_FN_BOOTFMS, GPIO_FN_BOOTWP, |
| 146 | GPIO_FN_A25, GPIO_FN_A24, GPIO_FN_SERIRQ, GPIO_FN_WDTOVF, |
| 147 | GPIO_FN_LPCPD, GPIO_FN_LDRQ, GPIO_FN_MMCCLK, GPIO_FN_MMCCMD, |
| 148 | |
| 149 | /* PTH (mobule: SPI1, LPC, DMAC, ADC) */ |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 150 | GPIO_FN_SP1_MOSI, GPIO_FN_SP1_MISO, |
| 151 | GPIO_FN_SP1_SCK, GPIO_FN_SP1_SCK_FB, |
| 152 | GPIO_FN_SP1_SS0, GPIO_FN_SP1_SS1, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 153 | GPIO_FN_WP, GPIO_FN_FMS0, GPIO_FN_TEND1, GPIO_FN_DREQ1, |
| 154 | GPIO_FN_DACK1, GPIO_FN_ADTRG1, GPIO_FN_ADTRG0, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 155 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 156 | /* PTI (mobule: LBSC, SDHI) */ |
| 157 | GPIO_FN_D15, GPIO_FN_D14, GPIO_FN_D13, GPIO_FN_D12, |
| 158 | GPIO_FN_D11, GPIO_FN_D10, GPIO_FN_D9, GPIO_FN_D8, |
| 159 | GPIO_FN_SD_WP, GPIO_FN_SD_CD, GPIO_FN_SD_CLK, GPIO_FN_SD_CMD, |
| 160 | GPIO_FN_SD_D3, GPIO_FN_SD_D2, GPIO_FN_SD_D1, GPIO_FN_SD_D0, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 161 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 162 | /* PTJ (mobule: SCIF234) */ |
| 163 | GPIO_FN_RTS3, GPIO_FN_CTS3, GPIO_FN_TXD3, GPIO_FN_RXD3, |
| 164 | GPIO_FN_RTS4, GPIO_FN_RXD4, GPIO_FN_TXD4, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 165 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 166 | /* PTK (mobule: SERMUX, LBSC, SCIF) */ |
| 167 | GPIO_FN_COM2_TXD, GPIO_FN_COM2_RXD, GPIO_FN_COM2_RTS, |
| 168 | GPIO_FN_COM2_CTS, GPIO_FN_COM2_DTR, GPIO_FN_COM2_DSR, |
| 169 | GPIO_FN_COM2_DCD, GPIO_FN_CLKOUT, |
| 170 | GPIO_FN_SCK2, GPIO_FN_SCK4, GPIO_FN_SCK3, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 171 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 172 | /* PTL (mobule: SERMUX, SCIF, LBSC, AUD) */ |
| 173 | GPIO_FN_RAC_RXD, GPIO_FN_RAC_RTS, GPIO_FN_RAC_CTS, |
| 174 | GPIO_FN_RAC_DTR, GPIO_FN_RAC_DSR, GPIO_FN_RAC_DCD, |
| 175 | GPIO_FN_RAC_TXD, GPIO_FN_RXD2, GPIO_FN_CS5, |
| 176 | GPIO_FN_CS6, GPIO_FN_AUDSYNC, GPIO_FN_AUDCK, |
| 177 | GPIO_FN_TXD2, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 178 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 179 | /* PTM (mobule: LBSC, IIC) */ |
| 180 | GPIO_FN_CS4, GPIO_FN_RD, GPIO_FN_WE0, GPIO_FN_CS0, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 181 | GPIO_FN_SDA6, GPIO_FN_SCL6, GPIO_FN_SDA7, GPIO_FN_SCL7, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 182 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 183 | /* PTN (mobule: USB, JMC, SGPIO, WDT) */ |
| 184 | GPIO_FN_VBUS_EN, GPIO_FN_VBUS_OC, GPIO_FN_JMCTCK, |
| 185 | GPIO_FN_JMCTMS, GPIO_FN_JMCTDO, GPIO_FN_JMCTDI, |
| 186 | GPIO_FN_JMCTRST, |
| 187 | GPIO_FN_SGPIO1_CLK, GPIO_FN_SGPIO1_LOAD, GPIO_FN_SGPIO1_DI, |
| 188 | GPIO_FN_SGPIO1_DO, GPIO_FN_SUB_CLKIN, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 189 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 190 | /* PTO (mobule: SGPIO, SerMux) */ |
| 191 | GPIO_FN_SGPIO0_CLK, GPIO_FN_SGPIO0_LOAD, GPIO_FN_SGPIO0_DI, |
| 192 | GPIO_FN_SGPIO0_DO, GPIO_FN_SGPIO2_CLK, GPIO_FN_SGPIO2_LOAD, |
| 193 | GPIO_FN_SGPIO2_DI, GPIO_FN_SGPIO2_DO, GPIO_FN_COM1_TXD, |
| 194 | GPIO_FN_COM1_RXD, GPIO_FN_COM1_RTS, GPIO_FN_COM1_CTS, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 195 | |
| 196 | /* PTQ (mobule: LPC) */ |
| 197 | GPIO_FN_LAD3, GPIO_FN_LAD2, GPIO_FN_LAD1, GPIO_FN_LAD0, |
| 198 | GPIO_FN_LFRAME, GPIO_FN_LRESET, GPIO_FN_LCLK, |
| 199 | |
| 200 | /* PTR (mobule: GRA, IIC) */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 201 | GPIO_FN_DDC3, GPIO_FN_DDC2, GPIO_FN_SDA2, GPIO_FN_SCL2, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 202 | GPIO_FN_SDA1, GPIO_FN_SCL1, GPIO_FN_SDA0, GPIO_FN_SCL0, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 203 | GPIO_FN_SDA8, GPIO_FN_SCL8, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 204 | |
| 205 | /* PTS (mobule: GRA, IIC) */ |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 206 | GPIO_FN_DDC1, GPIO_FN_DDC0, GPIO_FN_SDA5, GPIO_FN_SCL5, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 207 | GPIO_FN_SDA4, GPIO_FN_SCL4, GPIO_FN_SDA3, GPIO_FN_SCL3, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 208 | GPIO_FN_SDA9, GPIO_FN_SCL9, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 209 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 210 | /* PTT (mobule: PWMX, AUD) */ |
| 211 | GPIO_FN_PWMX7, GPIO_FN_PWMX6, GPIO_FN_PWMX5, GPIO_FN_PWMX4, |
| 212 | GPIO_FN_PWMX3, GPIO_FN_PWMX2, GPIO_FN_PWMX1, GPIO_FN_PWMX0, |
| 213 | GPIO_FN_AUDATA3, GPIO_FN_AUDATA2, GPIO_FN_AUDATA1, |
| 214 | GPIO_FN_AUDATA0, GPIO_FN_STATUS1, GPIO_FN_STATUS0, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 215 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 216 | /* PTU (mobule: LPC, APM) */ |
| 217 | GPIO_FN_LGPIO7, GPIO_FN_LGPIO6, GPIO_FN_LGPIO5, GPIO_FN_LGPIO4, |
| 218 | GPIO_FN_LGPIO3, GPIO_FN_LGPIO2, GPIO_FN_LGPIO1, GPIO_FN_LGPIO0, |
| 219 | GPIO_FN_APMONCTL_O, GPIO_FN_APMPWBTOUT_O, GPIO_FN_APMSCI_O, |
| 220 | GPIO_FN_APMVDDON, GPIO_FN_APMSLPBTN, GPIO_FN_APMPWRBTN, |
| 221 | GPIO_FN_APMS5N, GPIO_FN_APMS3N, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 222 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 223 | /* PTV (mobule: LBSC, SerMux, R-SPI, EVC, GRA) */ |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 224 | GPIO_FN_A23, GPIO_FN_A22, GPIO_FN_A21, GPIO_FN_A20, |
| 225 | GPIO_FN_A19, GPIO_FN_A18, GPIO_FN_A17, GPIO_FN_A16, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 226 | GPIO_FN_COM2_RI, GPIO_FN_R_SPI_MOSI, GPIO_FN_R_SPI_MISO, |
| 227 | GPIO_FN_R_SPI_RSPCK, GPIO_FN_R_SPI_SSL0, GPIO_FN_R_SPI_SSL1, |
| 228 | GPIO_FN_EVENT7, GPIO_FN_EVENT6, GPIO_FN_VBIOS_DI, |
| 229 | GPIO_FN_VBIOS_DO, GPIO_FN_VBIOS_CLK, GPIO_FN_VBIOS_CS, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 230 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 231 | /* PTW (mobule: LBSC, EVC, SCIF) */ |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 232 | GPIO_FN_A15, GPIO_FN_A14, GPIO_FN_A13, GPIO_FN_A12, |
| 233 | GPIO_FN_A11, GPIO_FN_A10, GPIO_FN_A9, GPIO_FN_A8, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 234 | GPIO_FN_EVENT5, GPIO_FN_EVENT4, GPIO_FN_EVENT3, GPIO_FN_EVENT2, |
| 235 | GPIO_FN_EVENT1, GPIO_FN_EVENT0, GPIO_FN_CTS4, GPIO_FN_CTS2, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 236 | |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 237 | /* PTX (mobule: LBSC, SCIF, SIM) */ |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 238 | GPIO_FN_A7, GPIO_FN_A6, GPIO_FN_A5, GPIO_FN_A4, |
| 239 | GPIO_FN_A3, GPIO_FN_A2, GPIO_FN_A1, GPIO_FN_A0, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 240 | GPIO_FN_RTS2, GPIO_FN_SIM_D, GPIO_FN_SIM_CLK, GPIO_FN_SIM_RST, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 241 | |
| 242 | /* PTY (mobule: LBSC) */ |
| 243 | GPIO_FN_D7, GPIO_FN_D6, GPIO_FN_D5, GPIO_FN_D4, |
| 244 | GPIO_FN_D3, GPIO_FN_D2, GPIO_FN_D1, GPIO_FN_D0, |
Yoshihiro Shimoda | 3810e96 | 2010-07-06 04:31:57 +0000 | [diff] [blame] | 245 | |
| 246 | /* PTZ (mobule: eMMC, ONFI) */ |
| 247 | GPIO_FN_MMCDAT7, GPIO_FN_MMCDAT6, GPIO_FN_MMCDAT5, |
| 248 | GPIO_FN_MMCDAT4, GPIO_FN_MMCDAT3, GPIO_FN_MMCDAT2, |
| 249 | GPIO_FN_MMCDAT1, GPIO_FN_MMCDAT0, |
| 250 | GPIO_FN_ON_DQ7, GPIO_FN_ON_DQ6, GPIO_FN_ON_DQ5, GPIO_FN_ON_DQ4, |
| 251 | GPIO_FN_ON_DQ3, GPIO_FN_ON_DQ2, GPIO_FN_ON_DQ1, GPIO_FN_ON_DQ0, |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 252 | }; |
| 253 | |
Yoshihiro Shimoda | 8ac53ed | 2011-02-25 07:40:16 +0000 | [diff] [blame] | 254 | enum { |
Guennadi Liakhovetski | 5452555 | 2011-05-24 10:23:59 +0000 | [diff] [blame] | 255 | SHDMA_SLAVE_INVALID, |
Yoshihiro Shimoda | 8ac53ed | 2011-02-25 07:40:16 +0000 | [diff] [blame] | 256 | SHDMA_SLAVE_SDHI_TX, |
| 257 | SHDMA_SLAVE_SDHI_RX, |
| 258 | SHDMA_SLAVE_MMCIF_TX, |
| 259 | SHDMA_SLAVE_MMCIF_RX, |
| 260 | SHDMA_SLAVE_SCIF2_TX, |
| 261 | SHDMA_SLAVE_SCIF2_RX, |
| 262 | SHDMA_SLAVE_SCIF3_TX, |
| 263 | SHDMA_SLAVE_SCIF3_RX, |
| 264 | SHDMA_SLAVE_SCIF4_TX, |
| 265 | SHDMA_SLAVE_SCIF4_RX, |
| 266 | SHDMA_SLAVE_RIIC0_TX, |
| 267 | SHDMA_SLAVE_RIIC0_RX, |
| 268 | SHDMA_SLAVE_RIIC1_TX, |
| 269 | SHDMA_SLAVE_RIIC1_RX, |
| 270 | SHDMA_SLAVE_RIIC2_TX, |
| 271 | SHDMA_SLAVE_RIIC2_RX, |
| 272 | SHDMA_SLAVE_RIIC3_TX, |
| 273 | SHDMA_SLAVE_RIIC3_RX, |
| 274 | SHDMA_SLAVE_RIIC4_TX, |
| 275 | SHDMA_SLAVE_RIIC4_RX, |
| 276 | SHDMA_SLAVE_RIIC5_TX, |
| 277 | SHDMA_SLAVE_RIIC5_RX, |
| 278 | SHDMA_SLAVE_RIIC6_TX, |
| 279 | SHDMA_SLAVE_RIIC6_RX, |
| 280 | SHDMA_SLAVE_RIIC7_TX, |
| 281 | SHDMA_SLAVE_RIIC7_RX, |
| 282 | SHDMA_SLAVE_RIIC8_TX, |
| 283 | SHDMA_SLAVE_RIIC8_RX, |
| 284 | SHDMA_SLAVE_RIIC9_TX, |
| 285 | SHDMA_SLAVE_RIIC9_RX, |
| 286 | }; |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 287 | #endif /* __ASM_SH7757_H__ */ |