Magnus Damm | 0835f12 | 2008-10-23 11:30:10 +0900 | [diff] [blame] | 1 | #ifndef __ASM_SH7785_H__ |
| 2 | #define __ASM_SH7785_H__ |
| 3 | |
Magnus Damm | 0d4fdbb | 2009-06-02 09:22:02 +0000 | [diff] [blame] | 4 | /* Boot Mode Pins: |
| 5 | * |
| 6 | * MODE0: CPG - Initial Pck/Bck Frequency [FRQMR1] |
| 7 | * MODE1: CPG - Initial Uck/SHck/DDRck Frequency [FRQMR1] |
| 8 | * MODE2: CPG - Reserved (L: Normal operation) |
| 9 | * MODE3: CPG - Reserved (L: Normal operation) |
| 10 | * MODE4: CPG - Initial PLL setting (72x/36x) |
| 11 | * MODE5: LBSC - Area0 Memory Type / Bus Width [CS0BCR.8] |
| 12 | * MODE6: LBSC - Area0 Memory Type / Bus Width [CS0BCR.9] |
| 13 | * MODE7: LBSC - Area0 Memory Type / Bus Width [CS0BCR.3] |
| 14 | * MODE8: LBSC - Endian Mode (L: Big, H: Little) [BCR.31] |
| 15 | * MODE9: LBSC - Master/Slave Mode (L: Slave) [BCR.30] |
| 16 | * MODE10: CPG - Clock Input (L: Ext Clk, H: Crystal) |
| 17 | * MODE11: PCI - Pin Mode (LL: PCI host, LH: PCI slave) |
| 18 | * MODE12: PCI - Pin Mode (HL: Local bus, HH: DU) |
| 19 | * MODE13: Boot Address Mode (L: 29-bit, H: 32-bit) |
| 20 | * MODE14: Reserved (H: Normal operation) |
| 21 | * |
| 22 | * More information in sh7785 manual Rev.1.00, page 1628. |
| 23 | */ |
Magnus Damm | 4a44b32 | 2009-06-01 15:56:00 +0900 | [diff] [blame] | 24 | |
| 25 | /* Pin Function Controller: |
| 26 | * GPIO_FN_xx - GPIO used to select pin function |
| 27 | * GPIO_Pxx - GPIO mapped to real I/O pin on CPU |
| 28 | */ |
Magnus Damm | 0835f12 | 2008-10-23 11:30:10 +0900 | [diff] [blame] | 29 | enum { |
| 30 | /* PA */ |
| 31 | GPIO_PA7, GPIO_PA6, GPIO_PA5, GPIO_PA4, |
| 32 | GPIO_PA3, GPIO_PA2, GPIO_PA1, GPIO_PA0, |
| 33 | |
| 34 | /* PB */ |
| 35 | GPIO_PB7, GPIO_PB6, GPIO_PB5, GPIO_PB4, |
| 36 | GPIO_PB3, GPIO_PB2, GPIO_PB1, GPIO_PB0, |
| 37 | |
| 38 | /* PC */ |
| 39 | GPIO_PC7, GPIO_PC6, GPIO_PC5, GPIO_PC4, |
| 40 | GPIO_PC3, GPIO_PC2, GPIO_PC1, GPIO_PC0, |
| 41 | |
| 42 | /* PD */ |
| 43 | GPIO_PD7, GPIO_PD6, GPIO_PD5, GPIO_PD4, |
| 44 | GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0, |
| 45 | |
| 46 | /* PE */ |
| 47 | GPIO_PE5, GPIO_PE4, GPIO_PE3, GPIO_PE2, |
| 48 | GPIO_PE1, GPIO_PE0, |
| 49 | |
| 50 | /* PF */ |
| 51 | GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4, |
| 52 | GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0, |
| 53 | |
| 54 | /* PG */ |
| 55 | GPIO_PG7, GPIO_PG6, GPIO_PG5, GPIO_PG4, |
| 56 | GPIO_PG3, GPIO_PG2, GPIO_PG1, GPIO_PG0, |
| 57 | |
| 58 | /* PH */ |
| 59 | GPIO_PH7, GPIO_PH6, GPIO_PH5, GPIO_PH4, |
| 60 | GPIO_PH3, GPIO_PH2, GPIO_PH1, GPIO_PH0, |
| 61 | |
| 62 | /* PJ */ |
| 63 | GPIO_PJ7, GPIO_PJ6, GPIO_PJ5, GPIO_PJ4, |
| 64 | GPIO_PJ3, GPIO_PJ2, GPIO_PJ1, GPIO_PJ0, |
| 65 | |
| 66 | /* PK */ |
| 67 | GPIO_PK7, GPIO_PK6, GPIO_PK5, GPIO_PK4, |
| 68 | GPIO_PK3, GPIO_PK2, GPIO_PK1, GPIO_PK0, |
| 69 | |
| 70 | /* PL */ |
| 71 | GPIO_PL7, GPIO_PL6, GPIO_PL5, GPIO_PL4, |
| 72 | GPIO_PL3, GPIO_PL2, GPIO_PL1, GPIO_PL0, |
| 73 | |
| 74 | /* PM */ |
| 75 | GPIO_PM1, GPIO_PM0, |
| 76 | |
| 77 | /* PN */ |
| 78 | GPIO_PN7, GPIO_PN6, GPIO_PN5, GPIO_PN4, |
| 79 | GPIO_PN3, GPIO_PN2, GPIO_PN1, GPIO_PN0, |
| 80 | |
| 81 | /* PP */ |
| 82 | GPIO_PP5, GPIO_PP4, |
| 83 | GPIO_PP3, GPIO_PP2, GPIO_PP1, GPIO_PP0, |
| 84 | |
| 85 | /* PQ */ |
| 86 | GPIO_PQ4, |
| 87 | GPIO_PQ3, GPIO_PQ2, GPIO_PQ1, GPIO_PQ0, |
| 88 | |
| 89 | /* PR */ |
| 90 | GPIO_PR3, GPIO_PR2, GPIO_PR1, GPIO_PR0, |
| 91 | |
| 92 | GPIO_FN_D63_AD31, |
| 93 | GPIO_FN_D62_AD30, |
| 94 | GPIO_FN_D61_AD29, |
| 95 | GPIO_FN_D60_AD28, |
| 96 | GPIO_FN_D59_AD27, |
| 97 | GPIO_FN_D58_AD26, |
| 98 | GPIO_FN_D57_AD25, |
| 99 | GPIO_FN_D56_AD24, |
| 100 | GPIO_FN_D55_AD23, |
| 101 | GPIO_FN_D54_AD22, |
| 102 | GPIO_FN_D53_AD21, |
| 103 | GPIO_FN_D52_AD20, |
| 104 | GPIO_FN_D51_AD19, |
| 105 | GPIO_FN_D50_AD18, |
| 106 | GPIO_FN_D49_AD17_DB5, |
| 107 | GPIO_FN_D48_AD16_DB4, |
| 108 | GPIO_FN_D47_AD15_DB3, |
| 109 | GPIO_FN_D46_AD14_DB2, |
| 110 | GPIO_FN_D45_AD13_DB1, |
| 111 | GPIO_FN_D44_AD12_DB0, |
| 112 | GPIO_FN_D43_AD11_DG5, |
| 113 | GPIO_FN_D42_AD10_DG4, |
| 114 | GPIO_FN_D41_AD9_DG3, |
| 115 | GPIO_FN_D40_AD8_DG2, |
| 116 | GPIO_FN_D39_AD7_DG1, |
| 117 | GPIO_FN_D38_AD6_DG0, |
| 118 | GPIO_FN_D37_AD5_DR5, |
| 119 | GPIO_FN_D36_AD4_DR4, |
| 120 | GPIO_FN_D35_AD3_DR3, |
| 121 | GPIO_FN_D34_AD2_DR2, |
| 122 | GPIO_FN_D33_AD1_DR1, |
| 123 | GPIO_FN_D32_AD0_DR0, |
| 124 | GPIO_FN_REQ1, |
| 125 | GPIO_FN_REQ2, |
| 126 | GPIO_FN_REQ3, |
| 127 | GPIO_FN_GNT1, |
| 128 | GPIO_FN_GNT2, |
| 129 | GPIO_FN_GNT3, |
| 130 | GPIO_FN_MMCCLK, |
| 131 | GPIO_FN_D31, |
| 132 | GPIO_FN_D30, |
| 133 | GPIO_FN_D29, |
| 134 | GPIO_FN_D28, |
| 135 | GPIO_FN_D27, |
| 136 | GPIO_FN_D26, |
| 137 | GPIO_FN_D25, |
| 138 | GPIO_FN_D24, |
| 139 | GPIO_FN_D23, |
| 140 | GPIO_FN_D22, |
| 141 | GPIO_FN_D21, |
| 142 | GPIO_FN_D20, |
| 143 | GPIO_FN_D19, |
| 144 | GPIO_FN_D18, |
| 145 | GPIO_FN_D17, |
| 146 | GPIO_FN_D16, |
| 147 | GPIO_FN_SCIF1_SCK, |
| 148 | GPIO_FN_SCIF1_RXD, |
| 149 | GPIO_FN_SCIF1_TXD, |
| 150 | GPIO_FN_SCIF0_CTS, |
| 151 | GPIO_FN_INTD, |
| 152 | GPIO_FN_FCE, |
| 153 | GPIO_FN_SCIF0_RTS, |
| 154 | GPIO_FN_HSPI_CS, |
| 155 | GPIO_FN_FSE, |
| 156 | GPIO_FN_SCIF0_SCK, |
| 157 | GPIO_FN_HSPI_CLK, |
| 158 | GPIO_FN_FRE, |
| 159 | GPIO_FN_SCIF0_RXD, |
| 160 | GPIO_FN_HSPI_RX, |
| 161 | GPIO_FN_FRB, |
| 162 | GPIO_FN_SCIF0_TXD, |
| 163 | GPIO_FN_HSPI_TX, |
| 164 | GPIO_FN_FWE, |
| 165 | GPIO_FN_SCIF5_TXD, |
| 166 | GPIO_FN_HAC1_SYNC, |
| 167 | GPIO_FN_SSI1_WS, |
| 168 | GPIO_FN_SIOF_TXD_PJ, |
| 169 | GPIO_FN_HAC0_SDOUT, |
| 170 | GPIO_FN_SSI0_SDATA, |
| 171 | GPIO_FN_SIOF_RXD_PJ, |
| 172 | GPIO_FN_HAC0_SDIN, |
| 173 | GPIO_FN_SSI0_SCK, |
| 174 | GPIO_FN_SIOF_SYNC_PJ, |
| 175 | GPIO_FN_HAC0_SYNC, |
| 176 | GPIO_FN_SSI0_WS, |
| 177 | GPIO_FN_SIOF_MCLK_PJ, |
| 178 | GPIO_FN_HAC_RES, |
| 179 | GPIO_FN_SIOF_SCK_PJ, |
| 180 | GPIO_FN_HAC0_BITCLK, |
| 181 | GPIO_FN_SSI0_CLK, |
| 182 | GPIO_FN_HAC1_BITCLK, |
| 183 | GPIO_FN_SSI1_CLK, |
| 184 | GPIO_FN_TCLK, |
| 185 | GPIO_FN_IOIS16, |
| 186 | GPIO_FN_STATUS0, |
| 187 | GPIO_FN_DRAK0_PK3, |
| 188 | GPIO_FN_STATUS1, |
| 189 | GPIO_FN_DRAK1_PK2, |
| 190 | GPIO_FN_DACK2, |
| 191 | GPIO_FN_SCIF2_TXD, |
| 192 | GPIO_FN_MMCCMD, |
| 193 | GPIO_FN_SIOF_TXD_PK, |
| 194 | GPIO_FN_DACK3, |
| 195 | GPIO_FN_SCIF2_SCK, |
| 196 | GPIO_FN_MMCDAT, |
| 197 | GPIO_FN_SIOF_SCK_PK, |
| 198 | GPIO_FN_DREQ0, |
| 199 | GPIO_FN_DREQ1, |
| 200 | GPIO_FN_DRAK0_PK1, |
| 201 | GPIO_FN_DRAK1_PK0, |
| 202 | GPIO_FN_DREQ2, |
| 203 | GPIO_FN_INTB, |
| 204 | GPIO_FN_DREQ3, |
| 205 | GPIO_FN_INTC, |
| 206 | GPIO_FN_DRAK2, |
| 207 | GPIO_FN_CE2A, |
| 208 | GPIO_FN_IRL4, |
| 209 | GPIO_FN_FD4, |
| 210 | GPIO_FN_IRL5, |
| 211 | GPIO_FN_FD5, |
| 212 | GPIO_FN_IRL6, |
| 213 | GPIO_FN_FD6, |
| 214 | GPIO_FN_IRL7, |
| 215 | GPIO_FN_FD7, |
| 216 | GPIO_FN_DRAK3, |
| 217 | GPIO_FN_CE2B, |
| 218 | GPIO_FN_BREQ_BSACK, |
| 219 | GPIO_FN_BACK_BSREQ, |
| 220 | GPIO_FN_SCIF5_RXD, |
| 221 | GPIO_FN_HAC1_SDIN, |
| 222 | GPIO_FN_SSI1_SCK, |
| 223 | GPIO_FN_SCIF5_SCK, |
| 224 | GPIO_FN_HAC1_SDOUT, |
| 225 | GPIO_FN_SSI1_SDATA, |
| 226 | GPIO_FN_SCIF3_TXD, |
| 227 | GPIO_FN_FCLE, |
| 228 | GPIO_FN_SCIF3_RXD, |
| 229 | GPIO_FN_FALE, |
| 230 | GPIO_FN_SCIF3_SCK, |
| 231 | GPIO_FN_FD0, |
| 232 | GPIO_FN_SCIF4_TXD, |
| 233 | GPIO_FN_FD1, |
| 234 | GPIO_FN_SCIF4_RXD, |
| 235 | GPIO_FN_FD2, |
| 236 | GPIO_FN_SCIF4_SCK, |
| 237 | GPIO_FN_FD3, |
| 238 | GPIO_FN_DEVSEL_DCLKOUT, |
| 239 | GPIO_FN_STOP_CDE, |
| 240 | GPIO_FN_LOCK_ODDF, |
| 241 | GPIO_FN_TRDY_DISPL, |
| 242 | GPIO_FN_IRDY_HSYNC, |
| 243 | GPIO_FN_PCIFRAME_VSYNC, |
| 244 | GPIO_FN_INTA, |
| 245 | GPIO_FN_GNT0_GNTIN, |
| 246 | GPIO_FN_REQ0_REQOUT, |
| 247 | GPIO_FN_PERR, |
| 248 | GPIO_FN_SERR, |
| 249 | GPIO_FN_WE7_CBE3, |
| 250 | GPIO_FN_WE6_CBE2, |
| 251 | GPIO_FN_WE5_CBE1, |
| 252 | GPIO_FN_WE4_CBE0, |
| 253 | GPIO_FN_SCIF2_RXD, |
| 254 | GPIO_FN_SIOF_RXD, |
| 255 | GPIO_FN_MRESETOUT, |
| 256 | GPIO_FN_IRQOUT, |
| 257 | }; |
| 258 | |
| 259 | #endif /* __ASM_SH7785_H__ */ |