Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * sh73a0 processor support - PFC hardware block |
| 3 | * |
| 4 | * Copyright (C) 2010 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2010 NISHIMOTO Hiroki |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; version 2 of the |
| 10 | * License. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ |
| 21 | #include <linux/io.h> |
| 22 | #include <linux/kernel.h> |
| 23 | #include <linux/module.h> |
| 24 | #include <linux/pinctrl/pinconf-generic.h> |
| 25 | #include <linux/regulator/driver.h> |
| 26 | #include <linux/regulator/machine.h> |
| 27 | #include <linux/slab.h> |
| 28 | |
| 29 | #include "core.h" |
| 30 | #include "sh_pfc.h" |
| 31 | |
| 32 | #define CPU_ALL_PORT(fn, pfx, sfx) \ |
| 33 | PORT_10(0, fn, pfx, sfx), PORT_90(0, fn, pfx, sfx), \ |
| 34 | PORT_10(100, fn, pfx##10, sfx), \ |
| 35 | PORT_1(110, fn, pfx##110, sfx), PORT_1(111, fn, pfx##111, sfx), \ |
| 36 | PORT_1(112, fn, pfx##112, sfx), PORT_1(113, fn, pfx##113, sfx), \ |
| 37 | PORT_1(114, fn, pfx##114, sfx), PORT_1(115, fn, pfx##115, sfx), \ |
| 38 | PORT_1(116, fn, pfx##116, sfx), PORT_1(117, fn, pfx##117, sfx), \ |
| 39 | PORT_1(118, fn, pfx##118, sfx), \ |
| 40 | PORT_1(128, fn, pfx##128, sfx), PORT_1(129, fn, pfx##129, sfx), \ |
| 41 | PORT_10(130, fn, pfx##13, sfx), PORT_10(140, fn, pfx##14, sfx), \ |
| 42 | PORT_10(150, fn, pfx##15, sfx), \ |
| 43 | PORT_1(160, fn, pfx##160, sfx), PORT_1(161, fn, pfx##161, sfx), \ |
| 44 | PORT_1(162, fn, pfx##162, sfx), PORT_1(163, fn, pfx##163, sfx), \ |
| 45 | PORT_1(164, fn, pfx##164, sfx), \ |
| 46 | PORT_1(192, fn, pfx##192, sfx), PORT_1(193, fn, pfx##193, sfx), \ |
| 47 | PORT_1(194, fn, pfx##194, sfx), PORT_1(195, fn, pfx##195, sfx), \ |
| 48 | PORT_1(196, fn, pfx##196, sfx), PORT_1(197, fn, pfx##197, sfx), \ |
| 49 | PORT_1(198, fn, pfx##198, sfx), PORT_1(199, fn, pfx##199, sfx), \ |
| 50 | PORT_10(200, fn, pfx##20, sfx), PORT_10(210, fn, pfx##21, sfx), \ |
| 51 | PORT_10(220, fn, pfx##22, sfx), PORT_10(230, fn, pfx##23, sfx), \ |
| 52 | PORT_10(240, fn, pfx##24, sfx), PORT_10(250, fn, pfx##25, sfx), \ |
| 53 | PORT_10(260, fn, pfx##26, sfx), PORT_10(270, fn, pfx##27, sfx), \ |
| 54 | PORT_1(280, fn, pfx##280, sfx), PORT_1(281, fn, pfx##281, sfx), \ |
| 55 | PORT_1(282, fn, pfx##282, sfx), \ |
| 56 | PORT_1(288, fn, pfx##288, sfx), PORT_1(289, fn, pfx##289, sfx), \ |
| 57 | PORT_10(290, fn, pfx##29, sfx), PORT_10(300, fn, pfx##30, sfx) |
| 58 | |
| 59 | enum { |
| 60 | PINMUX_RESERVED = 0, |
| 61 | |
| 62 | PINMUX_DATA_BEGIN, |
| 63 | PORT_ALL(DATA), /* PORT0_DATA -> PORT309_DATA */ |
| 64 | PINMUX_DATA_END, |
| 65 | |
| 66 | PINMUX_INPUT_BEGIN, |
| 67 | PORT_ALL(IN), /* PORT0_IN -> PORT309_IN */ |
| 68 | PINMUX_INPUT_END, |
| 69 | |
| 70 | PINMUX_OUTPUT_BEGIN, |
| 71 | PORT_ALL(OUT), /* PORT0_OUT -> PORT309_OUT */ |
| 72 | PINMUX_OUTPUT_END, |
| 73 | |
| 74 | PINMUX_FUNCTION_BEGIN, |
| 75 | PORT_ALL(FN_IN), /* PORT0_FN_IN -> PORT309_FN_IN */ |
| 76 | PORT_ALL(FN_OUT), /* PORT0_FN_OUT -> PORT309_FN_OUT */ |
| 77 | PORT_ALL(FN0), /* PORT0_FN0 -> PORT309_FN0 */ |
| 78 | PORT_ALL(FN1), /* PORT0_FN1 -> PORT309_FN1 */ |
| 79 | PORT_ALL(FN2), /* PORT0_FN2 -> PORT309_FN2 */ |
| 80 | PORT_ALL(FN3), /* PORT0_FN3 -> PORT309_FN3 */ |
| 81 | PORT_ALL(FN4), /* PORT0_FN4 -> PORT309_FN4 */ |
| 82 | PORT_ALL(FN5), /* PORT0_FN5 -> PORT309_FN5 */ |
| 83 | PORT_ALL(FN6), /* PORT0_FN6 -> PORT309_FN6 */ |
| 84 | PORT_ALL(FN7), /* PORT0_FN7 -> PORT309_FN7 */ |
| 85 | |
| 86 | MSEL2CR_MSEL19_0, MSEL2CR_MSEL19_1, |
| 87 | MSEL2CR_MSEL18_0, MSEL2CR_MSEL18_1, |
| 88 | MSEL2CR_MSEL17_0, MSEL2CR_MSEL17_1, |
| 89 | MSEL2CR_MSEL16_0, MSEL2CR_MSEL16_1, |
| 90 | MSEL2CR_MSEL14_0, MSEL2CR_MSEL14_1, |
| 91 | MSEL2CR_MSEL13_0, MSEL2CR_MSEL13_1, |
| 92 | MSEL2CR_MSEL12_0, MSEL2CR_MSEL12_1, |
| 93 | MSEL2CR_MSEL11_0, MSEL2CR_MSEL11_1, |
| 94 | MSEL2CR_MSEL10_0, MSEL2CR_MSEL10_1, |
| 95 | MSEL2CR_MSEL9_0, MSEL2CR_MSEL9_1, |
| 96 | MSEL2CR_MSEL8_0, MSEL2CR_MSEL8_1, |
| 97 | MSEL2CR_MSEL7_0, MSEL2CR_MSEL7_1, |
| 98 | MSEL2CR_MSEL6_0, MSEL2CR_MSEL6_1, |
| 99 | MSEL2CR_MSEL4_0, MSEL2CR_MSEL4_1, |
| 100 | MSEL2CR_MSEL5_0, MSEL2CR_MSEL5_1, |
| 101 | MSEL2CR_MSEL3_0, MSEL2CR_MSEL3_1, |
| 102 | MSEL2CR_MSEL2_0, MSEL2CR_MSEL2_1, |
| 103 | MSEL2CR_MSEL1_0, MSEL2CR_MSEL1_1, |
| 104 | MSEL2CR_MSEL0_0, MSEL2CR_MSEL0_1, |
| 105 | MSEL3CR_MSEL28_0, MSEL3CR_MSEL28_1, |
| 106 | MSEL3CR_MSEL15_0, MSEL3CR_MSEL15_1, |
| 107 | MSEL3CR_MSEL11_0, MSEL3CR_MSEL11_1, |
| 108 | MSEL3CR_MSEL9_0, MSEL3CR_MSEL9_1, |
| 109 | MSEL3CR_MSEL6_0, MSEL3CR_MSEL6_1, |
| 110 | MSEL3CR_MSEL2_0, MSEL3CR_MSEL2_1, |
| 111 | MSEL4CR_MSEL29_0, MSEL4CR_MSEL29_1, |
| 112 | MSEL4CR_MSEL27_0, MSEL4CR_MSEL27_1, |
| 113 | MSEL4CR_MSEL26_0, MSEL4CR_MSEL26_1, |
| 114 | MSEL4CR_MSEL22_0, MSEL4CR_MSEL22_1, |
| 115 | MSEL4CR_MSEL21_0, MSEL4CR_MSEL21_1, |
| 116 | MSEL4CR_MSEL20_0, MSEL4CR_MSEL20_1, |
| 117 | MSEL4CR_MSEL19_0, MSEL4CR_MSEL19_1, |
| 118 | MSEL4CR_MSEL15_0, MSEL4CR_MSEL15_1, |
| 119 | MSEL4CR_MSEL13_0, MSEL4CR_MSEL13_1, |
| 120 | MSEL4CR_MSEL12_0, MSEL4CR_MSEL12_1, |
| 121 | MSEL4CR_MSEL11_0, MSEL4CR_MSEL11_1, |
| 122 | MSEL4CR_MSEL10_0, MSEL4CR_MSEL10_1, |
| 123 | MSEL4CR_MSEL9_0, MSEL4CR_MSEL9_1, |
| 124 | MSEL4CR_MSEL8_0, MSEL4CR_MSEL8_1, |
| 125 | MSEL4CR_MSEL7_0, MSEL4CR_MSEL7_1, |
| 126 | MSEL4CR_MSEL4_0, MSEL4CR_MSEL4_1, |
| 127 | MSEL4CR_MSEL1_0, MSEL4CR_MSEL1_1, |
| 128 | PINMUX_FUNCTION_END, |
| 129 | |
| 130 | PINMUX_MARK_BEGIN, |
| 131 | /* Hardware manual Table 25-1 (Function 0-7) */ |
| 132 | VBUS_0_MARK, |
| 133 | GPI0_MARK, |
| 134 | GPI1_MARK, |
| 135 | GPI2_MARK, |
| 136 | GPI3_MARK, |
| 137 | GPI4_MARK, |
| 138 | GPI5_MARK, |
| 139 | GPI6_MARK, |
| 140 | GPI7_MARK, |
| 141 | SCIFA7_RXD_MARK, |
| 142 | SCIFA7_CTS__MARK, |
| 143 | GPO7_MARK, MFG0_OUT2_MARK, |
| 144 | GPO6_MARK, MFG1_OUT2_MARK, |
| 145 | GPO5_MARK, SCIFA0_SCK_MARK, FSICOSLDT3_MARK, PORT16_VIO_CKOR_MARK, |
| 146 | SCIFA0_TXD_MARK, |
| 147 | SCIFA7_TXD_MARK, |
| 148 | SCIFA7_RTS__MARK, PORT19_VIO_CKO2_MARK, |
| 149 | GPO0_MARK, |
| 150 | GPO1_MARK, |
| 151 | GPO2_MARK, STATUS0_MARK, |
| 152 | GPO3_MARK, STATUS1_MARK, |
| 153 | GPO4_MARK, STATUS2_MARK, |
| 154 | VINT_MARK, |
| 155 | TCKON_MARK, |
| 156 | XDVFS1_MARK, PORT27_I2C_SCL2_MARK, PORT27_I2C_SCL3_MARK, \ |
| 157 | MFG0_OUT1_MARK, PORT27_IROUT_MARK, |
| 158 | XDVFS2_MARK, PORT28_I2C_SDA2_MARK, PORT28_I2C_SDA3_MARK, \ |
| 159 | PORT28_TPU1TO1_MARK, |
| 160 | SIM_RST_MARK, PORT29_TPU1TO1_MARK, |
| 161 | SIM_CLK_MARK, PORT30_VIO_CKOR_MARK, |
| 162 | SIM_D_MARK, PORT31_IROUT_MARK, |
| 163 | SCIFA4_TXD_MARK, |
| 164 | SCIFA4_RXD_MARK, XWUP_MARK, |
| 165 | SCIFA4_RTS__MARK, |
| 166 | SCIFA4_CTS__MARK, |
| 167 | FSIBOBT_MARK, FSIBIBT_MARK, |
| 168 | FSIBOLR_MARK, FSIBILR_MARK, |
| 169 | FSIBOSLD_MARK, |
| 170 | FSIBISLD_MARK, |
| 171 | VACK_MARK, |
| 172 | XTAL1L_MARK, |
| 173 | SCIFA0_RTS__MARK, FSICOSLDT2_MARK, |
| 174 | SCIFA0_RXD_MARK, |
| 175 | SCIFA0_CTS__MARK, FSICOSLDT1_MARK, |
| 176 | FSICOBT_MARK, FSICIBT_MARK, FSIDOBT_MARK, FSIDIBT_MARK, |
| 177 | FSICOLR_MARK, FSICILR_MARK, FSIDOLR_MARK, FSIDILR_MARK, |
| 178 | FSICOSLD_MARK, PORT47_FSICSPDIF_MARK, |
| 179 | FSICISLD_MARK, FSIDISLD_MARK, |
| 180 | FSIACK_MARK, PORT49_IRDA_OUT_MARK, PORT49_IROUT_MARK, FSIAOMC_MARK, |
| 181 | FSIAOLR_MARK, BBIF2_TSYNC2_MARK, TPU2TO2_MARK, FSIAILR_MARK, |
| 182 | |
| 183 | FSIAOBT_MARK, BBIF2_TSCK2_MARK, TPU2TO3_MARK, FSIAIBT_MARK, |
| 184 | FSIAOSLD_MARK, BBIF2_TXD2_MARK, |
| 185 | FSIASPDIF_MARK, PORT53_IRDA_IN_MARK, TPU3TO3_MARK, FSIBSPDIF_MARK, \ |
| 186 | PORT53_FSICSPDIF_MARK, |
| 187 | FSIBCK_MARK, PORT54_IRDA_FIRSEL_MARK, TPU3TO2_MARK, FSIBOMC_MARK, \ |
| 188 | FSICCK_MARK, FSICOMC_MARK, |
| 189 | FSIAISLD_MARK, TPU0TO0_MARK, |
| 190 | A0_MARK, BS__MARK, |
| 191 | A12_MARK, PORT58_KEYOUT7_MARK, TPU4TO2_MARK, |
| 192 | A13_MARK, PORT59_KEYOUT6_MARK, TPU0TO1_MARK, |
| 193 | A14_MARK, KEYOUT5_MARK, |
| 194 | A15_MARK, KEYOUT4_MARK, |
| 195 | A16_MARK, KEYOUT3_MARK, MSIOF0_SS1_MARK, |
| 196 | A17_MARK, KEYOUT2_MARK, MSIOF0_TSYNC_MARK, |
| 197 | A18_MARK, KEYOUT1_MARK, MSIOF0_TSCK_MARK, |
| 198 | A19_MARK, KEYOUT0_MARK, MSIOF0_TXD_MARK, |
| 199 | A20_MARK, KEYIN0_MARK, MSIOF0_RSCK_MARK, |
| 200 | A21_MARK, KEYIN1_MARK, MSIOF0_RSYNC_MARK, |
| 201 | A22_MARK, KEYIN2_MARK, MSIOF0_MCK0_MARK, |
| 202 | A23_MARK, KEYIN3_MARK, MSIOF0_MCK1_MARK, |
| 203 | A24_MARK, KEYIN4_MARK, MSIOF0_RXD_MARK, |
| 204 | A25_MARK, KEYIN5_MARK, MSIOF0_SS2_MARK, |
| 205 | A26_MARK, KEYIN6_MARK, |
| 206 | KEYIN7_MARK, |
| 207 | D0_NAF0_MARK, |
| 208 | D1_NAF1_MARK, |
| 209 | D2_NAF2_MARK, |
| 210 | D3_NAF3_MARK, |
| 211 | D4_NAF4_MARK, |
| 212 | D5_NAF5_MARK, |
| 213 | D6_NAF6_MARK, |
| 214 | D7_NAF7_MARK, |
| 215 | D8_NAF8_MARK, |
| 216 | D9_NAF9_MARK, |
| 217 | D10_NAF10_MARK, |
| 218 | D11_NAF11_MARK, |
| 219 | D12_NAF12_MARK, |
| 220 | D13_NAF13_MARK, |
| 221 | D14_NAF14_MARK, |
| 222 | D15_NAF15_MARK, |
| 223 | CS4__MARK, |
| 224 | CS5A__MARK, PORT91_RDWR_MARK, |
| 225 | CS5B__MARK, FCE1__MARK, |
| 226 | CS6B__MARK, DACK0_MARK, |
| 227 | FCE0__MARK, CS6A__MARK, |
| 228 | WAIT__MARK, DREQ0_MARK, |
| 229 | RD__FSC_MARK, |
| 230 | WE0__FWE_MARK, RDWR_FWE_MARK, |
| 231 | WE1__MARK, |
| 232 | FRB_MARK, |
| 233 | CKO_MARK, |
| 234 | NBRSTOUT__MARK, |
| 235 | NBRST__MARK, |
| 236 | BBIF2_TXD_MARK, |
| 237 | BBIF2_RXD_MARK, |
| 238 | BBIF2_SYNC_MARK, |
| 239 | BBIF2_SCK_MARK, |
| 240 | SCIFA3_CTS__MARK, MFG3_IN2_MARK, |
| 241 | SCIFA3_RXD_MARK, MFG3_IN1_MARK, |
| 242 | BBIF1_SS2_MARK, SCIFA3_RTS__MARK, MFG3_OUT1_MARK, |
| 243 | SCIFA3_TXD_MARK, |
| 244 | HSI_RX_DATA_MARK, BBIF1_RXD_MARK, |
| 245 | HSI_TX_WAKE_MARK, BBIF1_TSCK_MARK, |
| 246 | HSI_TX_DATA_MARK, BBIF1_TSYNC_MARK, |
| 247 | HSI_TX_READY_MARK, BBIF1_TXD_MARK, |
| 248 | HSI_RX_READY_MARK, BBIF1_RSCK_MARK, PORT115_I2C_SCL2_MARK, \ |
| 249 | PORT115_I2C_SCL3_MARK, |
| 250 | HSI_RX_WAKE_MARK, BBIF1_RSYNC_MARK, PORT116_I2C_SDA2_MARK, \ |
| 251 | PORT116_I2C_SDA3_MARK, |
| 252 | HSI_RX_FLAG_MARK, BBIF1_SS1_MARK, BBIF1_FLOW_MARK, |
| 253 | HSI_TX_FLAG_MARK, |
| 254 | VIO_VD_MARK, PORT128_LCD2VSYN_MARK, VIO2_VD_MARK, LCD2D0_MARK, |
| 255 | |
| 256 | VIO_HD_MARK, PORT129_LCD2HSYN_MARK, PORT129_LCD2CS__MARK, \ |
| 257 | VIO2_HD_MARK, LCD2D1_MARK, |
| 258 | VIO_D0_MARK, PORT130_MSIOF2_RXD_MARK, LCD2D10_MARK, |
| 259 | VIO_D1_MARK, PORT131_KEYOUT6_MARK, PORT131_MSIOF2_SS1_MARK, \ |
| 260 | PORT131_KEYOUT11_MARK, LCD2D11_MARK, |
| 261 | VIO_D2_MARK, PORT132_KEYOUT7_MARK, PORT132_MSIOF2_SS2_MARK, \ |
| 262 | PORT132_KEYOUT10_MARK, LCD2D12_MARK, |
| 263 | VIO_D3_MARK, MSIOF2_TSYNC_MARK, LCD2D13_MARK, |
| 264 | VIO_D4_MARK, MSIOF2_TXD_MARK, LCD2D14_MARK, |
| 265 | VIO_D5_MARK, MSIOF2_TSCK_MARK, LCD2D15_MARK, |
| 266 | VIO_D6_MARK, PORT136_KEYOUT8_MARK, LCD2D16_MARK, |
| 267 | VIO_D7_MARK, PORT137_KEYOUT9_MARK, LCD2D17_MARK, |
| 268 | VIO_D8_MARK, PORT138_KEYOUT8_MARK, VIO2_D0_MARK, LCD2D6_MARK, |
| 269 | VIO_D9_MARK, PORT139_KEYOUT9_MARK, VIO2_D1_MARK, LCD2D7_MARK, |
| 270 | VIO_D10_MARK, TPU0TO2_MARK, VIO2_D2_MARK, LCD2D8_MARK, |
| 271 | VIO_D11_MARK, TPU0TO3_MARK, VIO2_D3_MARK, LCD2D9_MARK, |
| 272 | VIO_D12_MARK, PORT142_KEYOUT10_MARK, VIO2_D4_MARK, LCD2D2_MARK, |
| 273 | VIO_D13_MARK, PORT143_KEYOUT11_MARK, PORT143_KEYOUT6_MARK, \ |
| 274 | VIO2_D5_MARK, LCD2D3_MARK, |
| 275 | VIO_D14_MARK, PORT144_KEYOUT7_MARK, VIO2_D6_MARK, LCD2D4_MARK, |
| 276 | VIO_D15_MARK, TPU1TO3_MARK, PORT145_LCD2DISP_MARK, \ |
| 277 | PORT145_LCD2RS_MARK, VIO2_D7_MARK, LCD2D5_MARK, |
| 278 | VIO_CLK_MARK, LCD2DCK_MARK, PORT146_LCD2WR__MARK, VIO2_CLK_MARK, \ |
| 279 | LCD2D18_MARK, |
| 280 | VIO_FIELD_MARK, LCD2RD__MARK, VIO2_FIELD_MARK, LCD2D19_MARK, |
| 281 | VIO_CKO_MARK, |
| 282 | A27_MARK, PORT149_RDWR_MARK, MFG0_IN1_MARK, PORT149_KEYOUT9_MARK, |
| 283 | MFG0_IN2_MARK, |
| 284 | TS_SPSYNC3_MARK, MSIOF2_RSCK_MARK, |
| 285 | TS_SDAT3_MARK, MSIOF2_RSYNC_MARK, |
| 286 | TPU1TO2_MARK, TS_SDEN3_MARK, PORT153_MSIOF2_SS1_MARK, |
| 287 | SCIFA2_TXD1_MARK, MSIOF2_MCK0_MARK, |
| 288 | SCIFA2_RXD1_MARK, MSIOF2_MCK1_MARK, |
| 289 | SCIFA2_RTS1__MARK, PORT156_MSIOF2_SS2_MARK, |
| 290 | SCIFA2_CTS1__MARK, PORT157_MSIOF2_RXD_MARK, |
| 291 | DINT__MARK, SCIFA2_SCK1_MARK, TS_SCK3_MARK, |
| 292 | PORT159_SCIFB_SCK_MARK, PORT159_SCIFA5_SCK_MARK, NMI_MARK, |
| 293 | PORT160_SCIFB_TXD_MARK, PORT160_SCIFA5_TXD_MARK, |
| 294 | PORT161_SCIFB_CTS__MARK, PORT161_SCIFA5_CTS__MARK, |
| 295 | PORT162_SCIFB_RXD_MARK, PORT162_SCIFA5_RXD_MARK, |
| 296 | PORT163_SCIFB_RTS__MARK, PORT163_SCIFA5_RTS__MARK, TPU3TO0_MARK, |
| 297 | LCDD0_MARK, |
| 298 | LCDD1_MARK, PORT193_SCIFA5_CTS__MARK, BBIF2_TSYNC1_MARK, |
| 299 | LCDD2_MARK, PORT194_SCIFA5_RTS__MARK, BBIF2_TSCK1_MARK, |
| 300 | LCDD3_MARK, PORT195_SCIFA5_RXD_MARK, BBIF2_TXD1_MARK, |
| 301 | LCDD4_MARK, PORT196_SCIFA5_TXD_MARK, |
| 302 | LCDD5_MARK, PORT197_SCIFA5_SCK_MARK, MFG2_OUT2_MARK, TPU2TO1_MARK, |
| 303 | LCDD6_MARK, |
| 304 | LCDD7_MARK, TPU4TO1_MARK, MFG4_OUT2_MARK, |
| 305 | LCDD8_MARK, D16_MARK, |
| 306 | LCDD9_MARK, D17_MARK, |
| 307 | LCDD10_MARK, D18_MARK, |
| 308 | LCDD11_MARK, D19_MARK, |
| 309 | LCDD12_MARK, D20_MARK, |
| 310 | LCDD13_MARK, D21_MARK, |
| 311 | LCDD14_MARK, D22_MARK, |
| 312 | LCDD15_MARK, PORT207_MSIOF0L_SS1_MARK, D23_MARK, |
| 313 | LCDD16_MARK, PORT208_MSIOF0L_SS2_MARK, D24_MARK, |
| 314 | LCDD17_MARK, D25_MARK, |
| 315 | LCDD18_MARK, DREQ2_MARK, PORT210_MSIOF0L_SS1_MARK, D26_MARK, |
| 316 | LCDD19_MARK, PORT211_MSIOF0L_SS2_MARK, D27_MARK, |
| 317 | LCDD20_MARK, TS_SPSYNC1_MARK, MSIOF0L_MCK0_MARK, D28_MARK, |
| 318 | LCDD21_MARK, TS_SDAT1_MARK, MSIOF0L_MCK1_MARK, D29_MARK, |
| 319 | LCDD22_MARK, TS_SDEN1_MARK, MSIOF0L_RSCK_MARK, D30_MARK, |
| 320 | LCDD23_MARK, TS_SCK1_MARK, MSIOF0L_RSYNC_MARK, D31_MARK, |
| 321 | LCDDCK_MARK, LCDWR__MARK, |
| 322 | LCDRD__MARK, DACK2_MARK, PORT217_LCD2RS_MARK, MSIOF0L_TSYNC_MARK, \ |
| 323 | VIO2_FIELD3_MARK, PORT217_LCD2DISP_MARK, |
| 324 | LCDHSYN_MARK, LCDCS__MARK, LCDCS2__MARK, DACK3_MARK, \ |
| 325 | PORT218_VIO_CKOR_MARK, |
| 326 | LCDDISP_MARK, LCDRS_MARK, PORT219_LCD2WR__MARK, DREQ3_MARK, \ |
| 327 | MSIOF0L_TSCK_MARK, VIO2_CLK3_MARK, LCD2DCK_2_MARK, |
| 328 | LCDVSYN_MARK, LCDVSYN2_MARK, |
| 329 | LCDLCLK_MARK, DREQ1_MARK, PORT221_LCD2CS__MARK, PWEN_MARK, \ |
| 330 | MSIOF0L_RXD_MARK, VIO2_HD3_MARK, PORT221_LCD2HSYN_MARK, |
| 331 | LCDDON_MARK, LCDDON2_MARK, DACK1_MARK, OVCN_MARK, MSIOF0L_TXD_MARK, \ |
| 332 | VIO2_VD3_MARK, PORT222_LCD2VSYN_MARK, |
| 333 | |
| 334 | SCIFA1_TXD_MARK, OVCN2_MARK, |
| 335 | EXTLP_MARK, SCIFA1_SCK_MARK, PORT226_VIO_CKO2_MARK, |
| 336 | SCIFA1_RTS__MARK, IDIN_MARK, |
| 337 | SCIFA1_RXD_MARK, |
| 338 | SCIFA1_CTS__MARK, MFG1_IN1_MARK, |
| 339 | MSIOF1_TXD_MARK, SCIFA2_TXD2_MARK, |
| 340 | MSIOF1_TSYNC_MARK, SCIFA2_CTS2__MARK, |
| 341 | MSIOF1_TSCK_MARK, SCIFA2_SCK2_MARK, |
| 342 | MSIOF1_RXD_MARK, SCIFA2_RXD2_MARK, |
| 343 | MSIOF1_RSCK_MARK, SCIFA2_RTS2__MARK, VIO2_CLK2_MARK, LCD2D20_MARK, |
| 344 | MSIOF1_RSYNC_MARK, MFG1_IN2_MARK, VIO2_VD2_MARK, LCD2D21_MARK, |
| 345 | MSIOF1_MCK0_MARK, PORT236_I2C_SDA2_MARK, |
| 346 | MSIOF1_MCK1_MARK, PORT237_I2C_SCL2_MARK, |
| 347 | MSIOF1_SS1_MARK, VIO2_FIELD2_MARK, LCD2D22_MARK, |
| 348 | MSIOF1_SS2_MARK, VIO2_HD2_MARK, LCD2D23_MARK, |
| 349 | SCIFA6_TXD_MARK, |
| 350 | PORT241_IRDA_OUT_MARK, PORT241_IROUT_MARK, MFG4_OUT1_MARK, TPU4TO0_MARK, |
| 351 | PORT242_IRDA_IN_MARK, MFG4_IN2_MARK, |
| 352 | PORT243_IRDA_FIRSEL_MARK, PORT243_VIO_CKO2_MARK, |
| 353 | PORT244_SCIFA5_CTS__MARK, MFG2_IN1_MARK, PORT244_SCIFB_CTS__MARK, \ |
| 354 | MSIOF2R_RXD_MARK, |
| 355 | PORT245_SCIFA5_RTS__MARK, MFG2_IN2_MARK, PORT245_SCIFB_RTS__MARK, \ |
| 356 | MSIOF2R_TXD_MARK, |
| 357 | PORT246_SCIFA5_RXD_MARK, MFG1_OUT1_MARK, PORT246_SCIFB_RXD_MARK, \ |
| 358 | TPU1TO0_MARK, |
| 359 | PORT247_SCIFA5_TXD_MARK, MFG3_OUT2_MARK, PORT247_SCIFB_TXD_MARK, \ |
| 360 | TPU3TO1_MARK, |
| 361 | PORT248_SCIFA5_SCK_MARK, MFG2_OUT1_MARK, PORT248_SCIFB_SCK_MARK, \ |
| 362 | TPU2TO0_MARK, PORT248_I2C_SCL3_MARK, MSIOF2R_TSCK_MARK, |
| 363 | PORT249_IROUT_MARK, MFG4_IN1_MARK, PORT249_I2C_SDA3_MARK, \ |
| 364 | MSIOF2R_TSYNC_MARK, |
| 365 | SDHICLK0_MARK, |
| 366 | SDHICD0_MARK, |
| 367 | SDHID0_0_MARK, |
| 368 | SDHID0_1_MARK, |
| 369 | SDHID0_2_MARK, |
| 370 | SDHID0_3_MARK, |
| 371 | SDHICMD0_MARK, |
| 372 | SDHIWP0_MARK, |
| 373 | SDHICLK1_MARK, |
| 374 | SDHID1_0_MARK, TS_SPSYNC2_MARK, |
| 375 | SDHID1_1_MARK, TS_SDAT2_MARK, |
| 376 | SDHID1_2_MARK, TS_SDEN2_MARK, |
| 377 | SDHID1_3_MARK, TS_SCK2_MARK, |
| 378 | SDHICMD1_MARK, |
| 379 | SDHICLK2_MARK, |
| 380 | SDHID2_0_MARK, TS_SPSYNC4_MARK, |
| 381 | SDHID2_1_MARK, TS_SDAT4_MARK, |
| 382 | SDHID2_2_MARK, TS_SDEN4_MARK, |
| 383 | SDHID2_3_MARK, TS_SCK4_MARK, |
| 384 | SDHICMD2_MARK, |
| 385 | MMCCLK0_MARK, |
| 386 | MMCD0_0_MARK, |
| 387 | MMCD0_1_MARK, |
| 388 | MMCD0_2_MARK, |
| 389 | MMCD0_3_MARK, |
| 390 | MMCD0_4_MARK, TS_SPSYNC5_MARK, |
| 391 | MMCD0_5_MARK, TS_SDAT5_MARK, |
| 392 | MMCD0_6_MARK, TS_SDEN5_MARK, |
| 393 | MMCD0_7_MARK, TS_SCK5_MARK, |
| 394 | MMCCMD0_MARK, |
| 395 | RESETOUTS__MARK, EXTAL2OUT_MARK, |
| 396 | MCP_WAIT__MCP_FRB_MARK, |
| 397 | MCP_CKO_MARK, MMCCLK1_MARK, |
| 398 | MCP_D15_MCP_NAF15_MARK, |
| 399 | MCP_D14_MCP_NAF14_MARK, |
| 400 | MCP_D13_MCP_NAF13_MARK, |
| 401 | MCP_D12_MCP_NAF12_MARK, |
| 402 | MCP_D11_MCP_NAF11_MARK, |
| 403 | MCP_D10_MCP_NAF10_MARK, |
| 404 | MCP_D9_MCP_NAF9_MARK, |
| 405 | MCP_D8_MCP_NAF8_MARK, MMCCMD1_MARK, |
| 406 | MCP_D7_MCP_NAF7_MARK, MMCD1_7_MARK, |
| 407 | |
| 408 | MCP_D6_MCP_NAF6_MARK, MMCD1_6_MARK, |
| 409 | MCP_D5_MCP_NAF5_MARK, MMCD1_5_MARK, |
| 410 | MCP_D4_MCP_NAF4_MARK, MMCD1_4_MARK, |
| 411 | MCP_D3_MCP_NAF3_MARK, MMCD1_3_MARK, |
| 412 | MCP_D2_MCP_NAF2_MARK, MMCD1_2_MARK, |
| 413 | MCP_D1_MCP_NAF1_MARK, MMCD1_1_MARK, |
| 414 | MCP_D0_MCP_NAF0_MARK, MMCD1_0_MARK, |
| 415 | MCP_NBRSTOUT__MARK, |
| 416 | MCP_WE0__MCP_FWE_MARK, MCP_RDWR_MCP_FWE_MARK, |
| 417 | |
| 418 | /* MSEL2 special cases */ |
| 419 | TSIF2_TS_XX1_MARK, |
| 420 | TSIF2_TS_XX2_MARK, |
| 421 | TSIF2_TS_XX3_MARK, |
| 422 | TSIF2_TS_XX4_MARK, |
| 423 | TSIF2_TS_XX5_MARK, |
| 424 | TSIF1_TS_XX1_MARK, |
| 425 | TSIF1_TS_XX2_MARK, |
| 426 | TSIF1_TS_XX3_MARK, |
| 427 | TSIF1_TS_XX4_MARK, |
| 428 | TSIF1_TS_XX5_MARK, |
| 429 | TSIF0_TS_XX1_MARK, |
| 430 | TSIF0_TS_XX2_MARK, |
| 431 | TSIF0_TS_XX3_MARK, |
| 432 | TSIF0_TS_XX4_MARK, |
| 433 | TSIF0_TS_XX5_MARK, |
| 434 | MST1_TS_XX1_MARK, |
| 435 | MST1_TS_XX2_MARK, |
| 436 | MST1_TS_XX3_MARK, |
| 437 | MST1_TS_XX4_MARK, |
| 438 | MST1_TS_XX5_MARK, |
| 439 | MST0_TS_XX1_MARK, |
| 440 | MST0_TS_XX2_MARK, |
| 441 | MST0_TS_XX3_MARK, |
| 442 | MST0_TS_XX4_MARK, |
| 443 | MST0_TS_XX5_MARK, |
| 444 | |
| 445 | /* MSEL3 special cases */ |
| 446 | SDHI0_VCCQ_MC0_ON_MARK, |
| 447 | SDHI0_VCCQ_MC0_OFF_MARK, |
| 448 | DEBUG_MON_VIO_MARK, |
| 449 | DEBUG_MON_LCDD_MARK, |
| 450 | LCDC_LCDC0_MARK, |
| 451 | LCDC_LCDC1_MARK, |
| 452 | |
| 453 | /* MSEL4 special cases */ |
| 454 | IRQ9_MEM_INT_MARK, |
| 455 | IRQ9_MCP_INT_MARK, |
| 456 | A11_MARK, |
| 457 | KEYOUT8_MARK, |
| 458 | TPU4TO3_MARK, |
| 459 | RESETA_N_PU_ON_MARK, |
| 460 | RESETA_N_PU_OFF_MARK, |
| 461 | EDBGREQ_PD_MARK, |
| 462 | EDBGREQ_PU_MARK, |
| 463 | |
| 464 | PINMUX_MARK_END, |
| 465 | }; |
| 466 | |
| 467 | static const u16 pinmux_data[] = { |
| 468 | /* specify valid pin states for each pin in GPIO mode */ |
| 469 | PINMUX_DATA_ALL(), |
| 470 | |
| 471 | /* Table 25-1 (Function 0-7) */ |
| 472 | PINMUX_DATA(VBUS_0_MARK, PORT0_FN1), |
| 473 | PINMUX_DATA(GPI0_MARK, PORT1_FN1), |
| 474 | PINMUX_DATA(GPI1_MARK, PORT2_FN1), |
| 475 | PINMUX_DATA(GPI2_MARK, PORT3_FN1), |
| 476 | PINMUX_DATA(GPI3_MARK, PORT4_FN1), |
| 477 | PINMUX_DATA(GPI4_MARK, PORT5_FN1), |
| 478 | PINMUX_DATA(GPI5_MARK, PORT6_FN1), |
| 479 | PINMUX_DATA(GPI6_MARK, PORT7_FN1), |
| 480 | PINMUX_DATA(GPI7_MARK, PORT8_FN1), |
| 481 | PINMUX_DATA(SCIFA7_RXD_MARK, PORT12_FN2), |
| 482 | PINMUX_DATA(SCIFA7_CTS__MARK, PORT13_FN2), |
| 483 | PINMUX_DATA(GPO7_MARK, PORT14_FN1), \ |
| 484 | PINMUX_DATA(MFG0_OUT2_MARK, PORT14_FN4), |
| 485 | PINMUX_DATA(GPO6_MARK, PORT15_FN1), \ |
| 486 | PINMUX_DATA(MFG1_OUT2_MARK, PORT15_FN4), |
| 487 | PINMUX_DATA(GPO5_MARK, PORT16_FN1), \ |
| 488 | PINMUX_DATA(SCIFA0_SCK_MARK, PORT16_FN2), \ |
| 489 | PINMUX_DATA(FSICOSLDT3_MARK, PORT16_FN3), \ |
| 490 | PINMUX_DATA(PORT16_VIO_CKOR_MARK, PORT16_FN4), |
| 491 | PINMUX_DATA(SCIFA0_TXD_MARK, PORT17_FN2), |
| 492 | PINMUX_DATA(SCIFA7_TXD_MARK, PORT18_FN2), |
| 493 | PINMUX_DATA(SCIFA7_RTS__MARK, PORT19_FN2), \ |
| 494 | PINMUX_DATA(PORT19_VIO_CKO2_MARK, PORT19_FN3), |
| 495 | PINMUX_DATA(GPO0_MARK, PORT20_FN1), |
| 496 | PINMUX_DATA(GPO1_MARK, PORT21_FN1), |
| 497 | PINMUX_DATA(GPO2_MARK, PORT22_FN1), \ |
| 498 | PINMUX_DATA(STATUS0_MARK, PORT22_FN2), |
| 499 | PINMUX_DATA(GPO3_MARK, PORT23_FN1), \ |
| 500 | PINMUX_DATA(STATUS1_MARK, PORT23_FN2), |
| 501 | PINMUX_DATA(GPO4_MARK, PORT24_FN1), \ |
| 502 | PINMUX_DATA(STATUS2_MARK, PORT24_FN2), |
| 503 | PINMUX_DATA(VINT_MARK, PORT25_FN1), |
| 504 | PINMUX_DATA(TCKON_MARK, PORT26_FN1), |
| 505 | PINMUX_DATA(XDVFS1_MARK, PORT27_FN1), \ |
| 506 | PINMUX_DATA(PORT27_I2C_SCL2_MARK, PORT27_FN2, MSEL2CR_MSEL17_0, |
| 507 | MSEL2CR_MSEL16_1), \ |
| 508 | PINMUX_DATA(PORT27_I2C_SCL3_MARK, PORT27_FN3, MSEL2CR_MSEL19_0, |
| 509 | MSEL2CR_MSEL18_1), \ |
| 510 | PINMUX_DATA(MFG0_OUT1_MARK, PORT27_FN4), \ |
| 511 | PINMUX_DATA(PORT27_IROUT_MARK, PORT27_FN7), |
| 512 | PINMUX_DATA(XDVFS2_MARK, PORT28_FN1), \ |
| 513 | PINMUX_DATA(PORT28_I2C_SDA2_MARK, PORT28_FN2, MSEL2CR_MSEL17_0, |
| 514 | MSEL2CR_MSEL16_1), \ |
| 515 | PINMUX_DATA(PORT28_I2C_SDA3_MARK, PORT28_FN3, MSEL2CR_MSEL19_0, |
| 516 | MSEL2CR_MSEL18_1), \ |
| 517 | PINMUX_DATA(PORT28_TPU1TO1_MARK, PORT28_FN7), |
| 518 | PINMUX_DATA(SIM_RST_MARK, PORT29_FN1), \ |
| 519 | PINMUX_DATA(PORT29_TPU1TO1_MARK, PORT29_FN4), |
| 520 | PINMUX_DATA(SIM_CLK_MARK, PORT30_FN1), \ |
| 521 | PINMUX_DATA(PORT30_VIO_CKOR_MARK, PORT30_FN4), |
| 522 | PINMUX_DATA(SIM_D_MARK, PORT31_FN1), \ |
| 523 | PINMUX_DATA(PORT31_IROUT_MARK, PORT31_FN4), |
| 524 | PINMUX_DATA(SCIFA4_TXD_MARK, PORT32_FN2), |
| 525 | PINMUX_DATA(SCIFA4_RXD_MARK, PORT33_FN2), \ |
| 526 | PINMUX_DATA(XWUP_MARK, PORT33_FN3), |
| 527 | PINMUX_DATA(SCIFA4_RTS__MARK, PORT34_FN2), |
| 528 | PINMUX_DATA(SCIFA4_CTS__MARK, PORT35_FN2), |
| 529 | PINMUX_DATA(FSIBOBT_MARK, PORT36_FN1), \ |
| 530 | PINMUX_DATA(FSIBIBT_MARK, PORT36_FN2), |
| 531 | PINMUX_DATA(FSIBOLR_MARK, PORT37_FN1), \ |
| 532 | PINMUX_DATA(FSIBILR_MARK, PORT37_FN2), |
| 533 | PINMUX_DATA(FSIBOSLD_MARK, PORT38_FN1), |
| 534 | PINMUX_DATA(FSIBISLD_MARK, PORT39_FN1), |
| 535 | PINMUX_DATA(VACK_MARK, PORT40_FN1), |
| 536 | PINMUX_DATA(XTAL1L_MARK, PORT41_FN1), |
| 537 | PINMUX_DATA(SCIFA0_RTS__MARK, PORT42_FN2), \ |
| 538 | PINMUX_DATA(FSICOSLDT2_MARK, PORT42_FN3), |
| 539 | PINMUX_DATA(SCIFA0_RXD_MARK, PORT43_FN2), |
| 540 | PINMUX_DATA(SCIFA0_CTS__MARK, PORT44_FN2), \ |
| 541 | PINMUX_DATA(FSICOSLDT1_MARK, PORT44_FN3), |
| 542 | PINMUX_DATA(FSICOBT_MARK, PORT45_FN1), \ |
| 543 | PINMUX_DATA(FSICIBT_MARK, PORT45_FN2), \ |
| 544 | PINMUX_DATA(FSIDOBT_MARK, PORT45_FN3), \ |
| 545 | PINMUX_DATA(FSIDIBT_MARK, PORT45_FN4), |
| 546 | PINMUX_DATA(FSICOLR_MARK, PORT46_FN1), \ |
| 547 | PINMUX_DATA(FSICILR_MARK, PORT46_FN2), \ |
| 548 | PINMUX_DATA(FSIDOLR_MARK, PORT46_FN3), \ |
| 549 | PINMUX_DATA(FSIDILR_MARK, PORT46_FN4), |
| 550 | PINMUX_DATA(FSICOSLD_MARK, PORT47_FN1), \ |
| 551 | PINMUX_DATA(PORT47_FSICSPDIF_MARK, PORT47_FN2), |
| 552 | PINMUX_DATA(FSICISLD_MARK, PORT48_FN1), \ |
| 553 | PINMUX_DATA(FSIDISLD_MARK, PORT48_FN3), |
| 554 | PINMUX_DATA(FSIACK_MARK, PORT49_FN1), \ |
| 555 | PINMUX_DATA(PORT49_IRDA_OUT_MARK, PORT49_FN2, MSEL4CR_MSEL19_1), \ |
| 556 | PINMUX_DATA(PORT49_IROUT_MARK, PORT49_FN4), \ |
| 557 | PINMUX_DATA(FSIAOMC_MARK, PORT49_FN5), |
| 558 | PINMUX_DATA(FSIAOLR_MARK, PORT50_FN1), \ |
| 559 | PINMUX_DATA(BBIF2_TSYNC2_MARK, PORT50_FN2), \ |
| 560 | PINMUX_DATA(TPU2TO2_MARK, PORT50_FN3), \ |
| 561 | PINMUX_DATA(FSIAILR_MARK, PORT50_FN5), |
| 562 | |
| 563 | PINMUX_DATA(FSIAOBT_MARK, PORT51_FN1), \ |
| 564 | PINMUX_DATA(BBIF2_TSCK2_MARK, PORT51_FN2), \ |
| 565 | PINMUX_DATA(TPU2TO3_MARK, PORT51_FN3), \ |
| 566 | PINMUX_DATA(FSIAIBT_MARK, PORT51_FN5), |
| 567 | PINMUX_DATA(FSIAOSLD_MARK, PORT52_FN1), \ |
| 568 | PINMUX_DATA(BBIF2_TXD2_MARK, PORT52_FN2), |
| 569 | PINMUX_DATA(FSIASPDIF_MARK, PORT53_FN1), \ |
| 570 | PINMUX_DATA(PORT53_IRDA_IN_MARK, PORT53_FN2, MSEL4CR_MSEL19_1), \ |
| 571 | PINMUX_DATA(TPU3TO3_MARK, PORT53_FN3), \ |
| 572 | PINMUX_DATA(FSIBSPDIF_MARK, PORT53_FN5), \ |
| 573 | PINMUX_DATA(PORT53_FSICSPDIF_MARK, PORT53_FN6), |
| 574 | PINMUX_DATA(FSIBCK_MARK, PORT54_FN1), \ |
| 575 | PINMUX_DATA(PORT54_IRDA_FIRSEL_MARK, PORT54_FN2, MSEL4CR_MSEL19_1), \ |
| 576 | PINMUX_DATA(TPU3TO2_MARK, PORT54_FN3), \ |
| 577 | PINMUX_DATA(FSIBOMC_MARK, PORT54_FN5), \ |
| 578 | PINMUX_DATA(FSICCK_MARK, PORT54_FN6), \ |
| 579 | PINMUX_DATA(FSICOMC_MARK, PORT54_FN7), |
| 580 | PINMUX_DATA(FSIAISLD_MARK, PORT55_FN1), \ |
| 581 | PINMUX_DATA(TPU0TO0_MARK, PORT55_FN3), |
| 582 | PINMUX_DATA(A0_MARK, PORT57_FN1), \ |
| 583 | PINMUX_DATA(BS__MARK, PORT57_FN2), |
| 584 | PINMUX_DATA(A12_MARK, PORT58_FN1), \ |
| 585 | PINMUX_DATA(PORT58_KEYOUT7_MARK, PORT58_FN2), \ |
| 586 | PINMUX_DATA(TPU4TO2_MARK, PORT58_FN4), |
| 587 | PINMUX_DATA(A13_MARK, PORT59_FN1), \ |
| 588 | PINMUX_DATA(PORT59_KEYOUT6_MARK, PORT59_FN2), \ |
| 589 | PINMUX_DATA(TPU0TO1_MARK, PORT59_FN4), |
| 590 | PINMUX_DATA(A14_MARK, PORT60_FN1), \ |
| 591 | PINMUX_DATA(KEYOUT5_MARK, PORT60_FN2), |
| 592 | PINMUX_DATA(A15_MARK, PORT61_FN1), \ |
| 593 | PINMUX_DATA(KEYOUT4_MARK, PORT61_FN2), |
| 594 | PINMUX_DATA(A16_MARK, PORT62_FN1), \ |
| 595 | PINMUX_DATA(KEYOUT3_MARK, PORT62_FN2), \ |
| 596 | PINMUX_DATA(MSIOF0_SS1_MARK, PORT62_FN4, MSEL3CR_MSEL11_0), |
| 597 | PINMUX_DATA(A17_MARK, PORT63_FN1), \ |
| 598 | PINMUX_DATA(KEYOUT2_MARK, PORT63_FN2), \ |
| 599 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT63_FN4, MSEL3CR_MSEL11_0), |
| 600 | PINMUX_DATA(A18_MARK, PORT64_FN1), \ |
| 601 | PINMUX_DATA(KEYOUT1_MARK, PORT64_FN2), \ |
| 602 | PINMUX_DATA(MSIOF0_TSCK_MARK, PORT64_FN4, MSEL3CR_MSEL11_0), |
| 603 | PINMUX_DATA(A19_MARK, PORT65_FN1), \ |
| 604 | PINMUX_DATA(KEYOUT0_MARK, PORT65_FN2), \ |
| 605 | PINMUX_DATA(MSIOF0_TXD_MARK, PORT65_FN4, MSEL3CR_MSEL11_0), |
| 606 | PINMUX_DATA(A20_MARK, PORT66_FN1), \ |
| 607 | PINMUX_DATA(KEYIN0_MARK, PORT66_FN2), \ |
| 608 | PINMUX_DATA(MSIOF0_RSCK_MARK, PORT66_FN4, MSEL3CR_MSEL11_0), |
| 609 | PINMUX_DATA(A21_MARK, PORT67_FN1), \ |
| 610 | PINMUX_DATA(KEYIN1_MARK, PORT67_FN2), \ |
| 611 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT67_FN4, MSEL3CR_MSEL11_0), |
| 612 | PINMUX_DATA(A22_MARK, PORT68_FN1), \ |
| 613 | PINMUX_DATA(KEYIN2_MARK, PORT68_FN2), \ |
| 614 | PINMUX_DATA(MSIOF0_MCK0_MARK, PORT68_FN4, MSEL3CR_MSEL11_0), |
| 615 | PINMUX_DATA(A23_MARK, PORT69_FN1), \ |
| 616 | PINMUX_DATA(KEYIN3_MARK, PORT69_FN2), \ |
| 617 | PINMUX_DATA(MSIOF0_MCK1_MARK, PORT69_FN4, MSEL3CR_MSEL11_0), |
| 618 | PINMUX_DATA(A24_MARK, PORT70_FN1), \ |
| 619 | PINMUX_DATA(KEYIN4_MARK, PORT70_FN2), \ |
| 620 | PINMUX_DATA(MSIOF0_RXD_MARK, PORT70_FN4, MSEL3CR_MSEL11_0), |
| 621 | PINMUX_DATA(A25_MARK, PORT71_FN1), \ |
| 622 | PINMUX_DATA(KEYIN5_MARK, PORT71_FN2), \ |
| 623 | PINMUX_DATA(MSIOF0_SS2_MARK, PORT71_FN4, MSEL3CR_MSEL11_0), |
| 624 | PINMUX_DATA(A26_MARK, PORT72_FN1), \ |
| 625 | PINMUX_DATA(KEYIN6_MARK, PORT72_FN2), |
| 626 | PINMUX_DATA(KEYIN7_MARK, PORT73_FN2), |
| 627 | PINMUX_DATA(D0_NAF0_MARK, PORT74_FN1), |
| 628 | PINMUX_DATA(D1_NAF1_MARK, PORT75_FN1), |
| 629 | PINMUX_DATA(D2_NAF2_MARK, PORT76_FN1), |
| 630 | PINMUX_DATA(D3_NAF3_MARK, PORT77_FN1), |
| 631 | PINMUX_DATA(D4_NAF4_MARK, PORT78_FN1), |
| 632 | PINMUX_DATA(D5_NAF5_MARK, PORT79_FN1), |
| 633 | PINMUX_DATA(D6_NAF6_MARK, PORT80_FN1), |
| 634 | PINMUX_DATA(D7_NAF7_MARK, PORT81_FN1), |
| 635 | PINMUX_DATA(D8_NAF8_MARK, PORT82_FN1), |
| 636 | PINMUX_DATA(D9_NAF9_MARK, PORT83_FN1), |
| 637 | PINMUX_DATA(D10_NAF10_MARK, PORT84_FN1), |
| 638 | PINMUX_DATA(D11_NAF11_MARK, PORT85_FN1), |
| 639 | PINMUX_DATA(D12_NAF12_MARK, PORT86_FN1), |
| 640 | PINMUX_DATA(D13_NAF13_MARK, PORT87_FN1), |
| 641 | PINMUX_DATA(D14_NAF14_MARK, PORT88_FN1), |
| 642 | PINMUX_DATA(D15_NAF15_MARK, PORT89_FN1), |
| 643 | PINMUX_DATA(CS4__MARK, PORT90_FN1), |
| 644 | PINMUX_DATA(CS5A__MARK, PORT91_FN1), \ |
| 645 | PINMUX_DATA(PORT91_RDWR_MARK, PORT91_FN2), |
| 646 | PINMUX_DATA(CS5B__MARK, PORT92_FN1), \ |
| 647 | PINMUX_DATA(FCE1__MARK, PORT92_FN2), |
| 648 | PINMUX_DATA(CS6B__MARK, PORT93_FN1), \ |
| 649 | PINMUX_DATA(DACK0_MARK, PORT93_FN4), |
| 650 | PINMUX_DATA(FCE0__MARK, PORT94_FN1), \ |
| 651 | PINMUX_DATA(CS6A__MARK, PORT94_FN2), |
| 652 | PINMUX_DATA(WAIT__MARK, PORT95_FN1), \ |
| 653 | PINMUX_DATA(DREQ0_MARK, PORT95_FN2), |
| 654 | PINMUX_DATA(RD__FSC_MARK, PORT96_FN1), |
| 655 | PINMUX_DATA(WE0__FWE_MARK, PORT97_FN1), \ |
| 656 | PINMUX_DATA(RDWR_FWE_MARK, PORT97_FN2), |
| 657 | PINMUX_DATA(WE1__MARK, PORT98_FN1), |
| 658 | PINMUX_DATA(FRB_MARK, PORT99_FN1), |
| 659 | PINMUX_DATA(CKO_MARK, PORT100_FN1), |
| 660 | PINMUX_DATA(NBRSTOUT__MARK, PORT101_FN1), |
| 661 | PINMUX_DATA(NBRST__MARK, PORT102_FN1), |
| 662 | PINMUX_DATA(BBIF2_TXD_MARK, PORT103_FN3), |
| 663 | PINMUX_DATA(BBIF2_RXD_MARK, PORT104_FN3), |
| 664 | PINMUX_DATA(BBIF2_SYNC_MARK, PORT105_FN3), |
| 665 | PINMUX_DATA(BBIF2_SCK_MARK, PORT106_FN3), |
| 666 | PINMUX_DATA(SCIFA3_CTS__MARK, PORT107_FN3), \ |
| 667 | PINMUX_DATA(MFG3_IN2_MARK, PORT107_FN4), |
| 668 | PINMUX_DATA(SCIFA3_RXD_MARK, PORT108_FN3), \ |
| 669 | PINMUX_DATA(MFG3_IN1_MARK, PORT108_FN4), |
| 670 | PINMUX_DATA(BBIF1_SS2_MARK, PORT109_FN2), \ |
| 671 | PINMUX_DATA(SCIFA3_RTS__MARK, PORT109_FN3), \ |
| 672 | PINMUX_DATA(MFG3_OUT1_MARK, PORT109_FN4), |
| 673 | PINMUX_DATA(SCIFA3_TXD_MARK, PORT110_FN3), |
| 674 | PINMUX_DATA(HSI_RX_DATA_MARK, PORT111_FN1), \ |
| 675 | PINMUX_DATA(BBIF1_RXD_MARK, PORT111_FN3), |
| 676 | PINMUX_DATA(HSI_TX_WAKE_MARK, PORT112_FN1), \ |
| 677 | PINMUX_DATA(BBIF1_TSCK_MARK, PORT112_FN3), |
| 678 | PINMUX_DATA(HSI_TX_DATA_MARK, PORT113_FN1), \ |
| 679 | PINMUX_DATA(BBIF1_TSYNC_MARK, PORT113_FN3), |
| 680 | PINMUX_DATA(HSI_TX_READY_MARK, PORT114_FN1), \ |
| 681 | PINMUX_DATA(BBIF1_TXD_MARK, PORT114_FN3), |
| 682 | PINMUX_DATA(HSI_RX_READY_MARK, PORT115_FN1), \ |
| 683 | PINMUX_DATA(BBIF1_RSCK_MARK, PORT115_FN3), \ |
| 684 | PINMUX_DATA(PORT115_I2C_SCL2_MARK, PORT115_FN5, MSEL2CR_MSEL17_1), \ |
| 685 | PINMUX_DATA(PORT115_I2C_SCL3_MARK, PORT115_FN6, MSEL2CR_MSEL19_1), |
| 686 | PINMUX_DATA(HSI_RX_WAKE_MARK, PORT116_FN1), \ |
| 687 | PINMUX_DATA(BBIF1_RSYNC_MARK, PORT116_FN3), \ |
| 688 | PINMUX_DATA(PORT116_I2C_SDA2_MARK, PORT116_FN5, MSEL2CR_MSEL17_1), \ |
| 689 | PINMUX_DATA(PORT116_I2C_SDA3_MARK, PORT116_FN6, MSEL2CR_MSEL19_1), |
| 690 | PINMUX_DATA(HSI_RX_FLAG_MARK, PORT117_FN1), \ |
| 691 | PINMUX_DATA(BBIF1_SS1_MARK, PORT117_FN2), \ |
| 692 | PINMUX_DATA(BBIF1_FLOW_MARK, PORT117_FN3), |
| 693 | PINMUX_DATA(HSI_TX_FLAG_MARK, PORT118_FN1), |
| 694 | PINMUX_DATA(VIO_VD_MARK, PORT128_FN1), \ |
| 695 | PINMUX_DATA(PORT128_LCD2VSYN_MARK, PORT128_FN4, MSEL3CR_MSEL2_0), \ |
| 696 | PINMUX_DATA(VIO2_VD_MARK, PORT128_FN6, MSEL4CR_MSEL27_0), \ |
| 697 | PINMUX_DATA(LCD2D0_MARK, PORT128_FN7), |
| 698 | |
| 699 | PINMUX_DATA(VIO_HD_MARK, PORT129_FN1), \ |
| 700 | PINMUX_DATA(PORT129_LCD2HSYN_MARK, PORT129_FN4), \ |
| 701 | PINMUX_DATA(PORT129_LCD2CS__MARK, PORT129_FN5), \ |
| 702 | PINMUX_DATA(VIO2_HD_MARK, PORT129_FN6, MSEL4CR_MSEL27_0), \ |
| 703 | PINMUX_DATA(LCD2D1_MARK, PORT129_FN7), |
| 704 | PINMUX_DATA(VIO_D0_MARK, PORT130_FN1), \ |
| 705 | PINMUX_DATA(PORT130_MSIOF2_RXD_MARK, PORT130_FN3, MSEL4CR_MSEL11_0, |
| 706 | MSEL4CR_MSEL10_1), \ |
| 707 | PINMUX_DATA(LCD2D10_MARK, PORT130_FN7), |
| 708 | PINMUX_DATA(VIO_D1_MARK, PORT131_FN1), \ |
| 709 | PINMUX_DATA(PORT131_KEYOUT6_MARK, PORT131_FN2), \ |
| 710 | PINMUX_DATA(PORT131_MSIOF2_SS1_MARK, PORT131_FN3), \ |
| 711 | PINMUX_DATA(PORT131_KEYOUT11_MARK, PORT131_FN4), \ |
| 712 | PINMUX_DATA(LCD2D11_MARK, PORT131_FN7), |
| 713 | PINMUX_DATA(VIO_D2_MARK, PORT132_FN1), \ |
| 714 | PINMUX_DATA(PORT132_KEYOUT7_MARK, PORT132_FN2), \ |
| 715 | PINMUX_DATA(PORT132_MSIOF2_SS2_MARK, PORT132_FN3), \ |
| 716 | PINMUX_DATA(PORT132_KEYOUT10_MARK, PORT132_FN4), \ |
| 717 | PINMUX_DATA(LCD2D12_MARK, PORT132_FN7), |
| 718 | PINMUX_DATA(VIO_D3_MARK, PORT133_FN1), \ |
| 719 | PINMUX_DATA(MSIOF2_TSYNC_MARK, PORT133_FN3, MSEL4CR_MSEL11_0), \ |
| 720 | PINMUX_DATA(LCD2D13_MARK, PORT133_FN7), |
| 721 | PINMUX_DATA(VIO_D4_MARK, PORT134_FN1), \ |
| 722 | PINMUX_DATA(MSIOF2_TXD_MARK, PORT134_FN3, MSEL4CR_MSEL11_0), \ |
| 723 | PINMUX_DATA(LCD2D14_MARK, PORT134_FN7), |
| 724 | PINMUX_DATA(VIO_D5_MARK, PORT135_FN1), \ |
| 725 | PINMUX_DATA(MSIOF2_TSCK_MARK, PORT135_FN3, MSEL4CR_MSEL11_0), \ |
| 726 | PINMUX_DATA(LCD2D15_MARK, PORT135_FN7), |
| 727 | PINMUX_DATA(VIO_D6_MARK, PORT136_FN1), \ |
| 728 | PINMUX_DATA(PORT136_KEYOUT8_MARK, PORT136_FN2), \ |
| 729 | PINMUX_DATA(LCD2D16_MARK, PORT136_FN7), |
| 730 | PINMUX_DATA(VIO_D7_MARK, PORT137_FN1), \ |
| 731 | PINMUX_DATA(PORT137_KEYOUT9_MARK, PORT137_FN2), \ |
| 732 | PINMUX_DATA(LCD2D17_MARK, PORT137_FN7), |
| 733 | PINMUX_DATA(VIO_D8_MARK, PORT138_FN1), \ |
| 734 | PINMUX_DATA(PORT138_KEYOUT8_MARK, PORT138_FN2), \ |
| 735 | PINMUX_DATA(VIO2_D0_MARK, PORT138_FN6), \ |
| 736 | PINMUX_DATA(LCD2D6_MARK, PORT138_FN7), |
| 737 | PINMUX_DATA(VIO_D9_MARK, PORT139_FN1), \ |
| 738 | PINMUX_DATA(PORT139_KEYOUT9_MARK, PORT139_FN2), \ |
| 739 | PINMUX_DATA(VIO2_D1_MARK, PORT139_FN6), \ |
| 740 | PINMUX_DATA(LCD2D7_MARK, PORT139_FN7), |
| 741 | PINMUX_DATA(VIO_D10_MARK, PORT140_FN1), \ |
| 742 | PINMUX_DATA(TPU0TO2_MARK, PORT140_FN4), \ |
| 743 | PINMUX_DATA(VIO2_D2_MARK, PORT140_FN6), \ |
| 744 | PINMUX_DATA(LCD2D8_MARK, PORT140_FN7), |
| 745 | PINMUX_DATA(VIO_D11_MARK, PORT141_FN1), \ |
| 746 | PINMUX_DATA(TPU0TO3_MARK, PORT141_FN4), \ |
| 747 | PINMUX_DATA(VIO2_D3_MARK, PORT141_FN6), \ |
| 748 | PINMUX_DATA(LCD2D9_MARK, PORT141_FN7), |
| 749 | PINMUX_DATA(VIO_D12_MARK, PORT142_FN1), \ |
| 750 | PINMUX_DATA(PORT142_KEYOUT10_MARK, PORT142_FN2), \ |
| 751 | PINMUX_DATA(VIO2_D4_MARK, PORT142_FN6), \ |
| 752 | PINMUX_DATA(LCD2D2_MARK, PORT142_FN7), |
| 753 | PINMUX_DATA(VIO_D13_MARK, PORT143_FN1), \ |
| 754 | PINMUX_DATA(PORT143_KEYOUT11_MARK, PORT143_FN2), \ |
| 755 | PINMUX_DATA(PORT143_KEYOUT6_MARK, PORT143_FN3), \ |
| 756 | PINMUX_DATA(VIO2_D5_MARK, PORT143_FN6), \ |
| 757 | PINMUX_DATA(LCD2D3_MARK, PORT143_FN7), |
| 758 | PINMUX_DATA(VIO_D14_MARK, PORT144_FN1), \ |
| 759 | PINMUX_DATA(PORT144_KEYOUT7_MARK, PORT144_FN2), \ |
| 760 | PINMUX_DATA(VIO2_D6_MARK, PORT144_FN6), \ |
| 761 | PINMUX_DATA(LCD2D4_MARK, PORT144_FN7), |
| 762 | PINMUX_DATA(VIO_D15_MARK, PORT145_FN1), \ |
| 763 | PINMUX_DATA(TPU1TO3_MARK, PORT145_FN3), \ |
| 764 | PINMUX_DATA(PORT145_LCD2DISP_MARK, PORT145_FN4), \ |
| 765 | PINMUX_DATA(PORT145_LCD2RS_MARK, PORT145_FN5), \ |
| 766 | PINMUX_DATA(VIO2_D7_MARK, PORT145_FN6), \ |
| 767 | PINMUX_DATA(LCD2D5_MARK, PORT145_FN7), |
| 768 | PINMUX_DATA(VIO_CLK_MARK, PORT146_FN1), \ |
| 769 | PINMUX_DATA(LCD2DCK_MARK, PORT146_FN4), \ |
| 770 | PINMUX_DATA(PORT146_LCD2WR__MARK, PORT146_FN5), \ |
| 771 | PINMUX_DATA(VIO2_CLK_MARK, PORT146_FN6, MSEL4CR_MSEL27_0), \ |
| 772 | PINMUX_DATA(LCD2D18_MARK, PORT146_FN7), |
| 773 | PINMUX_DATA(VIO_FIELD_MARK, PORT147_FN1), \ |
| 774 | PINMUX_DATA(LCD2RD__MARK, PORT147_FN4), \ |
| 775 | PINMUX_DATA(VIO2_FIELD_MARK, PORT147_FN6, MSEL4CR_MSEL27_0), \ |
| 776 | PINMUX_DATA(LCD2D19_MARK, PORT147_FN7), |
| 777 | PINMUX_DATA(VIO_CKO_MARK, PORT148_FN1), |
| 778 | PINMUX_DATA(A27_MARK, PORT149_FN1), \ |
| 779 | PINMUX_DATA(PORT149_RDWR_MARK, PORT149_FN2), \ |
| 780 | PINMUX_DATA(MFG0_IN1_MARK, PORT149_FN3), \ |
| 781 | PINMUX_DATA(PORT149_KEYOUT9_MARK, PORT149_FN4), |
| 782 | PINMUX_DATA(MFG0_IN2_MARK, PORT150_FN3), |
| 783 | PINMUX_DATA(TS_SPSYNC3_MARK, PORT151_FN4), \ |
| 784 | PINMUX_DATA(MSIOF2_RSCK_MARK, PORT151_FN5), |
| 785 | PINMUX_DATA(TS_SDAT3_MARK, PORT152_FN4), \ |
| 786 | PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT152_FN5), |
| 787 | PINMUX_DATA(TPU1TO2_MARK, PORT153_FN3), \ |
| 788 | PINMUX_DATA(TS_SDEN3_MARK, PORT153_FN4), \ |
| 789 | PINMUX_DATA(PORT153_MSIOF2_SS1_MARK, PORT153_FN5), |
| 790 | PINMUX_DATA(SCIFA2_TXD1_MARK, PORT154_FN2, MSEL3CR_MSEL9_0), \ |
| 791 | PINMUX_DATA(MSIOF2_MCK0_MARK, PORT154_FN5), |
| 792 | PINMUX_DATA(SCIFA2_RXD1_MARK, PORT155_FN2, MSEL3CR_MSEL9_0), \ |
| 793 | PINMUX_DATA(MSIOF2_MCK1_MARK, PORT155_FN5), |
| 794 | PINMUX_DATA(SCIFA2_RTS1__MARK, PORT156_FN2, MSEL3CR_MSEL9_0), \ |
| 795 | PINMUX_DATA(PORT156_MSIOF2_SS2_MARK, PORT156_FN5), |
| 796 | PINMUX_DATA(SCIFA2_CTS1__MARK, PORT157_FN2, MSEL3CR_MSEL9_0), \ |
| 797 | PINMUX_DATA(PORT157_MSIOF2_RXD_MARK, PORT157_FN5, MSEL4CR_MSEL11_0, |
| 798 | MSEL4CR_MSEL10_0), |
| 799 | PINMUX_DATA(DINT__MARK, PORT158_FN1), \ |
| 800 | PINMUX_DATA(SCIFA2_SCK1_MARK, PORT158_FN2, MSEL3CR_MSEL9_0), \ |
| 801 | PINMUX_DATA(TS_SCK3_MARK, PORT158_FN4), |
| 802 | PINMUX_DATA(PORT159_SCIFB_SCK_MARK, PORT159_FN1, MSEL4CR_MSEL22_0), \ |
| 803 | PINMUX_DATA(PORT159_SCIFA5_SCK_MARK, PORT159_FN2, MSEL4CR_MSEL21_1), \ |
| 804 | PINMUX_DATA(NMI_MARK, PORT159_FN3), |
| 805 | PINMUX_DATA(PORT160_SCIFB_TXD_MARK, PORT160_FN1, MSEL4CR_MSEL22_0), \ |
| 806 | PINMUX_DATA(PORT160_SCIFA5_TXD_MARK, PORT160_FN2, MSEL4CR_MSEL21_1), |
| 807 | PINMUX_DATA(PORT161_SCIFB_CTS__MARK, PORT161_FN1, MSEL4CR_MSEL22_0), \ |
| 808 | PINMUX_DATA(PORT161_SCIFA5_CTS__MARK, PORT161_FN2, MSEL4CR_MSEL21_1), |
| 809 | PINMUX_DATA(PORT162_SCIFB_RXD_MARK, PORT162_FN1, MSEL4CR_MSEL22_0), \ |
| 810 | PINMUX_DATA(PORT162_SCIFA5_RXD_MARK, PORT162_FN2, MSEL4CR_MSEL21_1), |
| 811 | PINMUX_DATA(PORT163_SCIFB_RTS__MARK, PORT163_FN1, MSEL4CR_MSEL22_0), \ |
| 812 | PINMUX_DATA(PORT163_SCIFA5_RTS__MARK, PORT163_FN2, MSEL4CR_MSEL21_1), \ |
| 813 | PINMUX_DATA(TPU3TO0_MARK, PORT163_FN5), |
| 814 | PINMUX_DATA(LCDD0_MARK, PORT192_FN1), |
| 815 | PINMUX_DATA(LCDD1_MARK, PORT193_FN1), \ |
| 816 | PINMUX_DATA(PORT193_SCIFA5_CTS__MARK, PORT193_FN3, MSEL4CR_MSEL21_0, |
| 817 | MSEL4CR_MSEL20_1), \ |
| 818 | PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT193_FN5), |
| 819 | PINMUX_DATA(LCDD2_MARK, PORT194_FN1), \ |
| 820 | PINMUX_DATA(PORT194_SCIFA5_RTS__MARK, PORT194_FN3, MSEL4CR_MSEL21_0, |
| 821 | MSEL4CR_MSEL20_1), \ |
| 822 | PINMUX_DATA(BBIF2_TSCK1_MARK, PORT194_FN5), |
| 823 | PINMUX_DATA(LCDD3_MARK, PORT195_FN1), \ |
| 824 | PINMUX_DATA(PORT195_SCIFA5_RXD_MARK, PORT195_FN3, MSEL4CR_MSEL21_0, |
| 825 | MSEL4CR_MSEL20_1), \ |
| 826 | PINMUX_DATA(BBIF2_TXD1_MARK, PORT195_FN5), |
| 827 | PINMUX_DATA(LCDD4_MARK, PORT196_FN1), \ |
| 828 | PINMUX_DATA(PORT196_SCIFA5_TXD_MARK, PORT196_FN3, MSEL4CR_MSEL21_0, |
| 829 | MSEL4CR_MSEL20_1), |
| 830 | PINMUX_DATA(LCDD5_MARK, PORT197_FN1), \ |
| 831 | PINMUX_DATA(PORT197_SCIFA5_SCK_MARK, PORT197_FN3, MSEL4CR_MSEL21_0, |
| 832 | MSEL4CR_MSEL20_1), \ |
| 833 | PINMUX_DATA(MFG2_OUT2_MARK, PORT197_FN5), \ |
| 834 | PINMUX_DATA(TPU2TO1_MARK, PORT197_FN7), |
| 835 | PINMUX_DATA(LCDD6_MARK, PORT198_FN1), |
| 836 | PINMUX_DATA(LCDD7_MARK, PORT199_FN1), \ |
| 837 | PINMUX_DATA(TPU4TO1_MARK, PORT199_FN2), \ |
| 838 | PINMUX_DATA(MFG4_OUT2_MARK, PORT199_FN5), |
| 839 | PINMUX_DATA(LCDD8_MARK, PORT200_FN1), \ |
| 840 | PINMUX_DATA(D16_MARK, PORT200_FN6), |
| 841 | PINMUX_DATA(LCDD9_MARK, PORT201_FN1), \ |
| 842 | PINMUX_DATA(D17_MARK, PORT201_FN6), |
| 843 | PINMUX_DATA(LCDD10_MARK, PORT202_FN1), \ |
| 844 | PINMUX_DATA(D18_MARK, PORT202_FN6), |
| 845 | PINMUX_DATA(LCDD11_MARK, PORT203_FN1), \ |
| 846 | PINMUX_DATA(D19_MARK, PORT203_FN6), |
| 847 | PINMUX_DATA(LCDD12_MARK, PORT204_FN1), \ |
| 848 | PINMUX_DATA(D20_MARK, PORT204_FN6), |
| 849 | PINMUX_DATA(LCDD13_MARK, PORT205_FN1), \ |
| 850 | PINMUX_DATA(D21_MARK, PORT205_FN6), |
| 851 | PINMUX_DATA(LCDD14_MARK, PORT206_FN1), \ |
| 852 | PINMUX_DATA(D22_MARK, PORT206_FN6), |
| 853 | PINMUX_DATA(LCDD15_MARK, PORT207_FN1), \ |
| 854 | PINMUX_DATA(PORT207_MSIOF0L_SS1_MARK, PORT207_FN2, MSEL3CR_MSEL11_1), \ |
| 855 | PINMUX_DATA(D23_MARK, PORT207_FN6), |
| 856 | PINMUX_DATA(LCDD16_MARK, PORT208_FN1), \ |
| 857 | PINMUX_DATA(PORT208_MSIOF0L_SS2_MARK, PORT208_FN2, MSEL3CR_MSEL11_1), \ |
| 858 | PINMUX_DATA(D24_MARK, PORT208_FN6), |
| 859 | PINMUX_DATA(LCDD17_MARK, PORT209_FN1), \ |
| 860 | PINMUX_DATA(D25_MARK, PORT209_FN6), |
| 861 | PINMUX_DATA(LCDD18_MARK, PORT210_FN1), \ |
| 862 | PINMUX_DATA(DREQ2_MARK, PORT210_FN2), \ |
| 863 | PINMUX_DATA(PORT210_MSIOF0L_SS1_MARK, PORT210_FN5, MSEL3CR_MSEL11_1), \ |
| 864 | PINMUX_DATA(D26_MARK, PORT210_FN6), |
| 865 | PINMUX_DATA(LCDD19_MARK, PORT211_FN1), \ |
| 866 | PINMUX_DATA(PORT211_MSIOF0L_SS2_MARK, PORT211_FN5, MSEL3CR_MSEL11_1), \ |
| 867 | PINMUX_DATA(D27_MARK, PORT211_FN6), |
| 868 | PINMUX_DATA(LCDD20_MARK, PORT212_FN1), \ |
| 869 | PINMUX_DATA(TS_SPSYNC1_MARK, PORT212_FN2), \ |
| 870 | PINMUX_DATA(MSIOF0L_MCK0_MARK, PORT212_FN5, MSEL3CR_MSEL11_1), \ |
| 871 | PINMUX_DATA(D28_MARK, PORT212_FN6), |
| 872 | PINMUX_DATA(LCDD21_MARK, PORT213_FN1), \ |
| 873 | PINMUX_DATA(TS_SDAT1_MARK, PORT213_FN2), \ |
| 874 | PINMUX_DATA(MSIOF0L_MCK1_MARK, PORT213_FN5, MSEL3CR_MSEL11_1), \ |
| 875 | PINMUX_DATA(D29_MARK, PORT213_FN6), |
| 876 | PINMUX_DATA(LCDD22_MARK, PORT214_FN1), \ |
| 877 | PINMUX_DATA(TS_SDEN1_MARK, PORT214_FN2), \ |
| 878 | PINMUX_DATA(MSIOF0L_RSCK_MARK, PORT214_FN5, MSEL3CR_MSEL11_1), \ |
| 879 | PINMUX_DATA(D30_MARK, PORT214_FN6), |
| 880 | PINMUX_DATA(LCDD23_MARK, PORT215_FN1), \ |
| 881 | PINMUX_DATA(TS_SCK1_MARK, PORT215_FN2), \ |
| 882 | PINMUX_DATA(MSIOF0L_RSYNC_MARK, PORT215_FN5, MSEL3CR_MSEL11_1), \ |
| 883 | PINMUX_DATA(D31_MARK, PORT215_FN6), |
| 884 | PINMUX_DATA(LCDDCK_MARK, PORT216_FN1), \ |
| 885 | PINMUX_DATA(LCDWR__MARK, PORT216_FN2), |
| 886 | PINMUX_DATA(LCDRD__MARK, PORT217_FN1), \ |
| 887 | PINMUX_DATA(DACK2_MARK, PORT217_FN2), \ |
| 888 | PINMUX_DATA(PORT217_LCD2RS_MARK, PORT217_FN3), \ |
| 889 | PINMUX_DATA(MSIOF0L_TSYNC_MARK, PORT217_FN5, MSEL3CR_MSEL11_1), \ |
| 890 | PINMUX_DATA(VIO2_FIELD3_MARK, PORT217_FN6, MSEL4CR_MSEL27_1, |
| 891 | MSEL4CR_MSEL26_1), \ |
| 892 | PINMUX_DATA(PORT217_LCD2DISP_MARK, PORT217_FN7), |
| 893 | PINMUX_DATA(LCDHSYN_MARK, PORT218_FN1), \ |
| 894 | PINMUX_DATA(LCDCS__MARK, PORT218_FN2), \ |
| 895 | PINMUX_DATA(LCDCS2__MARK, PORT218_FN3), \ |
| 896 | PINMUX_DATA(DACK3_MARK, PORT218_FN4), \ |
| 897 | PINMUX_DATA(PORT218_VIO_CKOR_MARK, PORT218_FN5), |
| 898 | PINMUX_DATA(LCDDISP_MARK, PORT219_FN1), \ |
| 899 | PINMUX_DATA(LCDRS_MARK, PORT219_FN2), \ |
| 900 | PINMUX_DATA(PORT219_LCD2WR__MARK, PORT219_FN3), \ |
| 901 | PINMUX_DATA(DREQ3_MARK, PORT219_FN4), \ |
| 902 | PINMUX_DATA(MSIOF0L_TSCK_MARK, PORT219_FN5, MSEL3CR_MSEL11_1), \ |
| 903 | PINMUX_DATA(VIO2_CLK3_MARK, PORT219_FN6, MSEL4CR_MSEL27_1, |
| 904 | MSEL4CR_MSEL26_1), \ |
| 905 | PINMUX_DATA(LCD2DCK_2_MARK, PORT219_FN7), |
| 906 | PINMUX_DATA(LCDVSYN_MARK, PORT220_FN1), \ |
| 907 | PINMUX_DATA(LCDVSYN2_MARK, PORT220_FN2), |
| 908 | PINMUX_DATA(LCDLCLK_MARK, PORT221_FN1), \ |
| 909 | PINMUX_DATA(DREQ1_MARK, PORT221_FN2), \ |
| 910 | PINMUX_DATA(PORT221_LCD2CS__MARK, PORT221_FN3), \ |
| 911 | PINMUX_DATA(PWEN_MARK, PORT221_FN4), \ |
| 912 | PINMUX_DATA(MSIOF0L_RXD_MARK, PORT221_FN5, MSEL3CR_MSEL11_1), \ |
| 913 | PINMUX_DATA(VIO2_HD3_MARK, PORT221_FN6, MSEL4CR_MSEL27_1, |
| 914 | MSEL4CR_MSEL26_1), \ |
| 915 | PINMUX_DATA(PORT221_LCD2HSYN_MARK, PORT221_FN7), |
| 916 | PINMUX_DATA(LCDDON_MARK, PORT222_FN1), \ |
| 917 | PINMUX_DATA(LCDDON2_MARK, PORT222_FN2), \ |
| 918 | PINMUX_DATA(DACK1_MARK, PORT222_FN3), \ |
| 919 | PINMUX_DATA(OVCN_MARK, PORT222_FN4), \ |
| 920 | PINMUX_DATA(MSIOF0L_TXD_MARK, PORT222_FN5, MSEL3CR_MSEL11_1), \ |
| 921 | PINMUX_DATA(VIO2_VD3_MARK, PORT222_FN6, MSEL4CR_MSEL27_1, |
| 922 | MSEL4CR_MSEL26_1), \ |
| 923 | PINMUX_DATA(PORT222_LCD2VSYN_MARK, PORT222_FN7, MSEL3CR_MSEL2_1), |
| 924 | |
| 925 | PINMUX_DATA(SCIFA1_TXD_MARK, PORT225_FN2), \ |
| 926 | PINMUX_DATA(OVCN2_MARK, PORT225_FN4), |
| 927 | PINMUX_DATA(EXTLP_MARK, PORT226_FN1), \ |
| 928 | PINMUX_DATA(SCIFA1_SCK_MARK, PORT226_FN2), \ |
| 929 | PINMUX_DATA(PORT226_VIO_CKO2_MARK, PORT226_FN5), |
| 930 | PINMUX_DATA(SCIFA1_RTS__MARK, PORT227_FN2), \ |
| 931 | PINMUX_DATA(IDIN_MARK, PORT227_FN4), |
| 932 | PINMUX_DATA(SCIFA1_RXD_MARK, PORT228_FN2), |
| 933 | PINMUX_DATA(SCIFA1_CTS__MARK, PORT229_FN2), \ |
| 934 | PINMUX_DATA(MFG1_IN1_MARK, PORT229_FN3), |
| 935 | PINMUX_DATA(MSIOF1_TXD_MARK, PORT230_FN1), \ |
| 936 | PINMUX_DATA(SCIFA2_TXD2_MARK, PORT230_FN2, MSEL3CR_MSEL9_1), |
| 937 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PORT231_FN1), \ |
| 938 | PINMUX_DATA(SCIFA2_CTS2__MARK, PORT231_FN2, MSEL3CR_MSEL9_1), |
| 939 | PINMUX_DATA(MSIOF1_TSCK_MARK, PORT232_FN1), \ |
| 940 | PINMUX_DATA(SCIFA2_SCK2_MARK, PORT232_FN2, MSEL3CR_MSEL9_1), |
| 941 | PINMUX_DATA(MSIOF1_RXD_MARK, PORT233_FN1), \ |
| 942 | PINMUX_DATA(SCIFA2_RXD2_MARK, PORT233_FN2, MSEL3CR_MSEL9_1), |
| 943 | PINMUX_DATA(MSIOF1_RSCK_MARK, PORT234_FN1), \ |
| 944 | PINMUX_DATA(SCIFA2_RTS2__MARK, PORT234_FN2, MSEL3CR_MSEL9_1), \ |
| 945 | PINMUX_DATA(VIO2_CLK2_MARK, PORT234_FN6, MSEL4CR_MSEL27_1, |
| 946 | MSEL4CR_MSEL26_0), \ |
| 947 | PINMUX_DATA(LCD2D20_MARK, PORT234_FN7), |
| 948 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT235_FN1), \ |
| 949 | PINMUX_DATA(MFG1_IN2_MARK, PORT235_FN3), \ |
| 950 | PINMUX_DATA(VIO2_VD2_MARK, PORT235_FN6, MSEL4CR_MSEL27_1, |
| 951 | MSEL4CR_MSEL26_0), \ |
| 952 | PINMUX_DATA(LCD2D21_MARK, PORT235_FN7), |
| 953 | PINMUX_DATA(MSIOF1_MCK0_MARK, PORT236_FN1), \ |
| 954 | PINMUX_DATA(PORT236_I2C_SDA2_MARK, PORT236_FN2, MSEL2CR_MSEL17_0, |
| 955 | MSEL2CR_MSEL16_0), |
| 956 | PINMUX_DATA(MSIOF1_MCK1_MARK, PORT237_FN1), \ |
| 957 | PINMUX_DATA(PORT237_I2C_SCL2_MARK, PORT237_FN2, MSEL2CR_MSEL17_0, |
| 958 | MSEL2CR_MSEL16_0), |
| 959 | PINMUX_DATA(MSIOF1_SS1_MARK, PORT238_FN1), \ |
| 960 | PINMUX_DATA(VIO2_FIELD2_MARK, PORT238_FN6, MSEL4CR_MSEL27_1, |
| 961 | MSEL4CR_MSEL26_0), \ |
| 962 | PINMUX_DATA(LCD2D22_MARK, PORT238_FN7), |
| 963 | PINMUX_DATA(MSIOF1_SS2_MARK, PORT239_FN1), \ |
| 964 | PINMUX_DATA(VIO2_HD2_MARK, PORT239_FN6, MSEL4CR_MSEL27_1, |
| 965 | MSEL4CR_MSEL26_0), \ |
| 966 | PINMUX_DATA(LCD2D23_MARK, PORT239_FN7), |
| 967 | PINMUX_DATA(SCIFA6_TXD_MARK, PORT240_FN1), |
| 968 | PINMUX_DATA(PORT241_IRDA_OUT_MARK, PORT241_FN1, MSEL4CR_MSEL19_0), \ |
| 969 | PINMUX_DATA(PORT241_IROUT_MARK, PORT241_FN2), \ |
| 970 | PINMUX_DATA(MFG4_OUT1_MARK, PORT241_FN3), \ |
| 971 | PINMUX_DATA(TPU4TO0_MARK, PORT241_FN4), |
| 972 | PINMUX_DATA(PORT242_IRDA_IN_MARK, PORT242_FN1, MSEL4CR_MSEL19_0), \ |
| 973 | PINMUX_DATA(MFG4_IN2_MARK, PORT242_FN3), |
| 974 | PINMUX_DATA(PORT243_IRDA_FIRSEL_MARK, PORT243_FN1, MSEL4CR_MSEL19_0), \ |
| 975 | PINMUX_DATA(PORT243_VIO_CKO2_MARK, PORT243_FN2), |
| 976 | PINMUX_DATA(PORT244_SCIFA5_CTS__MARK, PORT244_FN1, MSEL4CR_MSEL21_0, |
| 977 | MSEL4CR_MSEL20_0), \ |
| 978 | PINMUX_DATA(MFG2_IN1_MARK, PORT244_FN2), \ |
| 979 | PINMUX_DATA(PORT244_SCIFB_CTS__MARK, PORT244_FN3, MSEL4CR_MSEL22_1), \ |
| 980 | PINMUX_DATA(MSIOF2R_RXD_MARK, PORT244_FN7, MSEL4CR_MSEL11_1), |
| 981 | PINMUX_DATA(PORT245_SCIFA5_RTS__MARK, PORT245_FN1, MSEL4CR_MSEL21_0, |
| 982 | MSEL4CR_MSEL20_0), \ |
| 983 | PINMUX_DATA(MFG2_IN2_MARK, PORT245_FN2), \ |
| 984 | PINMUX_DATA(PORT245_SCIFB_RTS__MARK, PORT245_FN3, MSEL4CR_MSEL22_1), \ |
| 985 | PINMUX_DATA(MSIOF2R_TXD_MARK, PORT245_FN7, MSEL4CR_MSEL11_1), |
| 986 | PINMUX_DATA(PORT246_SCIFA5_RXD_MARK, PORT246_FN1, MSEL4CR_MSEL21_0, |
| 987 | MSEL4CR_MSEL20_0), \ |
| 988 | PINMUX_DATA(MFG1_OUT1_MARK, PORT246_FN2), \ |
| 989 | PINMUX_DATA(PORT246_SCIFB_RXD_MARK, PORT246_FN3, MSEL4CR_MSEL22_1), \ |
| 990 | PINMUX_DATA(TPU1TO0_MARK, PORT246_FN4), |
| 991 | PINMUX_DATA(PORT247_SCIFA5_TXD_MARK, PORT247_FN1, MSEL4CR_MSEL21_0, |
| 992 | MSEL4CR_MSEL20_0), \ |
| 993 | PINMUX_DATA(MFG3_OUT2_MARK, PORT247_FN2), \ |
| 994 | PINMUX_DATA(PORT247_SCIFB_TXD_MARK, PORT247_FN3, MSEL4CR_MSEL22_1), \ |
| 995 | PINMUX_DATA(TPU3TO1_MARK, PORT247_FN4), |
| 996 | PINMUX_DATA(PORT248_SCIFA5_SCK_MARK, PORT248_FN1, MSEL4CR_MSEL21_0, |
| 997 | MSEL4CR_MSEL20_0), \ |
| 998 | PINMUX_DATA(MFG2_OUT1_MARK, PORT248_FN2), \ |
| 999 | PINMUX_DATA(PORT248_SCIFB_SCK_MARK, PORT248_FN3, MSEL4CR_MSEL22_1), \ |
| 1000 | PINMUX_DATA(TPU2TO0_MARK, PORT248_FN4), \ |
| 1001 | PINMUX_DATA(PORT248_I2C_SCL3_MARK, PORT248_FN5, MSEL2CR_MSEL19_0, |
| 1002 | MSEL2CR_MSEL18_0), \ |
| 1003 | PINMUX_DATA(MSIOF2R_TSCK_MARK, PORT248_FN7, MSEL4CR_MSEL11_1), |
| 1004 | PINMUX_DATA(PORT249_IROUT_MARK, PORT249_FN1), \ |
| 1005 | PINMUX_DATA(MFG4_IN1_MARK, PORT249_FN2), \ |
| 1006 | PINMUX_DATA(PORT249_I2C_SDA3_MARK, PORT249_FN5, MSEL2CR_MSEL19_0, |
| 1007 | MSEL2CR_MSEL18_0), \ |
| 1008 | PINMUX_DATA(MSIOF2R_TSYNC_MARK, PORT249_FN7, MSEL4CR_MSEL11_1), |
| 1009 | PINMUX_DATA(SDHICLK0_MARK, PORT250_FN1), |
| 1010 | PINMUX_DATA(SDHICD0_MARK, PORT251_FN1), |
| 1011 | PINMUX_DATA(SDHID0_0_MARK, PORT252_FN1), |
| 1012 | PINMUX_DATA(SDHID0_1_MARK, PORT253_FN1), |
| 1013 | PINMUX_DATA(SDHID0_2_MARK, PORT254_FN1), |
| 1014 | PINMUX_DATA(SDHID0_3_MARK, PORT255_FN1), |
| 1015 | PINMUX_DATA(SDHICMD0_MARK, PORT256_FN1), |
| 1016 | PINMUX_DATA(SDHIWP0_MARK, PORT257_FN1), |
| 1017 | PINMUX_DATA(SDHICLK1_MARK, PORT258_FN1), |
| 1018 | PINMUX_DATA(SDHID1_0_MARK, PORT259_FN1), \ |
| 1019 | PINMUX_DATA(TS_SPSYNC2_MARK, PORT259_FN3), |
| 1020 | PINMUX_DATA(SDHID1_1_MARK, PORT260_FN1), \ |
| 1021 | PINMUX_DATA(TS_SDAT2_MARK, PORT260_FN3), |
| 1022 | PINMUX_DATA(SDHID1_2_MARK, PORT261_FN1), \ |
| 1023 | PINMUX_DATA(TS_SDEN2_MARK, PORT261_FN3), |
| 1024 | PINMUX_DATA(SDHID1_3_MARK, PORT262_FN1), \ |
| 1025 | PINMUX_DATA(TS_SCK2_MARK, PORT262_FN3), |
| 1026 | PINMUX_DATA(SDHICMD1_MARK, PORT263_FN1), |
| 1027 | PINMUX_DATA(SDHICLK2_MARK, PORT264_FN1), |
| 1028 | PINMUX_DATA(SDHID2_0_MARK, PORT265_FN1), \ |
| 1029 | PINMUX_DATA(TS_SPSYNC4_MARK, PORT265_FN3), |
| 1030 | PINMUX_DATA(SDHID2_1_MARK, PORT266_FN1), \ |
| 1031 | PINMUX_DATA(TS_SDAT4_MARK, PORT266_FN3), |
| 1032 | PINMUX_DATA(SDHID2_2_MARK, PORT267_FN1), \ |
| 1033 | PINMUX_DATA(TS_SDEN4_MARK, PORT267_FN3), |
| 1034 | PINMUX_DATA(SDHID2_3_MARK, PORT268_FN1), \ |
| 1035 | PINMUX_DATA(TS_SCK4_MARK, PORT268_FN3), |
| 1036 | PINMUX_DATA(SDHICMD2_MARK, PORT269_FN1), |
| 1037 | PINMUX_DATA(MMCCLK0_MARK, PORT270_FN1, MSEL4CR_MSEL15_0), |
| 1038 | PINMUX_DATA(MMCD0_0_MARK, PORT271_FN1, MSEL4CR_MSEL15_0), |
| 1039 | PINMUX_DATA(MMCD0_1_MARK, PORT272_FN1, MSEL4CR_MSEL15_0), |
| 1040 | PINMUX_DATA(MMCD0_2_MARK, PORT273_FN1, MSEL4CR_MSEL15_0), |
| 1041 | PINMUX_DATA(MMCD0_3_MARK, PORT274_FN1, MSEL4CR_MSEL15_0), |
| 1042 | PINMUX_DATA(MMCD0_4_MARK, PORT275_FN1, MSEL4CR_MSEL15_0), |
| 1043 | PINMUX_DATA(TS_SPSYNC5_MARK, PORT275_FN3), |
| 1044 | PINMUX_DATA(MMCD0_5_MARK, PORT276_FN1, MSEL4CR_MSEL15_0), |
| 1045 | PINMUX_DATA(TS_SDAT5_MARK, PORT276_FN3), |
| 1046 | PINMUX_DATA(MMCD0_6_MARK, PORT277_FN1, MSEL4CR_MSEL15_0), |
| 1047 | PINMUX_DATA(TS_SDEN5_MARK, PORT277_FN3), |
| 1048 | PINMUX_DATA(MMCD0_7_MARK, PORT278_FN1, MSEL4CR_MSEL15_0), |
| 1049 | PINMUX_DATA(TS_SCK5_MARK, PORT278_FN3), |
| 1050 | PINMUX_DATA(MMCCMD0_MARK, PORT279_FN1, MSEL4CR_MSEL15_0), |
| 1051 | PINMUX_DATA(RESETOUTS__MARK, PORT281_FN1), \ |
| 1052 | PINMUX_DATA(EXTAL2OUT_MARK, PORT281_FN2), |
| 1053 | PINMUX_DATA(MCP_WAIT__MCP_FRB_MARK, PORT288_FN1), |
| 1054 | PINMUX_DATA(MCP_CKO_MARK, PORT289_FN1), \ |
| 1055 | PINMUX_DATA(MMCCLK1_MARK, PORT289_FN2, MSEL4CR_MSEL15_1), |
| 1056 | PINMUX_DATA(MCP_D15_MCP_NAF15_MARK, PORT290_FN1), |
| 1057 | PINMUX_DATA(MCP_D14_MCP_NAF14_MARK, PORT291_FN1), |
| 1058 | PINMUX_DATA(MCP_D13_MCP_NAF13_MARK, PORT292_FN1), |
| 1059 | PINMUX_DATA(MCP_D12_MCP_NAF12_MARK, PORT293_FN1), |
| 1060 | PINMUX_DATA(MCP_D11_MCP_NAF11_MARK, PORT294_FN1), |
| 1061 | PINMUX_DATA(MCP_D10_MCP_NAF10_MARK, PORT295_FN1), |
| 1062 | PINMUX_DATA(MCP_D9_MCP_NAF9_MARK, PORT296_FN1), |
| 1063 | PINMUX_DATA(MCP_D8_MCP_NAF8_MARK, PORT297_FN1), \ |
| 1064 | PINMUX_DATA(MMCCMD1_MARK, PORT297_FN2, MSEL4CR_MSEL15_1), |
| 1065 | PINMUX_DATA(MCP_D7_MCP_NAF7_MARK, PORT298_FN1), \ |
| 1066 | PINMUX_DATA(MMCD1_7_MARK, PORT298_FN2, MSEL4CR_MSEL15_1), |
| 1067 | |
| 1068 | PINMUX_DATA(MCP_D6_MCP_NAF6_MARK, PORT299_FN1), \ |
| 1069 | PINMUX_DATA(MMCD1_6_MARK, PORT299_FN2, MSEL4CR_MSEL15_1), |
| 1070 | PINMUX_DATA(MCP_D5_MCP_NAF5_MARK, PORT300_FN1), \ |
| 1071 | PINMUX_DATA(MMCD1_5_MARK, PORT300_FN2, MSEL4CR_MSEL15_1), |
| 1072 | PINMUX_DATA(MCP_D4_MCP_NAF4_MARK, PORT301_FN1), \ |
| 1073 | PINMUX_DATA(MMCD1_4_MARK, PORT301_FN2, MSEL4CR_MSEL15_1), |
| 1074 | PINMUX_DATA(MCP_D3_MCP_NAF3_MARK, PORT302_FN1), \ |
| 1075 | PINMUX_DATA(MMCD1_3_MARK, PORT302_FN2, MSEL4CR_MSEL15_1), |
| 1076 | PINMUX_DATA(MCP_D2_MCP_NAF2_MARK, PORT303_FN1), \ |
| 1077 | PINMUX_DATA(MMCD1_2_MARK, PORT303_FN2, MSEL4CR_MSEL15_1), |
| 1078 | PINMUX_DATA(MCP_D1_MCP_NAF1_MARK, PORT304_FN1), \ |
| 1079 | PINMUX_DATA(MMCD1_1_MARK, PORT304_FN2, MSEL4CR_MSEL15_1), |
| 1080 | PINMUX_DATA(MCP_D0_MCP_NAF0_MARK, PORT305_FN1), \ |
| 1081 | PINMUX_DATA(MMCD1_0_MARK, PORT305_FN2, MSEL4CR_MSEL15_1), |
| 1082 | PINMUX_DATA(MCP_NBRSTOUT__MARK, PORT306_FN1), |
| 1083 | PINMUX_DATA(MCP_WE0__MCP_FWE_MARK, PORT309_FN1), \ |
| 1084 | PINMUX_DATA(MCP_RDWR_MCP_FWE_MARK, PORT309_FN2), |
| 1085 | |
| 1086 | /* MSEL2 special cases */ |
| 1087 | PINMUX_DATA(TSIF2_TS_XX1_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_0, |
| 1088 | MSEL2CR_MSEL12_0), |
| 1089 | PINMUX_DATA(TSIF2_TS_XX2_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_0, |
| 1090 | MSEL2CR_MSEL12_1), |
| 1091 | PINMUX_DATA(TSIF2_TS_XX3_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_1, |
| 1092 | MSEL2CR_MSEL12_0), |
| 1093 | PINMUX_DATA(TSIF2_TS_XX4_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_1, |
| 1094 | MSEL2CR_MSEL12_1), |
| 1095 | PINMUX_DATA(TSIF2_TS_XX5_MARK, MSEL2CR_MSEL14_1, MSEL2CR_MSEL13_0, |
| 1096 | MSEL2CR_MSEL12_0), |
| 1097 | PINMUX_DATA(TSIF1_TS_XX1_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_0, |
| 1098 | MSEL2CR_MSEL9_0), |
| 1099 | PINMUX_DATA(TSIF1_TS_XX2_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_0, |
| 1100 | MSEL2CR_MSEL9_1), |
| 1101 | PINMUX_DATA(TSIF1_TS_XX3_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_1, |
| 1102 | MSEL2CR_MSEL9_0), |
| 1103 | PINMUX_DATA(TSIF1_TS_XX4_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_1, |
| 1104 | MSEL2CR_MSEL9_1), |
| 1105 | PINMUX_DATA(TSIF1_TS_XX5_MARK, MSEL2CR_MSEL11_1, MSEL2CR_MSEL10_0, |
| 1106 | MSEL2CR_MSEL9_0), |
| 1107 | PINMUX_DATA(TSIF0_TS_XX1_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_0, |
| 1108 | MSEL2CR_MSEL6_0), |
| 1109 | PINMUX_DATA(TSIF0_TS_XX2_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_0, |
| 1110 | MSEL2CR_MSEL6_1), |
| 1111 | PINMUX_DATA(TSIF0_TS_XX3_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_1, |
| 1112 | MSEL2CR_MSEL6_0), |
| 1113 | PINMUX_DATA(TSIF0_TS_XX4_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_1, |
| 1114 | MSEL2CR_MSEL6_1), |
| 1115 | PINMUX_DATA(TSIF0_TS_XX5_MARK, MSEL2CR_MSEL8_1, MSEL2CR_MSEL7_0, |
| 1116 | MSEL2CR_MSEL6_0), |
| 1117 | PINMUX_DATA(MST1_TS_XX1_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_0, |
| 1118 | MSEL2CR_MSEL3_0), |
| 1119 | PINMUX_DATA(MST1_TS_XX2_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_0, |
| 1120 | MSEL2CR_MSEL3_1), |
| 1121 | PINMUX_DATA(MST1_TS_XX3_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_1, |
| 1122 | MSEL2CR_MSEL3_0), |
| 1123 | PINMUX_DATA(MST1_TS_XX4_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_1, |
| 1124 | MSEL2CR_MSEL3_1), |
| 1125 | PINMUX_DATA(MST1_TS_XX5_MARK, MSEL2CR_MSEL5_1, MSEL2CR_MSEL4_0, |
| 1126 | MSEL2CR_MSEL3_0), |
| 1127 | PINMUX_DATA(MST0_TS_XX1_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_0, |
| 1128 | MSEL2CR_MSEL0_0), |
| 1129 | PINMUX_DATA(MST0_TS_XX2_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_0, |
| 1130 | MSEL2CR_MSEL0_1), |
| 1131 | PINMUX_DATA(MST0_TS_XX3_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_1, |
| 1132 | MSEL2CR_MSEL0_0), |
| 1133 | PINMUX_DATA(MST0_TS_XX4_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_1, |
| 1134 | MSEL2CR_MSEL0_1), |
| 1135 | PINMUX_DATA(MST0_TS_XX5_MARK, MSEL2CR_MSEL2_1, MSEL2CR_MSEL1_0, |
| 1136 | MSEL2CR_MSEL0_0), |
| 1137 | |
| 1138 | /* MSEL3 special cases */ |
| 1139 | PINMUX_DATA(SDHI0_VCCQ_MC0_ON_MARK, MSEL3CR_MSEL28_1), |
| 1140 | PINMUX_DATA(SDHI0_VCCQ_MC0_OFF_MARK, MSEL3CR_MSEL28_0), |
| 1141 | PINMUX_DATA(DEBUG_MON_VIO_MARK, MSEL3CR_MSEL15_0), |
| 1142 | PINMUX_DATA(DEBUG_MON_LCDD_MARK, MSEL3CR_MSEL15_1), |
| 1143 | PINMUX_DATA(LCDC_LCDC0_MARK, MSEL3CR_MSEL6_0), |
| 1144 | PINMUX_DATA(LCDC_LCDC1_MARK, MSEL3CR_MSEL6_1), |
| 1145 | |
| 1146 | /* MSEL4 special cases */ |
| 1147 | PINMUX_DATA(IRQ9_MEM_INT_MARK, MSEL4CR_MSEL29_0), |
| 1148 | PINMUX_DATA(IRQ9_MCP_INT_MARK, MSEL4CR_MSEL29_1), |
| 1149 | PINMUX_DATA(A11_MARK, MSEL4CR_MSEL13_0, MSEL4CR_MSEL12_0), |
| 1150 | PINMUX_DATA(KEYOUT8_MARK, MSEL4CR_MSEL13_0, MSEL4CR_MSEL12_1), |
| 1151 | PINMUX_DATA(TPU4TO3_MARK, MSEL4CR_MSEL13_1, MSEL4CR_MSEL12_0), |
| 1152 | PINMUX_DATA(RESETA_N_PU_ON_MARK, MSEL4CR_MSEL4_0), |
| 1153 | PINMUX_DATA(RESETA_N_PU_OFF_MARK, MSEL4CR_MSEL4_1), |
| 1154 | PINMUX_DATA(EDBGREQ_PD_MARK, MSEL4CR_MSEL1_0), |
| 1155 | PINMUX_DATA(EDBGREQ_PU_MARK, MSEL4CR_MSEL1_1), |
| 1156 | }; |
| 1157 | |
| 1158 | #define __I (SH_PFC_PIN_CFG_INPUT) |
| 1159 | #define __O (SH_PFC_PIN_CFG_OUTPUT) |
| 1160 | #define __IO (SH_PFC_PIN_CFG_INPUT | SH_PFC_PIN_CFG_OUTPUT) |
| 1161 | #define __PD (SH_PFC_PIN_CFG_PULL_DOWN) |
| 1162 | #define __PU (SH_PFC_PIN_CFG_PULL_UP) |
| 1163 | #define __PUD (SH_PFC_PIN_CFG_PULL_DOWN | SH_PFC_PIN_CFG_PULL_UP) |
| 1164 | |
| 1165 | #define SH73A0_PIN_I_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PD) |
| 1166 | #define SH73A0_PIN_I_PU(pin) SH_PFC_PIN_CFG(pin, __I | __PU) |
| 1167 | #define SH73A0_PIN_I_PU_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PUD) |
| 1168 | #define SH73A0_PIN_IO(pin) SH_PFC_PIN_CFG(pin, __IO) |
| 1169 | #define SH73A0_PIN_IO_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PD) |
| 1170 | #define SH73A0_PIN_IO_PU(pin) SH_PFC_PIN_CFG(pin, __IO | __PU) |
| 1171 | #define SH73A0_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD) |
| 1172 | #define SH73A0_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) |
| 1173 | |
| 1174 | /* Pin numbers for pins without a corresponding GPIO port number are computed |
| 1175 | * from the row and column numbers with a 1000 offset to avoid collisions with |
| 1176 | * GPIO port numbers. |
| 1177 | */ |
| 1178 | #define PIN_NUMBER(row, col) (1000+((row)-1)*34+(col)-1) |
| 1179 | |
| 1180 | static const struct sh_pfc_pin pinmux_pins[] = { |
| 1181 | /* Table 25-1 (I/O and Pull U/D) */ |
| 1182 | SH73A0_PIN_I_PD(0), |
| 1183 | SH73A0_PIN_I_PU(1), |
| 1184 | SH73A0_PIN_I_PU(2), |
| 1185 | SH73A0_PIN_I_PU(3), |
| 1186 | SH73A0_PIN_I_PU(4), |
| 1187 | SH73A0_PIN_I_PU(5), |
| 1188 | SH73A0_PIN_I_PU(6), |
| 1189 | SH73A0_PIN_I_PU(7), |
| 1190 | SH73A0_PIN_I_PU(8), |
| 1191 | SH73A0_PIN_I_PD(9), |
| 1192 | SH73A0_PIN_I_PD(10), |
| 1193 | SH73A0_PIN_I_PU_PD(11), |
| 1194 | SH73A0_PIN_IO_PU_PD(12), |
| 1195 | SH73A0_PIN_IO_PU_PD(13), |
| 1196 | SH73A0_PIN_IO_PU_PD(14), |
| 1197 | SH73A0_PIN_IO_PU_PD(15), |
| 1198 | SH73A0_PIN_IO_PD(16), |
| 1199 | SH73A0_PIN_IO_PD(17), |
| 1200 | SH73A0_PIN_IO_PU(18), |
| 1201 | SH73A0_PIN_IO_PU(19), |
| 1202 | SH73A0_PIN_O(20), |
| 1203 | SH73A0_PIN_O(21), |
| 1204 | SH73A0_PIN_O(22), |
| 1205 | SH73A0_PIN_O(23), |
| 1206 | SH73A0_PIN_O(24), |
| 1207 | SH73A0_PIN_I_PD(25), |
| 1208 | SH73A0_PIN_I_PD(26), |
| 1209 | SH73A0_PIN_IO_PU(27), |
| 1210 | SH73A0_PIN_IO_PU(28), |
| 1211 | SH73A0_PIN_IO_PD(29), |
| 1212 | SH73A0_PIN_IO_PD(30), |
| 1213 | SH73A0_PIN_IO_PU(31), |
| 1214 | SH73A0_PIN_IO_PD(32), |
| 1215 | SH73A0_PIN_I_PU_PD(33), |
| 1216 | SH73A0_PIN_IO_PD(34), |
| 1217 | SH73A0_PIN_I_PU_PD(35), |
| 1218 | SH73A0_PIN_IO_PD(36), |
| 1219 | SH73A0_PIN_IO(37), |
| 1220 | SH73A0_PIN_O(38), |
| 1221 | SH73A0_PIN_I_PU(39), |
| 1222 | SH73A0_PIN_I_PU_PD(40), |
| 1223 | SH73A0_PIN_O(41), |
| 1224 | SH73A0_PIN_IO_PD(42), |
| 1225 | SH73A0_PIN_IO_PU_PD(43), |
| 1226 | SH73A0_PIN_IO_PU_PD(44), |
| 1227 | SH73A0_PIN_IO_PD(45), |
| 1228 | SH73A0_PIN_IO_PD(46), |
| 1229 | SH73A0_PIN_IO_PD(47), |
| 1230 | SH73A0_PIN_I_PD(48), |
| 1231 | SH73A0_PIN_IO_PU_PD(49), |
| 1232 | SH73A0_PIN_IO_PD(50), |
| 1233 | SH73A0_PIN_IO_PD(51), |
| 1234 | SH73A0_PIN_O(52), |
| 1235 | SH73A0_PIN_IO_PU_PD(53), |
| 1236 | SH73A0_PIN_IO_PU_PD(54), |
| 1237 | SH73A0_PIN_IO_PD(55), |
| 1238 | SH73A0_PIN_I_PU_PD(56), |
| 1239 | SH73A0_PIN_IO(57), |
| 1240 | SH73A0_PIN_IO(58), |
| 1241 | SH73A0_PIN_IO(59), |
| 1242 | SH73A0_PIN_IO(60), |
| 1243 | SH73A0_PIN_IO(61), |
| 1244 | SH73A0_PIN_IO_PD(62), |
| 1245 | SH73A0_PIN_IO_PD(63), |
| 1246 | SH73A0_PIN_IO_PU_PD(64), |
| 1247 | SH73A0_PIN_IO_PD(65), |
| 1248 | SH73A0_PIN_IO_PU_PD(66), |
| 1249 | SH73A0_PIN_IO_PU_PD(67), |
| 1250 | SH73A0_PIN_IO_PU_PD(68), |
| 1251 | SH73A0_PIN_IO_PU_PD(69), |
| 1252 | SH73A0_PIN_IO_PU_PD(70), |
| 1253 | SH73A0_PIN_IO_PU_PD(71), |
| 1254 | SH73A0_PIN_IO_PU_PD(72), |
| 1255 | SH73A0_PIN_I_PU_PD(73), |
| 1256 | SH73A0_PIN_IO_PU(74), |
| 1257 | SH73A0_PIN_IO_PU(75), |
| 1258 | SH73A0_PIN_IO_PU(76), |
| 1259 | SH73A0_PIN_IO_PU(77), |
| 1260 | SH73A0_PIN_IO_PU(78), |
| 1261 | SH73A0_PIN_IO_PU(79), |
| 1262 | SH73A0_PIN_IO_PU(80), |
| 1263 | SH73A0_PIN_IO_PU(81), |
| 1264 | SH73A0_PIN_IO_PU(82), |
| 1265 | SH73A0_PIN_IO_PU(83), |
| 1266 | SH73A0_PIN_IO_PU(84), |
| 1267 | SH73A0_PIN_IO_PU(85), |
| 1268 | SH73A0_PIN_IO_PU(86), |
| 1269 | SH73A0_PIN_IO_PU(87), |
| 1270 | SH73A0_PIN_IO_PU(88), |
| 1271 | SH73A0_PIN_IO_PU(89), |
| 1272 | SH73A0_PIN_O(90), |
| 1273 | SH73A0_PIN_IO_PU(91), |
| 1274 | SH73A0_PIN_O(92), |
| 1275 | SH73A0_PIN_IO_PU(93), |
| 1276 | SH73A0_PIN_O(94), |
| 1277 | SH73A0_PIN_I_PU_PD(95), |
| 1278 | SH73A0_PIN_IO(96), |
| 1279 | SH73A0_PIN_IO(97), |
| 1280 | SH73A0_PIN_IO(98), |
| 1281 | SH73A0_PIN_I_PU(99), |
| 1282 | SH73A0_PIN_O(100), |
| 1283 | SH73A0_PIN_O(101), |
| 1284 | SH73A0_PIN_I_PU(102), |
| 1285 | SH73A0_PIN_IO_PD(103), |
| 1286 | SH73A0_PIN_I_PU_PD(104), |
| 1287 | SH73A0_PIN_I_PD(105), |
| 1288 | SH73A0_PIN_I_PD(106), |
| 1289 | SH73A0_PIN_I_PU_PD(107), |
| 1290 | SH73A0_PIN_I_PU_PD(108), |
| 1291 | SH73A0_PIN_IO_PD(109), |
| 1292 | SH73A0_PIN_IO_PD(110), |
| 1293 | SH73A0_PIN_IO_PU_PD(111), |
| 1294 | SH73A0_PIN_IO_PU_PD(112), |
| 1295 | SH73A0_PIN_IO_PU_PD(113), |
| 1296 | SH73A0_PIN_IO_PD(114), |
| 1297 | SH73A0_PIN_IO_PU(115), |
| 1298 | SH73A0_PIN_IO_PU(116), |
| 1299 | SH73A0_PIN_IO_PU_PD(117), |
| 1300 | SH73A0_PIN_IO_PU_PD(118), |
| 1301 | SH73A0_PIN_IO_PD(128), |
| 1302 | SH73A0_PIN_IO_PD(129), |
| 1303 | SH73A0_PIN_IO_PU_PD(130), |
| 1304 | SH73A0_PIN_IO_PD(131), |
| 1305 | SH73A0_PIN_IO_PD(132), |
| 1306 | SH73A0_PIN_IO_PD(133), |
| 1307 | SH73A0_PIN_IO_PU_PD(134), |
| 1308 | SH73A0_PIN_IO_PU_PD(135), |
| 1309 | SH73A0_PIN_IO_PU_PD(136), |
| 1310 | SH73A0_PIN_IO_PU_PD(137), |
| 1311 | SH73A0_PIN_IO_PD(138), |
| 1312 | SH73A0_PIN_IO_PD(139), |
| 1313 | SH73A0_PIN_IO_PD(140), |
| 1314 | SH73A0_PIN_IO_PD(141), |
| 1315 | SH73A0_PIN_IO_PD(142), |
| 1316 | SH73A0_PIN_IO_PD(143), |
| 1317 | SH73A0_PIN_IO_PU_PD(144), |
| 1318 | SH73A0_PIN_IO_PD(145), |
| 1319 | SH73A0_PIN_IO_PU_PD(146), |
| 1320 | SH73A0_PIN_IO_PU_PD(147), |
| 1321 | SH73A0_PIN_IO_PU_PD(148), |
| 1322 | SH73A0_PIN_IO_PU_PD(149), |
| 1323 | SH73A0_PIN_I_PU_PD(150), |
| 1324 | SH73A0_PIN_IO_PU_PD(151), |
| 1325 | SH73A0_PIN_IO_PU_PD(152), |
| 1326 | SH73A0_PIN_IO_PD(153), |
| 1327 | SH73A0_PIN_IO_PD(154), |
| 1328 | SH73A0_PIN_I_PU_PD(155), |
| 1329 | SH73A0_PIN_IO_PU_PD(156), |
| 1330 | SH73A0_PIN_I_PD(157), |
| 1331 | SH73A0_PIN_IO_PD(158), |
| 1332 | SH73A0_PIN_IO_PU_PD(159), |
| 1333 | SH73A0_PIN_IO_PU_PD(160), |
| 1334 | SH73A0_PIN_I_PU_PD(161), |
| 1335 | SH73A0_PIN_I_PU_PD(162), |
| 1336 | SH73A0_PIN_IO_PU_PD(163), |
| 1337 | SH73A0_PIN_I_PU_PD(164), |
| 1338 | SH73A0_PIN_IO_PD(192), |
| 1339 | SH73A0_PIN_IO_PU_PD(193), |
| 1340 | SH73A0_PIN_IO_PD(194), |
| 1341 | SH73A0_PIN_IO_PU_PD(195), |
| 1342 | SH73A0_PIN_IO_PD(196), |
| 1343 | SH73A0_PIN_IO_PD(197), |
| 1344 | SH73A0_PIN_IO_PD(198), |
| 1345 | SH73A0_PIN_IO_PD(199), |
| 1346 | SH73A0_PIN_IO_PU_PD(200), |
| 1347 | SH73A0_PIN_IO_PU_PD(201), |
| 1348 | SH73A0_PIN_IO_PU_PD(202), |
| 1349 | SH73A0_PIN_IO_PU_PD(203), |
| 1350 | SH73A0_PIN_IO_PU_PD(204), |
| 1351 | SH73A0_PIN_IO_PU_PD(205), |
| 1352 | SH73A0_PIN_IO_PU_PD(206), |
| 1353 | SH73A0_PIN_IO_PD(207), |
| 1354 | SH73A0_PIN_IO_PD(208), |
| 1355 | SH73A0_PIN_IO_PD(209), |
| 1356 | SH73A0_PIN_IO_PD(210), |
| 1357 | SH73A0_PIN_IO_PD(211), |
| 1358 | SH73A0_PIN_IO_PD(212), |
| 1359 | SH73A0_PIN_IO_PD(213), |
| 1360 | SH73A0_PIN_IO_PU_PD(214), |
| 1361 | SH73A0_PIN_IO_PU_PD(215), |
| 1362 | SH73A0_PIN_IO_PD(216), |
| 1363 | SH73A0_PIN_IO_PD(217), |
| 1364 | SH73A0_PIN_O(218), |
| 1365 | SH73A0_PIN_IO_PD(219), |
| 1366 | SH73A0_PIN_IO_PD(220), |
| 1367 | SH73A0_PIN_IO_PU_PD(221), |
| 1368 | SH73A0_PIN_IO_PU_PD(222), |
| 1369 | SH73A0_PIN_I_PU_PD(223), |
| 1370 | SH73A0_PIN_I_PU_PD(224), |
| 1371 | SH73A0_PIN_IO_PU_PD(225), |
| 1372 | SH73A0_PIN_O(226), |
| 1373 | SH73A0_PIN_IO_PU_PD(227), |
| 1374 | SH73A0_PIN_I_PU_PD(228), |
| 1375 | SH73A0_PIN_I_PD(229), |
| 1376 | SH73A0_PIN_IO(230), |
| 1377 | SH73A0_PIN_IO_PU_PD(231), |
| 1378 | SH73A0_PIN_IO_PU_PD(232), |
| 1379 | SH73A0_PIN_I_PU_PD(233), |
| 1380 | SH73A0_PIN_IO_PU_PD(234), |
| 1381 | SH73A0_PIN_IO_PU_PD(235), |
| 1382 | SH73A0_PIN_IO_PU_PD(236), |
| 1383 | SH73A0_PIN_IO_PD(237), |
| 1384 | SH73A0_PIN_IO_PU_PD(238), |
| 1385 | SH73A0_PIN_IO_PU_PD(239), |
| 1386 | SH73A0_PIN_IO_PU_PD(240), |
| 1387 | SH73A0_PIN_O(241), |
| 1388 | SH73A0_PIN_I_PD(242), |
| 1389 | SH73A0_PIN_IO_PU_PD(243), |
| 1390 | SH73A0_PIN_IO_PU_PD(244), |
| 1391 | SH73A0_PIN_IO_PU_PD(245), |
| 1392 | SH73A0_PIN_IO_PU_PD(246), |
| 1393 | SH73A0_PIN_IO_PU_PD(247), |
| 1394 | SH73A0_PIN_IO_PU_PD(248), |
| 1395 | SH73A0_PIN_IO_PU_PD(249), |
| 1396 | SH73A0_PIN_IO_PU_PD(250), |
| 1397 | SH73A0_PIN_IO_PU_PD(251), |
| 1398 | SH73A0_PIN_IO_PU_PD(252), |
| 1399 | SH73A0_PIN_IO_PU_PD(253), |
| 1400 | SH73A0_PIN_IO_PU_PD(254), |
| 1401 | SH73A0_PIN_IO_PU_PD(255), |
| 1402 | SH73A0_PIN_IO_PU_PD(256), |
| 1403 | SH73A0_PIN_IO_PU_PD(257), |
| 1404 | SH73A0_PIN_IO_PU_PD(258), |
| 1405 | SH73A0_PIN_IO_PU_PD(259), |
| 1406 | SH73A0_PIN_IO_PU_PD(260), |
| 1407 | SH73A0_PIN_IO_PU_PD(261), |
| 1408 | SH73A0_PIN_IO_PU_PD(262), |
| 1409 | SH73A0_PIN_IO_PU_PD(263), |
| 1410 | SH73A0_PIN_IO_PU_PD(264), |
| 1411 | SH73A0_PIN_IO_PU_PD(265), |
| 1412 | SH73A0_PIN_IO_PU_PD(266), |
| 1413 | SH73A0_PIN_IO_PU_PD(267), |
| 1414 | SH73A0_PIN_IO_PU_PD(268), |
| 1415 | SH73A0_PIN_IO_PU_PD(269), |
| 1416 | SH73A0_PIN_IO_PU_PD(270), |
| 1417 | SH73A0_PIN_IO_PU_PD(271), |
| 1418 | SH73A0_PIN_IO_PU_PD(272), |
| 1419 | SH73A0_PIN_IO_PU_PD(273), |
| 1420 | SH73A0_PIN_IO_PU_PD(274), |
| 1421 | SH73A0_PIN_IO_PU_PD(275), |
| 1422 | SH73A0_PIN_IO_PU_PD(276), |
| 1423 | SH73A0_PIN_IO_PU_PD(277), |
| 1424 | SH73A0_PIN_IO_PU_PD(278), |
| 1425 | SH73A0_PIN_IO_PU_PD(279), |
| 1426 | SH73A0_PIN_IO_PU_PD(280), |
| 1427 | SH73A0_PIN_O(281), |
| 1428 | SH73A0_PIN_O(282), |
| 1429 | SH73A0_PIN_I_PU(288), |
| 1430 | SH73A0_PIN_IO_PU_PD(289), |
| 1431 | SH73A0_PIN_IO_PU_PD(290), |
| 1432 | SH73A0_PIN_IO_PU_PD(291), |
| 1433 | SH73A0_PIN_IO_PU_PD(292), |
| 1434 | SH73A0_PIN_IO_PU_PD(293), |
| 1435 | SH73A0_PIN_IO_PU_PD(294), |
| 1436 | SH73A0_PIN_IO_PU_PD(295), |
| 1437 | SH73A0_PIN_IO_PU_PD(296), |
| 1438 | SH73A0_PIN_IO_PU_PD(297), |
| 1439 | SH73A0_PIN_IO_PU_PD(298), |
| 1440 | SH73A0_PIN_IO_PU_PD(299), |
| 1441 | SH73A0_PIN_IO_PU_PD(300), |
| 1442 | SH73A0_PIN_IO_PU_PD(301), |
| 1443 | SH73A0_PIN_IO_PU_PD(302), |
| 1444 | SH73A0_PIN_IO_PU_PD(303), |
| 1445 | SH73A0_PIN_IO_PU_PD(304), |
| 1446 | SH73A0_PIN_IO_PU_PD(305), |
| 1447 | SH73A0_PIN_O(306), |
| 1448 | SH73A0_PIN_O(307), |
| 1449 | SH73A0_PIN_I_PU(308), |
| 1450 | SH73A0_PIN_O(309), |
| 1451 | |
| 1452 | /* Pins not associated with a GPIO port */ |
| 1453 | SH_PFC_PIN_NAMED(6, 26, F26), |
| 1454 | }; |
| 1455 | |
| 1456 | /* - BSC -------------------------------------------------------------------- */ |
| 1457 | static const unsigned int bsc_data_0_7_pins[] = { |
| 1458 | /* D[0:7] */ |
| 1459 | 74, 75, 76, 77, 78, 79, 80, 81, |
| 1460 | }; |
| 1461 | static const unsigned int bsc_data_0_7_mux[] = { |
| 1462 | D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK, |
| 1463 | D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK, |
| 1464 | }; |
| 1465 | static const unsigned int bsc_data_8_15_pins[] = { |
| 1466 | /* D[8:15] */ |
| 1467 | 82, 83, 84, 85, 86, 87, 88, 89, |
| 1468 | }; |
| 1469 | static const unsigned int bsc_data_8_15_mux[] = { |
| 1470 | D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK, |
| 1471 | D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK, |
| 1472 | }; |
| 1473 | static const unsigned int bsc_cs4_pins[] = { |
| 1474 | /* CS */ |
| 1475 | 90, |
| 1476 | }; |
| 1477 | static const unsigned int bsc_cs4_mux[] = { |
| 1478 | CS4__MARK, |
| 1479 | }; |
| 1480 | static const unsigned int bsc_cs5_a_pins[] = { |
| 1481 | /* CS */ |
| 1482 | 91, |
| 1483 | }; |
| 1484 | static const unsigned int bsc_cs5_a_mux[] = { |
| 1485 | CS5A__MARK, |
| 1486 | }; |
| 1487 | static const unsigned int bsc_cs5_b_pins[] = { |
| 1488 | /* CS */ |
| 1489 | 92, |
| 1490 | }; |
| 1491 | static const unsigned int bsc_cs5_b_mux[] = { |
| 1492 | CS5B__MARK, |
| 1493 | }; |
| 1494 | static const unsigned int bsc_cs6_a_pins[] = { |
| 1495 | /* CS */ |
| 1496 | 94, |
| 1497 | }; |
| 1498 | static const unsigned int bsc_cs6_a_mux[] = { |
| 1499 | CS6A__MARK, |
| 1500 | }; |
| 1501 | static const unsigned int bsc_cs6_b_pins[] = { |
| 1502 | /* CS */ |
| 1503 | 93, |
| 1504 | }; |
| 1505 | static const unsigned int bsc_cs6_b_mux[] = { |
| 1506 | CS6B__MARK, |
| 1507 | }; |
| 1508 | static const unsigned int bsc_rd_pins[] = { |
| 1509 | /* RD */ |
| 1510 | 96, |
| 1511 | }; |
| 1512 | static const unsigned int bsc_rd_mux[] = { |
| 1513 | RD__FSC_MARK, |
| 1514 | }; |
| 1515 | static const unsigned int bsc_rdwr_0_pins[] = { |
| 1516 | /* RDWR */ |
| 1517 | 91, |
| 1518 | }; |
| 1519 | static const unsigned int bsc_rdwr_0_mux[] = { |
| 1520 | PORT91_RDWR_MARK, |
| 1521 | }; |
| 1522 | static const unsigned int bsc_rdwr_1_pins[] = { |
| 1523 | /* RDWR */ |
| 1524 | 97, |
| 1525 | }; |
| 1526 | static const unsigned int bsc_rdwr_1_mux[] = { |
| 1527 | RDWR_FWE_MARK, |
| 1528 | }; |
| 1529 | static const unsigned int bsc_rdwr_2_pins[] = { |
| 1530 | /* RDWR */ |
| 1531 | 149, |
| 1532 | }; |
| 1533 | static const unsigned int bsc_rdwr_2_mux[] = { |
| 1534 | PORT149_RDWR_MARK, |
| 1535 | }; |
| 1536 | static const unsigned int bsc_we0_pins[] = { |
| 1537 | /* WE0 */ |
| 1538 | 97, |
| 1539 | }; |
| 1540 | static const unsigned int bsc_we0_mux[] = { |
| 1541 | WE0__FWE_MARK, |
| 1542 | }; |
| 1543 | static const unsigned int bsc_we1_pins[] = { |
| 1544 | /* WE1 */ |
| 1545 | 98, |
| 1546 | }; |
| 1547 | static const unsigned int bsc_we1_mux[] = { |
| 1548 | WE1__MARK, |
| 1549 | }; |
| 1550 | /* - FSIA ------------------------------------------------------------------- */ |
| 1551 | static const unsigned int fsia_mclk_in_pins[] = { |
| 1552 | /* CK */ |
| 1553 | 49, |
| 1554 | }; |
| 1555 | static const unsigned int fsia_mclk_in_mux[] = { |
| 1556 | FSIACK_MARK, |
| 1557 | }; |
| 1558 | static const unsigned int fsia_mclk_out_pins[] = { |
| 1559 | /* OMC */ |
| 1560 | 49, |
| 1561 | }; |
| 1562 | static const unsigned int fsia_mclk_out_mux[] = { |
| 1563 | FSIAOMC_MARK, |
| 1564 | }; |
| 1565 | static const unsigned int fsia_sclk_in_pins[] = { |
| 1566 | /* ILR, IBT */ |
| 1567 | 50, 51, |
| 1568 | }; |
| 1569 | static const unsigned int fsia_sclk_in_mux[] = { |
| 1570 | FSIAILR_MARK, FSIAIBT_MARK, |
| 1571 | }; |
| 1572 | static const unsigned int fsia_sclk_out_pins[] = { |
| 1573 | /* OLR, OBT */ |
| 1574 | 50, 51, |
| 1575 | }; |
| 1576 | static const unsigned int fsia_sclk_out_mux[] = { |
| 1577 | FSIAOLR_MARK, FSIAOBT_MARK, |
| 1578 | }; |
| 1579 | static const unsigned int fsia_data_in_pins[] = { |
| 1580 | /* ISLD */ |
| 1581 | 55, |
| 1582 | }; |
| 1583 | static const unsigned int fsia_data_in_mux[] = { |
| 1584 | FSIAISLD_MARK, |
| 1585 | }; |
| 1586 | static const unsigned int fsia_data_out_pins[] = { |
| 1587 | /* OSLD */ |
| 1588 | 52, |
| 1589 | }; |
| 1590 | static const unsigned int fsia_data_out_mux[] = { |
| 1591 | FSIAOSLD_MARK, |
| 1592 | }; |
| 1593 | static const unsigned int fsia_spdif_pins[] = { |
| 1594 | /* SPDIF */ |
| 1595 | 53, |
| 1596 | }; |
| 1597 | static const unsigned int fsia_spdif_mux[] = { |
| 1598 | FSIASPDIF_MARK, |
| 1599 | }; |
| 1600 | /* - FSIB ------------------------------------------------------------------- */ |
| 1601 | static const unsigned int fsib_mclk_in_pins[] = { |
| 1602 | /* CK */ |
| 1603 | 54, |
| 1604 | }; |
| 1605 | static const unsigned int fsib_mclk_in_mux[] = { |
| 1606 | FSIBCK_MARK, |
| 1607 | }; |
| 1608 | static const unsigned int fsib_mclk_out_pins[] = { |
| 1609 | /* OMC */ |
| 1610 | 54, |
| 1611 | }; |
| 1612 | static const unsigned int fsib_mclk_out_mux[] = { |
| 1613 | FSIBOMC_MARK, |
| 1614 | }; |
| 1615 | static const unsigned int fsib_sclk_in_pins[] = { |
| 1616 | /* ILR, IBT */ |
| 1617 | 37, 36, |
| 1618 | }; |
| 1619 | static const unsigned int fsib_sclk_in_mux[] = { |
| 1620 | FSIBILR_MARK, FSIBIBT_MARK, |
| 1621 | }; |
| 1622 | static const unsigned int fsib_sclk_out_pins[] = { |
| 1623 | /* OLR, OBT */ |
| 1624 | 37, 36, |
| 1625 | }; |
| 1626 | static const unsigned int fsib_sclk_out_mux[] = { |
| 1627 | FSIBOLR_MARK, FSIBOBT_MARK, |
| 1628 | }; |
| 1629 | static const unsigned int fsib_data_in_pins[] = { |
| 1630 | /* ISLD */ |
| 1631 | 39, |
| 1632 | }; |
| 1633 | static const unsigned int fsib_data_in_mux[] = { |
| 1634 | FSIBISLD_MARK, |
| 1635 | }; |
| 1636 | static const unsigned int fsib_data_out_pins[] = { |
| 1637 | /* OSLD */ |
| 1638 | 38, |
| 1639 | }; |
| 1640 | static const unsigned int fsib_data_out_mux[] = { |
| 1641 | FSIBOSLD_MARK, |
| 1642 | }; |
| 1643 | static const unsigned int fsib_spdif_pins[] = { |
| 1644 | /* SPDIF */ |
| 1645 | 53, |
| 1646 | }; |
| 1647 | static const unsigned int fsib_spdif_mux[] = { |
| 1648 | FSIBSPDIF_MARK, |
| 1649 | }; |
| 1650 | /* - FSIC ------------------------------------------------------------------- */ |
| 1651 | static const unsigned int fsic_mclk_in_pins[] = { |
| 1652 | /* CK */ |
| 1653 | 54, |
| 1654 | }; |
| 1655 | static const unsigned int fsic_mclk_in_mux[] = { |
| 1656 | FSICCK_MARK, |
| 1657 | }; |
| 1658 | static const unsigned int fsic_mclk_out_pins[] = { |
| 1659 | /* OMC */ |
| 1660 | 54, |
| 1661 | }; |
| 1662 | static const unsigned int fsic_mclk_out_mux[] = { |
| 1663 | FSICOMC_MARK, |
| 1664 | }; |
| 1665 | static const unsigned int fsic_sclk_in_pins[] = { |
| 1666 | /* ILR, IBT */ |
| 1667 | 46, 45, |
| 1668 | }; |
| 1669 | static const unsigned int fsic_sclk_in_mux[] = { |
| 1670 | FSICILR_MARK, FSICIBT_MARK, |
| 1671 | }; |
| 1672 | static const unsigned int fsic_sclk_out_pins[] = { |
| 1673 | /* OLR, OBT */ |
| 1674 | 46, 45, |
| 1675 | }; |
| 1676 | static const unsigned int fsic_sclk_out_mux[] = { |
| 1677 | FSICOLR_MARK, FSICOBT_MARK, |
| 1678 | }; |
| 1679 | static const unsigned int fsic_data_in_pins[] = { |
| 1680 | /* ISLD */ |
| 1681 | 48, |
| 1682 | }; |
| 1683 | static const unsigned int fsic_data_in_mux[] = { |
| 1684 | FSICISLD_MARK, |
| 1685 | }; |
| 1686 | static const unsigned int fsic_data_out_pins[] = { |
| 1687 | /* OSLD, OSLDT1, OSLDT2, OSLDT3 */ |
| 1688 | 47, 44, 42, 16, |
| 1689 | }; |
| 1690 | static const unsigned int fsic_data_out_mux[] = { |
| 1691 | FSICOSLD_MARK, FSICOSLDT1_MARK, FSICOSLDT2_MARK, FSICOSLDT3_MARK, |
| 1692 | }; |
| 1693 | static const unsigned int fsic_spdif_0_pins[] = { |
| 1694 | /* SPDIF */ |
| 1695 | 53, |
| 1696 | }; |
| 1697 | static const unsigned int fsic_spdif_0_mux[] = { |
| 1698 | PORT53_FSICSPDIF_MARK, |
| 1699 | }; |
| 1700 | static const unsigned int fsic_spdif_1_pins[] = { |
| 1701 | /* SPDIF */ |
| 1702 | 47, |
| 1703 | }; |
| 1704 | static const unsigned int fsic_spdif_1_mux[] = { |
| 1705 | PORT47_FSICSPDIF_MARK, |
| 1706 | }; |
| 1707 | /* - FSID ------------------------------------------------------------------- */ |
| 1708 | static const unsigned int fsid_sclk_in_pins[] = { |
| 1709 | /* ILR, IBT */ |
| 1710 | 46, 45, |
| 1711 | }; |
| 1712 | static const unsigned int fsid_sclk_in_mux[] = { |
| 1713 | FSIDILR_MARK, FSIDIBT_MARK, |
| 1714 | }; |
| 1715 | static const unsigned int fsid_sclk_out_pins[] = { |
| 1716 | /* OLR, OBT */ |
| 1717 | 46, 45, |
| 1718 | }; |
| 1719 | static const unsigned int fsid_sclk_out_mux[] = { |
| 1720 | FSIDOLR_MARK, FSIDOBT_MARK, |
| 1721 | }; |
| 1722 | static const unsigned int fsid_data_in_pins[] = { |
| 1723 | /* ISLD */ |
| 1724 | 48, |
| 1725 | }; |
| 1726 | static const unsigned int fsid_data_in_mux[] = { |
| 1727 | FSIDISLD_MARK, |
| 1728 | }; |
| 1729 | /* - I2C2 ------------------------------------------------------------------- */ |
| 1730 | static const unsigned int i2c2_0_pins[] = { |
| 1731 | /* SCL, SDA */ |
| 1732 | 237, 236, |
| 1733 | }; |
| 1734 | static const unsigned int i2c2_0_mux[] = { |
| 1735 | PORT237_I2C_SCL2_MARK, PORT236_I2C_SDA2_MARK, |
| 1736 | }; |
| 1737 | static const unsigned int i2c2_1_pins[] = { |
| 1738 | /* SCL, SDA */ |
| 1739 | 27, 28, |
| 1740 | }; |
| 1741 | static const unsigned int i2c2_1_mux[] = { |
| 1742 | PORT27_I2C_SCL2_MARK, PORT28_I2C_SDA2_MARK, |
| 1743 | }; |
| 1744 | static const unsigned int i2c2_2_pins[] = { |
| 1745 | /* SCL, SDA */ |
| 1746 | 115, 116, |
| 1747 | }; |
| 1748 | static const unsigned int i2c2_2_mux[] = { |
| 1749 | PORT115_I2C_SCL2_MARK, PORT116_I2C_SDA2_MARK, |
| 1750 | }; |
| 1751 | /* - I2C3 ------------------------------------------------------------------- */ |
| 1752 | static const unsigned int i2c3_0_pins[] = { |
| 1753 | /* SCL, SDA */ |
| 1754 | 248, 249, |
| 1755 | }; |
| 1756 | static const unsigned int i2c3_0_mux[] = { |
| 1757 | PORT248_I2C_SCL3_MARK, PORT249_I2C_SDA3_MARK, |
| 1758 | }; |
| 1759 | static const unsigned int i2c3_1_pins[] = { |
| 1760 | /* SCL, SDA */ |
| 1761 | 27, 28, |
| 1762 | }; |
| 1763 | static const unsigned int i2c3_1_mux[] = { |
| 1764 | PORT27_I2C_SCL3_MARK, PORT28_I2C_SDA3_MARK, |
| 1765 | }; |
| 1766 | static const unsigned int i2c3_2_pins[] = { |
| 1767 | /* SCL, SDA */ |
| 1768 | 115, 116, |
| 1769 | }; |
| 1770 | static const unsigned int i2c3_2_mux[] = { |
| 1771 | PORT115_I2C_SCL3_MARK, PORT116_I2C_SDA3_MARK, |
| 1772 | }; |
| 1773 | /* - IrDA ------------------------------------------------------------------- */ |
| 1774 | static const unsigned int irda_0_pins[] = { |
| 1775 | /* OUT, IN, FIRSEL */ |
| 1776 | 241, 242, 243, |
| 1777 | }; |
| 1778 | static const unsigned int irda_0_mux[] = { |
| 1779 | PORT241_IRDA_OUT_MARK, PORT242_IRDA_IN_MARK, PORT243_IRDA_FIRSEL_MARK, |
| 1780 | }; |
| 1781 | static const unsigned int irda_1_pins[] = { |
| 1782 | /* OUT, IN, FIRSEL */ |
| 1783 | 49, 53, 54, |
| 1784 | }; |
| 1785 | static const unsigned int irda_1_mux[] = { |
| 1786 | PORT49_IRDA_OUT_MARK, PORT53_IRDA_IN_MARK, PORT54_IRDA_FIRSEL_MARK, |
| 1787 | }; |
| 1788 | /* - KEYSC ------------------------------------------------------------------ */ |
| 1789 | static const unsigned int keysc_in5_pins[] = { |
| 1790 | /* KEYIN[0:4] */ |
| 1791 | 66, 67, 68, 69, 70, |
| 1792 | }; |
| 1793 | static const unsigned int keysc_in5_mux[] = { |
| 1794 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, |
| 1795 | KEYIN4_MARK, |
| 1796 | }; |
| 1797 | static const unsigned int keysc_in6_pins[] = { |
| 1798 | /* KEYIN[0:5] */ |
| 1799 | 66, 67, 68, 69, 70, 71, |
| 1800 | }; |
| 1801 | static const unsigned int keysc_in6_mux[] = { |
| 1802 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, |
| 1803 | KEYIN4_MARK, KEYIN5_MARK, |
| 1804 | }; |
| 1805 | static const unsigned int keysc_in7_pins[] = { |
| 1806 | /* KEYIN[0:6] */ |
| 1807 | 66, 67, 68, 69, 70, 71, 72, |
| 1808 | }; |
| 1809 | static const unsigned int keysc_in7_mux[] = { |
| 1810 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, |
| 1811 | KEYIN4_MARK, KEYIN5_MARK, KEYIN6_MARK, |
| 1812 | }; |
| 1813 | static const unsigned int keysc_in8_pins[] = { |
| 1814 | /* KEYIN[0:7] */ |
| 1815 | 66, 67, 68, 69, 70, 71, 72, 73, |
| 1816 | }; |
| 1817 | static const unsigned int keysc_in8_mux[] = { |
| 1818 | KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, |
| 1819 | KEYIN4_MARK, KEYIN5_MARK, KEYIN6_MARK, KEYIN7_MARK, |
| 1820 | }; |
| 1821 | static const unsigned int keysc_out04_pins[] = { |
| 1822 | /* KEYOUT[0:4] */ |
| 1823 | 65, 64, 63, 62, 61, |
| 1824 | }; |
| 1825 | static const unsigned int keysc_out04_mux[] = { |
| 1826 | KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, KEYOUT4_MARK, |
| 1827 | }; |
| 1828 | static const unsigned int keysc_out5_pins[] = { |
| 1829 | /* KEYOUT5 */ |
| 1830 | 60, |
| 1831 | }; |
| 1832 | static const unsigned int keysc_out5_mux[] = { |
| 1833 | KEYOUT5_MARK, |
| 1834 | }; |
| 1835 | static const unsigned int keysc_out6_0_pins[] = { |
| 1836 | /* KEYOUT6 */ |
| 1837 | 59, |
| 1838 | }; |
| 1839 | static const unsigned int keysc_out6_0_mux[] = { |
| 1840 | PORT59_KEYOUT6_MARK, |
| 1841 | }; |
| 1842 | static const unsigned int keysc_out6_1_pins[] = { |
| 1843 | /* KEYOUT6 */ |
| 1844 | 131, |
| 1845 | }; |
| 1846 | static const unsigned int keysc_out6_1_mux[] = { |
| 1847 | PORT131_KEYOUT6_MARK, |
| 1848 | }; |
| 1849 | static const unsigned int keysc_out6_2_pins[] = { |
| 1850 | /* KEYOUT6 */ |
| 1851 | 143, |
| 1852 | }; |
| 1853 | static const unsigned int keysc_out6_2_mux[] = { |
| 1854 | PORT143_KEYOUT6_MARK, |
| 1855 | }; |
| 1856 | static const unsigned int keysc_out7_0_pins[] = { |
| 1857 | /* KEYOUT7 */ |
| 1858 | 58, |
| 1859 | }; |
| 1860 | static const unsigned int keysc_out7_0_mux[] = { |
| 1861 | PORT58_KEYOUT7_MARK, |
| 1862 | }; |
| 1863 | static const unsigned int keysc_out7_1_pins[] = { |
| 1864 | /* KEYOUT7 */ |
| 1865 | 132, |
| 1866 | }; |
| 1867 | static const unsigned int keysc_out7_1_mux[] = { |
| 1868 | PORT132_KEYOUT7_MARK, |
| 1869 | }; |
| 1870 | static const unsigned int keysc_out7_2_pins[] = { |
| 1871 | /* KEYOUT7 */ |
| 1872 | 144, |
| 1873 | }; |
| 1874 | static const unsigned int keysc_out7_2_mux[] = { |
| 1875 | PORT144_KEYOUT7_MARK, |
| 1876 | }; |
| 1877 | static const unsigned int keysc_out8_0_pins[] = { |
| 1878 | /* KEYOUT8 */ |
| 1879 | PIN_NUMBER(6, 26), |
| 1880 | }; |
| 1881 | static const unsigned int keysc_out8_0_mux[] = { |
| 1882 | KEYOUT8_MARK, |
| 1883 | }; |
| 1884 | static const unsigned int keysc_out8_1_pins[] = { |
| 1885 | /* KEYOUT8 */ |
| 1886 | 136, |
| 1887 | }; |
| 1888 | static const unsigned int keysc_out8_1_mux[] = { |
| 1889 | PORT136_KEYOUT8_MARK, |
| 1890 | }; |
| 1891 | static const unsigned int keysc_out8_2_pins[] = { |
| 1892 | /* KEYOUT8 */ |
| 1893 | 138, |
| 1894 | }; |
| 1895 | static const unsigned int keysc_out8_2_mux[] = { |
| 1896 | PORT138_KEYOUT8_MARK, |
| 1897 | }; |
| 1898 | static const unsigned int keysc_out9_0_pins[] = { |
| 1899 | /* KEYOUT9 */ |
| 1900 | 137, |
| 1901 | }; |
| 1902 | static const unsigned int keysc_out9_0_mux[] = { |
| 1903 | PORT137_KEYOUT9_MARK, |
| 1904 | }; |
| 1905 | static const unsigned int keysc_out9_1_pins[] = { |
| 1906 | /* KEYOUT9 */ |
| 1907 | 139, |
| 1908 | }; |
| 1909 | static const unsigned int keysc_out9_1_mux[] = { |
| 1910 | PORT139_KEYOUT9_MARK, |
| 1911 | }; |
| 1912 | static const unsigned int keysc_out9_2_pins[] = { |
| 1913 | /* KEYOUT9 */ |
| 1914 | 149, |
| 1915 | }; |
| 1916 | static const unsigned int keysc_out9_2_mux[] = { |
| 1917 | PORT149_KEYOUT9_MARK, |
| 1918 | }; |
| 1919 | static const unsigned int keysc_out10_0_pins[] = { |
| 1920 | /* KEYOUT10 */ |
| 1921 | 132, |
| 1922 | }; |
| 1923 | static const unsigned int keysc_out10_0_mux[] = { |
| 1924 | PORT132_KEYOUT10_MARK, |
| 1925 | }; |
| 1926 | static const unsigned int keysc_out10_1_pins[] = { |
| 1927 | /* KEYOUT10 */ |
| 1928 | 142, |
| 1929 | }; |
| 1930 | static const unsigned int keysc_out10_1_mux[] = { |
| 1931 | PORT142_KEYOUT10_MARK, |
| 1932 | }; |
| 1933 | static const unsigned int keysc_out11_0_pins[] = { |
| 1934 | /* KEYOUT11 */ |
| 1935 | 131, |
| 1936 | }; |
| 1937 | static const unsigned int keysc_out11_0_mux[] = { |
| 1938 | PORT131_KEYOUT11_MARK, |
| 1939 | }; |
| 1940 | static const unsigned int keysc_out11_1_pins[] = { |
| 1941 | /* KEYOUT11 */ |
| 1942 | 143, |
| 1943 | }; |
| 1944 | static const unsigned int keysc_out11_1_mux[] = { |
| 1945 | PORT143_KEYOUT11_MARK, |
| 1946 | }; |
| 1947 | /* - LCD -------------------------------------------------------------------- */ |
| 1948 | static const unsigned int lcd_data8_pins[] = { |
| 1949 | /* D[0:7] */ |
| 1950 | 192, 193, 194, 195, 196, 197, 198, 199, |
| 1951 | }; |
| 1952 | static const unsigned int lcd_data8_mux[] = { |
| 1953 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, |
| 1954 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, |
| 1955 | }; |
| 1956 | static const unsigned int lcd_data9_pins[] = { |
| 1957 | /* D[0:8] */ |
| 1958 | 192, 193, 194, 195, 196, 197, 198, 199, |
| 1959 | 200, |
| 1960 | }; |
| 1961 | static const unsigned int lcd_data9_mux[] = { |
| 1962 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, |
| 1963 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, |
| 1964 | LCDD8_MARK, |
| 1965 | }; |
| 1966 | static const unsigned int lcd_data12_pins[] = { |
| 1967 | /* D[0:11] */ |
| 1968 | 192, 193, 194, 195, 196, 197, 198, 199, |
| 1969 | 200, 201, 202, 203, |
| 1970 | }; |
| 1971 | static const unsigned int lcd_data12_mux[] = { |
| 1972 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, |
| 1973 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, |
| 1974 | LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK, |
| 1975 | }; |
| 1976 | static const unsigned int lcd_data16_pins[] = { |
| 1977 | /* D[0:15] */ |
| 1978 | 192, 193, 194, 195, 196, 197, 198, 199, |
| 1979 | 200, 201, 202, 203, 204, 205, 206, 207, |
| 1980 | }; |
| 1981 | static const unsigned int lcd_data16_mux[] = { |
| 1982 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, |
| 1983 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, |
| 1984 | LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK, |
| 1985 | LCDD12_MARK, LCDD13_MARK, LCDD14_MARK, LCDD15_MARK, |
| 1986 | }; |
| 1987 | static const unsigned int lcd_data18_pins[] = { |
| 1988 | /* D[0:17] */ |
| 1989 | 192, 193, 194, 195, 196, 197, 198, 199, |
| 1990 | 200, 201, 202, 203, 204, 205, 206, 207, |
| 1991 | 208, 209, |
| 1992 | }; |
| 1993 | static const unsigned int lcd_data18_mux[] = { |
| 1994 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, |
| 1995 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, |
| 1996 | LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK, |
| 1997 | LCDD12_MARK, LCDD13_MARK, LCDD14_MARK, LCDD15_MARK, |
| 1998 | LCDD16_MARK, LCDD17_MARK, |
| 1999 | }; |
| 2000 | static const unsigned int lcd_data24_pins[] = { |
| 2001 | /* D[0:23] */ |
| 2002 | 192, 193, 194, 195, 196, 197, 198, 199, |
| 2003 | 200, 201, 202, 203, 204, 205, 206, 207, |
| 2004 | 208, 209, 210, 211, 212, 213, 214, 215 |
| 2005 | }; |
| 2006 | static const unsigned int lcd_data24_mux[] = { |
| 2007 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, |
| 2008 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, |
| 2009 | LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK, |
| 2010 | LCDD12_MARK, LCDD13_MARK, LCDD14_MARK, LCDD15_MARK, |
| 2011 | LCDD16_MARK, LCDD17_MARK, LCDD18_MARK, LCDD19_MARK, |
| 2012 | LCDD20_MARK, LCDD21_MARK, LCDD22_MARK, LCDD23_MARK, |
| 2013 | }; |
| 2014 | static const unsigned int lcd_display_pins[] = { |
| 2015 | /* DON */ |
| 2016 | 222, |
| 2017 | }; |
| 2018 | static const unsigned int lcd_display_mux[] = { |
| 2019 | LCDDON_MARK, |
| 2020 | }; |
| 2021 | static const unsigned int lcd_lclk_pins[] = { |
| 2022 | /* LCLK */ |
| 2023 | 221, |
| 2024 | }; |
| 2025 | static const unsigned int lcd_lclk_mux[] = { |
| 2026 | LCDLCLK_MARK, |
| 2027 | }; |
| 2028 | static const unsigned int lcd_sync_pins[] = { |
| 2029 | /* VSYN, HSYN, DCK, DISP */ |
| 2030 | 220, 218, 216, 219, |
| 2031 | }; |
| 2032 | static const unsigned int lcd_sync_mux[] = { |
| 2033 | LCDVSYN_MARK, LCDHSYN_MARK, LCDDCK_MARK, LCDDISP_MARK, |
| 2034 | }; |
| 2035 | static const unsigned int lcd_sys_pins[] = { |
| 2036 | /* CS, WR, RD, RS */ |
| 2037 | 218, 216, 217, 219, |
| 2038 | }; |
| 2039 | static const unsigned int lcd_sys_mux[] = { |
| 2040 | LCDCS__MARK, LCDWR__MARK, LCDRD__MARK, LCDRS_MARK, |
| 2041 | }; |
| 2042 | /* - LCD2 ------------------------------------------------------------------- */ |
| 2043 | static const unsigned int lcd2_data8_pins[] = { |
| 2044 | /* D[0:7] */ |
| 2045 | 128, 129, 142, 143, 144, 145, 138, 139, |
| 2046 | }; |
| 2047 | static const unsigned int lcd2_data8_mux[] = { |
| 2048 | LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK, |
| 2049 | LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK, |
| 2050 | }; |
| 2051 | static const unsigned int lcd2_data9_pins[] = { |
| 2052 | /* D[0:8] */ |
| 2053 | 128, 129, 142, 143, 144, 145, 138, 139, |
| 2054 | 140, |
| 2055 | }; |
| 2056 | static const unsigned int lcd2_data9_mux[] = { |
| 2057 | LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK, |
| 2058 | LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK, |
| 2059 | LCD2D8_MARK, |
| 2060 | }; |
| 2061 | static const unsigned int lcd2_data12_pins[] = { |
| 2062 | /* D[0:12] */ |
| 2063 | 128, 129, 142, 143, 144, 145, 138, 139, |
| 2064 | 140, 141, 130, 131, |
| 2065 | }; |
| 2066 | static const unsigned int lcd2_data12_mux[] = { |
| 2067 | LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK, |
| 2068 | LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK, |
| 2069 | LCD2D8_MARK, LCD2D9_MARK, LCD2D10_MARK, LCD2D11_MARK, |
| 2070 | }; |
| 2071 | static const unsigned int lcd2_data16_pins[] = { |
| 2072 | /* D[0:15] */ |
| 2073 | 128, 129, 142, 143, 144, 145, 138, 139, |
| 2074 | 140, 141, 130, 131, 132, 133, 134, 135, |
| 2075 | }; |
| 2076 | static const unsigned int lcd2_data16_mux[] = { |
| 2077 | LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK, |
| 2078 | LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK, |
| 2079 | LCD2D8_MARK, LCD2D9_MARK, LCD2D10_MARK, LCD2D11_MARK, |
| 2080 | LCD2D12_MARK, LCD2D13_MARK, LCD2D14_MARK, LCD2D15_MARK, |
| 2081 | }; |
| 2082 | static const unsigned int lcd2_data18_pins[] = { |
| 2083 | /* D[0:17] */ |
| 2084 | 128, 129, 142, 143, 144, 145, 138, 139, |
| 2085 | 140, 141, 130, 131, 132, 133, 134, 135, |
| 2086 | 136, 137, |
| 2087 | }; |
| 2088 | static const unsigned int lcd2_data18_mux[] = { |
| 2089 | LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK, |
| 2090 | LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK, |
| 2091 | LCD2D8_MARK, LCD2D9_MARK, LCD2D10_MARK, LCD2D11_MARK, |
| 2092 | LCD2D12_MARK, LCD2D13_MARK, LCD2D14_MARK, LCD2D15_MARK, |
| 2093 | LCD2D16_MARK, LCD2D17_MARK, |
| 2094 | }; |
| 2095 | static const unsigned int lcd2_data24_pins[] = { |
| 2096 | /* D[0:23] */ |
| 2097 | 128, 129, 142, 143, 144, 145, 138, 139, |
| 2098 | 140, 141, 130, 131, 132, 133, 134, 135, |
| 2099 | 136, 137, 146, 147, 234, 235, 238, 239 |
| 2100 | }; |
| 2101 | static const unsigned int lcd2_data24_mux[] = { |
| 2102 | LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK, |
| 2103 | LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK, |
| 2104 | LCD2D8_MARK, LCD2D9_MARK, LCD2D10_MARK, LCD2D11_MARK, |
| 2105 | LCD2D12_MARK, LCD2D13_MARK, LCD2D14_MARK, LCD2D15_MARK, |
| 2106 | LCD2D16_MARK, LCD2D17_MARK, LCD2D18_MARK, LCD2D19_MARK, |
| 2107 | LCD2D20_MARK, LCD2D21_MARK, LCD2D22_MARK, LCD2D23_MARK, |
| 2108 | }; |
| 2109 | static const unsigned int lcd2_sync_0_pins[] = { |
| 2110 | /* VSYN, HSYN, DCK, DISP */ |
| 2111 | 128, 129, 146, 145, |
| 2112 | }; |
| 2113 | static const unsigned int lcd2_sync_0_mux[] = { |
| 2114 | PORT128_LCD2VSYN_MARK, PORT129_LCD2HSYN_MARK, |
| 2115 | LCD2DCK_MARK, PORT145_LCD2DISP_MARK, |
| 2116 | }; |
| 2117 | static const unsigned int lcd2_sync_1_pins[] = { |
| 2118 | /* VSYN, HSYN, DCK, DISP */ |
| 2119 | 222, 221, 219, 217, |
| 2120 | }; |
| 2121 | static const unsigned int lcd2_sync_1_mux[] = { |
| 2122 | PORT222_LCD2VSYN_MARK, PORT221_LCD2HSYN_MARK, |
| 2123 | LCD2DCK_2_MARK, PORT217_LCD2DISP_MARK, |
| 2124 | }; |
| 2125 | static const unsigned int lcd2_sys_0_pins[] = { |
| 2126 | /* CS, WR, RD, RS */ |
| 2127 | 129, 146, 147, 145, |
| 2128 | }; |
| 2129 | static const unsigned int lcd2_sys_0_mux[] = { |
| 2130 | PORT129_LCD2CS__MARK, PORT146_LCD2WR__MARK, |
| 2131 | LCD2RD__MARK, PORT145_LCD2RS_MARK, |
| 2132 | }; |
| 2133 | static const unsigned int lcd2_sys_1_pins[] = { |
| 2134 | /* CS, WR, RD, RS */ |
| 2135 | 221, 219, 147, 217, |
| 2136 | }; |
| 2137 | static const unsigned int lcd2_sys_1_mux[] = { |
| 2138 | PORT221_LCD2CS__MARK, PORT219_LCD2WR__MARK, |
| 2139 | LCD2RD__MARK, PORT217_LCD2RS_MARK, |
| 2140 | }; |
| 2141 | /* - MMCIF ------------------------------------------------------------------ */ |
| 2142 | static const unsigned int mmc0_data1_0_pins[] = { |
| 2143 | /* D[0] */ |
| 2144 | 271, |
| 2145 | }; |
| 2146 | static const unsigned int mmc0_data1_0_mux[] = { |
| 2147 | MMCD0_0_MARK, |
| 2148 | }; |
| 2149 | static const unsigned int mmc0_data4_0_pins[] = { |
| 2150 | /* D[0:3] */ |
| 2151 | 271, 272, 273, 274, |
| 2152 | }; |
| 2153 | static const unsigned int mmc0_data4_0_mux[] = { |
| 2154 | MMCD0_0_MARK, MMCD0_1_MARK, MMCD0_2_MARK, MMCD0_3_MARK, |
| 2155 | }; |
| 2156 | static const unsigned int mmc0_data8_0_pins[] = { |
| 2157 | /* D[0:7] */ |
| 2158 | 271, 272, 273, 274, 275, 276, 277, 278, |
| 2159 | }; |
| 2160 | static const unsigned int mmc0_data8_0_mux[] = { |
| 2161 | MMCD0_0_MARK, MMCD0_1_MARK, MMCD0_2_MARK, MMCD0_3_MARK, |
| 2162 | MMCD0_4_MARK, MMCD0_5_MARK, MMCD0_6_MARK, MMCD0_7_MARK, |
| 2163 | }; |
| 2164 | static const unsigned int mmc0_ctrl_0_pins[] = { |
| 2165 | /* CMD, CLK */ |
| 2166 | 279, 270, |
| 2167 | }; |
| 2168 | static const unsigned int mmc0_ctrl_0_mux[] = { |
| 2169 | MMCCMD0_MARK, MMCCLK0_MARK, |
| 2170 | }; |
| 2171 | |
| 2172 | static const unsigned int mmc0_data1_1_pins[] = { |
| 2173 | /* D[0] */ |
| 2174 | 305, |
| 2175 | }; |
| 2176 | static const unsigned int mmc0_data1_1_mux[] = { |
| 2177 | MMCD1_0_MARK, |
| 2178 | }; |
| 2179 | static const unsigned int mmc0_data4_1_pins[] = { |
| 2180 | /* D[0:3] */ |
| 2181 | 305, 304, 303, 302, |
| 2182 | }; |
| 2183 | static const unsigned int mmc0_data4_1_mux[] = { |
| 2184 | MMCD1_0_MARK, MMCD1_1_MARK, MMCD1_2_MARK, MMCD1_3_MARK, |
| 2185 | }; |
| 2186 | static const unsigned int mmc0_data8_1_pins[] = { |
| 2187 | /* D[0:7] */ |
| 2188 | 305, 304, 303, 302, 301, 300, 299, 298, |
| 2189 | }; |
| 2190 | static const unsigned int mmc0_data8_1_mux[] = { |
| 2191 | MMCD1_0_MARK, MMCD1_1_MARK, MMCD1_2_MARK, MMCD1_3_MARK, |
| 2192 | MMCD1_4_MARK, MMCD1_5_MARK, MMCD1_6_MARK, MMCD1_7_MARK, |
| 2193 | }; |
| 2194 | static const unsigned int mmc0_ctrl_1_pins[] = { |
| 2195 | /* CMD, CLK */ |
| 2196 | 297, 289, |
| 2197 | }; |
| 2198 | static const unsigned int mmc0_ctrl_1_mux[] = { |
| 2199 | MMCCMD1_MARK, MMCCLK1_MARK, |
| 2200 | }; |
| 2201 | /* - SCIFA0 ----------------------------------------------------------------- */ |
| 2202 | static const unsigned int scifa0_data_pins[] = { |
| 2203 | /* RXD, TXD */ |
| 2204 | 43, 17, |
| 2205 | }; |
| 2206 | static const unsigned int scifa0_data_mux[] = { |
| 2207 | SCIFA0_RXD_MARK, SCIFA0_TXD_MARK, |
| 2208 | }; |
| 2209 | static const unsigned int scifa0_clk_pins[] = { |
| 2210 | /* SCK */ |
| 2211 | 16, |
| 2212 | }; |
| 2213 | static const unsigned int scifa0_clk_mux[] = { |
| 2214 | SCIFA0_SCK_MARK, |
| 2215 | }; |
| 2216 | static const unsigned int scifa0_ctrl_pins[] = { |
| 2217 | /* RTS, CTS */ |
| 2218 | 42, 44, |
| 2219 | }; |
| 2220 | static const unsigned int scifa0_ctrl_mux[] = { |
| 2221 | SCIFA0_RTS__MARK, SCIFA0_CTS__MARK, |
| 2222 | }; |
| 2223 | /* - SCIFA1 ----------------------------------------------------------------- */ |
| 2224 | static const unsigned int scifa1_data_pins[] = { |
| 2225 | /* RXD, TXD */ |
| 2226 | 228, 225, |
| 2227 | }; |
| 2228 | static const unsigned int scifa1_data_mux[] = { |
| 2229 | SCIFA1_RXD_MARK, SCIFA1_TXD_MARK, |
| 2230 | }; |
| 2231 | static const unsigned int scifa1_clk_pins[] = { |
| 2232 | /* SCK */ |
| 2233 | 226, |
| 2234 | }; |
| 2235 | static const unsigned int scifa1_clk_mux[] = { |
| 2236 | SCIFA1_SCK_MARK, |
| 2237 | }; |
| 2238 | static const unsigned int scifa1_ctrl_pins[] = { |
| 2239 | /* RTS, CTS */ |
| 2240 | 227, 229, |
| 2241 | }; |
| 2242 | static const unsigned int scifa1_ctrl_mux[] = { |
| 2243 | SCIFA1_RTS__MARK, SCIFA1_CTS__MARK, |
| 2244 | }; |
| 2245 | /* - SCIFA2 ----------------------------------------------------------------- */ |
| 2246 | static const unsigned int scifa2_data_0_pins[] = { |
| 2247 | /* RXD, TXD */ |
| 2248 | 155, 154, |
| 2249 | }; |
| 2250 | static const unsigned int scifa2_data_0_mux[] = { |
| 2251 | SCIFA2_RXD1_MARK, SCIFA2_TXD1_MARK, |
| 2252 | }; |
| 2253 | static const unsigned int scifa2_clk_0_pins[] = { |
| 2254 | /* SCK */ |
| 2255 | 158, |
| 2256 | }; |
| 2257 | static const unsigned int scifa2_clk_0_mux[] = { |
| 2258 | SCIFA2_SCK1_MARK, |
| 2259 | }; |
| 2260 | static const unsigned int scifa2_ctrl_0_pins[] = { |
| 2261 | /* RTS, CTS */ |
| 2262 | 156, 157, |
| 2263 | }; |
| 2264 | static const unsigned int scifa2_ctrl_0_mux[] = { |
| 2265 | SCIFA2_RTS1__MARK, SCIFA2_CTS1__MARK, |
| 2266 | }; |
| 2267 | static const unsigned int scifa2_data_1_pins[] = { |
| 2268 | /* RXD, TXD */ |
| 2269 | 233, 230, |
| 2270 | }; |
| 2271 | static const unsigned int scifa2_data_1_mux[] = { |
| 2272 | SCIFA2_RXD2_MARK, SCIFA2_TXD2_MARK, |
| 2273 | }; |
| 2274 | static const unsigned int scifa2_clk_1_pins[] = { |
| 2275 | /* SCK */ |
| 2276 | 232, |
| 2277 | }; |
| 2278 | static const unsigned int scifa2_clk_1_mux[] = { |
| 2279 | SCIFA2_SCK2_MARK, |
| 2280 | }; |
| 2281 | static const unsigned int scifa2_ctrl_1_pins[] = { |
| 2282 | /* RTS, CTS */ |
| 2283 | 234, 231, |
| 2284 | }; |
| 2285 | static const unsigned int scifa2_ctrl_1_mux[] = { |
| 2286 | SCIFA2_RTS2__MARK, SCIFA2_CTS2__MARK, |
| 2287 | }; |
| 2288 | /* - SCIFA3 ----------------------------------------------------------------- */ |
| 2289 | static const unsigned int scifa3_data_pins[] = { |
| 2290 | /* RXD, TXD */ |
| 2291 | 108, 110, |
| 2292 | }; |
| 2293 | static const unsigned int scifa3_data_mux[] = { |
| 2294 | SCIFA3_RXD_MARK, SCIFA3_TXD_MARK, |
| 2295 | }; |
| 2296 | static const unsigned int scifa3_ctrl_pins[] = { |
| 2297 | /* RTS, CTS */ |
| 2298 | 109, 107, |
| 2299 | }; |
| 2300 | static const unsigned int scifa3_ctrl_mux[] = { |
| 2301 | SCIFA3_RTS__MARK, SCIFA3_CTS__MARK, |
| 2302 | }; |
| 2303 | /* - SCIFA4 ----------------------------------------------------------------- */ |
| 2304 | static const unsigned int scifa4_data_pins[] = { |
| 2305 | /* RXD, TXD */ |
| 2306 | 33, 32, |
| 2307 | }; |
| 2308 | static const unsigned int scifa4_data_mux[] = { |
| 2309 | SCIFA4_RXD_MARK, SCIFA4_TXD_MARK, |
| 2310 | }; |
| 2311 | static const unsigned int scifa4_ctrl_pins[] = { |
| 2312 | /* RTS, CTS */ |
| 2313 | 34, 35, |
| 2314 | }; |
| 2315 | static const unsigned int scifa4_ctrl_mux[] = { |
| 2316 | SCIFA4_RTS__MARK, SCIFA4_CTS__MARK, |
| 2317 | }; |
| 2318 | /* - SCIFA5 ----------------------------------------------------------------- */ |
| 2319 | static const unsigned int scifa5_data_0_pins[] = { |
| 2320 | /* RXD, TXD */ |
| 2321 | 246, 247, |
| 2322 | }; |
| 2323 | static const unsigned int scifa5_data_0_mux[] = { |
| 2324 | PORT246_SCIFA5_RXD_MARK, PORT247_SCIFA5_TXD_MARK, |
| 2325 | }; |
| 2326 | static const unsigned int scifa5_clk_0_pins[] = { |
| 2327 | /* SCK */ |
| 2328 | 248, |
| 2329 | }; |
| 2330 | static const unsigned int scifa5_clk_0_mux[] = { |
| 2331 | PORT248_SCIFA5_SCK_MARK, |
| 2332 | }; |
| 2333 | static const unsigned int scifa5_ctrl_0_pins[] = { |
| 2334 | /* RTS, CTS */ |
| 2335 | 245, 244, |
| 2336 | }; |
| 2337 | static const unsigned int scifa5_ctrl_0_mux[] = { |
| 2338 | PORT245_SCIFA5_RTS__MARK, PORT244_SCIFA5_CTS__MARK, |
| 2339 | }; |
| 2340 | static const unsigned int scifa5_data_1_pins[] = { |
| 2341 | /* RXD, TXD */ |
| 2342 | 195, 196, |
| 2343 | }; |
| 2344 | static const unsigned int scifa5_data_1_mux[] = { |
| 2345 | PORT195_SCIFA5_RXD_MARK, PORT196_SCIFA5_TXD_MARK, |
| 2346 | }; |
| 2347 | static const unsigned int scifa5_clk_1_pins[] = { |
| 2348 | /* SCK */ |
| 2349 | 197, |
| 2350 | }; |
| 2351 | static const unsigned int scifa5_clk_1_mux[] = { |
| 2352 | PORT197_SCIFA5_SCK_MARK, |
| 2353 | }; |
| 2354 | static const unsigned int scifa5_ctrl_1_pins[] = { |
| 2355 | /* RTS, CTS */ |
| 2356 | 194, 193, |
| 2357 | }; |
| 2358 | static const unsigned int scifa5_ctrl_1_mux[] = { |
| 2359 | PORT194_SCIFA5_RTS__MARK, PORT193_SCIFA5_CTS__MARK, |
| 2360 | }; |
| 2361 | static const unsigned int scifa5_data_2_pins[] = { |
| 2362 | /* RXD, TXD */ |
| 2363 | 162, 160, |
| 2364 | }; |
| 2365 | static const unsigned int scifa5_data_2_mux[] = { |
| 2366 | PORT162_SCIFA5_RXD_MARK, PORT160_SCIFA5_TXD_MARK, |
| 2367 | }; |
| 2368 | static const unsigned int scifa5_clk_2_pins[] = { |
| 2369 | /* SCK */ |
| 2370 | 159, |
| 2371 | }; |
| 2372 | static const unsigned int scifa5_clk_2_mux[] = { |
| 2373 | PORT159_SCIFA5_SCK_MARK, |
| 2374 | }; |
| 2375 | static const unsigned int scifa5_ctrl_2_pins[] = { |
| 2376 | /* RTS, CTS */ |
| 2377 | 163, 161, |
| 2378 | }; |
| 2379 | static const unsigned int scifa5_ctrl_2_mux[] = { |
| 2380 | PORT163_SCIFA5_RTS__MARK, PORT161_SCIFA5_CTS__MARK, |
| 2381 | }; |
| 2382 | /* - SCIFA6 ----------------------------------------------------------------- */ |
| 2383 | static const unsigned int scifa6_pins[] = { |
| 2384 | /* TXD */ |
| 2385 | 240, |
| 2386 | }; |
| 2387 | static const unsigned int scifa6_mux[] = { |
| 2388 | SCIFA6_TXD_MARK, |
| 2389 | }; |
| 2390 | /* - SCIFA7 ----------------------------------------------------------------- */ |
| 2391 | static const unsigned int scifa7_data_pins[] = { |
| 2392 | /* RXD, TXD */ |
| 2393 | 12, 18, |
| 2394 | }; |
| 2395 | static const unsigned int scifa7_data_mux[] = { |
| 2396 | SCIFA7_RXD_MARK, SCIFA7_TXD_MARK, |
| 2397 | }; |
| 2398 | static const unsigned int scifa7_ctrl_pins[] = { |
| 2399 | /* RTS, CTS */ |
| 2400 | 19, 13, |
| 2401 | }; |
| 2402 | static const unsigned int scifa7_ctrl_mux[] = { |
| 2403 | SCIFA7_RTS__MARK, SCIFA7_CTS__MARK, |
| 2404 | }; |
| 2405 | /* - SCIFB ------------------------------------------------------------------ */ |
| 2406 | static const unsigned int scifb_data_0_pins[] = { |
| 2407 | /* RXD, TXD */ |
| 2408 | 162, 160, |
| 2409 | }; |
| 2410 | static const unsigned int scifb_data_0_mux[] = { |
| 2411 | PORT162_SCIFB_RXD_MARK, PORT160_SCIFB_TXD_MARK, |
| 2412 | }; |
| 2413 | static const unsigned int scifb_clk_0_pins[] = { |
| 2414 | /* SCK */ |
| 2415 | 159, |
| 2416 | }; |
| 2417 | static const unsigned int scifb_clk_0_mux[] = { |
| 2418 | PORT159_SCIFB_SCK_MARK, |
| 2419 | }; |
| 2420 | static const unsigned int scifb_ctrl_0_pins[] = { |
| 2421 | /* RTS, CTS */ |
| 2422 | 163, 161, |
| 2423 | }; |
| 2424 | static const unsigned int scifb_ctrl_0_mux[] = { |
| 2425 | PORT163_SCIFB_RTS__MARK, PORT161_SCIFB_CTS__MARK, |
| 2426 | }; |
| 2427 | static const unsigned int scifb_data_1_pins[] = { |
| 2428 | /* RXD, TXD */ |
| 2429 | 246, 247, |
| 2430 | }; |
| 2431 | static const unsigned int scifb_data_1_mux[] = { |
| 2432 | PORT246_SCIFB_RXD_MARK, PORT247_SCIFB_TXD_MARK, |
| 2433 | }; |
| 2434 | static const unsigned int scifb_clk_1_pins[] = { |
| 2435 | /* SCK */ |
| 2436 | 248, |
| 2437 | }; |
| 2438 | static const unsigned int scifb_clk_1_mux[] = { |
| 2439 | PORT248_SCIFB_SCK_MARK, |
| 2440 | }; |
| 2441 | static const unsigned int scifb_ctrl_1_pins[] = { |
| 2442 | /* RTS, CTS */ |
| 2443 | 245, 244, |
| 2444 | }; |
| 2445 | static const unsigned int scifb_ctrl_1_mux[] = { |
| 2446 | PORT245_SCIFB_RTS__MARK, PORT244_SCIFB_CTS__MARK, |
| 2447 | }; |
| 2448 | /* - SDHI0 ------------------------------------------------------------------ */ |
| 2449 | static const unsigned int sdhi0_data1_pins[] = { |
| 2450 | /* D0 */ |
| 2451 | 252, |
| 2452 | }; |
| 2453 | static const unsigned int sdhi0_data1_mux[] = { |
| 2454 | SDHID0_0_MARK, |
| 2455 | }; |
| 2456 | static const unsigned int sdhi0_data4_pins[] = { |
| 2457 | /* D[0:3] */ |
| 2458 | 252, 253, 254, 255, |
| 2459 | }; |
| 2460 | static const unsigned int sdhi0_data4_mux[] = { |
| 2461 | SDHID0_0_MARK, SDHID0_1_MARK, SDHID0_2_MARK, SDHID0_3_MARK, |
| 2462 | }; |
| 2463 | static const unsigned int sdhi0_ctrl_pins[] = { |
| 2464 | /* CMD, CLK */ |
| 2465 | 256, 250, |
| 2466 | }; |
| 2467 | static const unsigned int sdhi0_ctrl_mux[] = { |
| 2468 | SDHICMD0_MARK, SDHICLK0_MARK, |
| 2469 | }; |
| 2470 | static const unsigned int sdhi0_cd_pins[] = { |
| 2471 | /* CD */ |
| 2472 | 251, |
| 2473 | }; |
| 2474 | static const unsigned int sdhi0_cd_mux[] = { |
| 2475 | SDHICD0_MARK, |
| 2476 | }; |
| 2477 | static const unsigned int sdhi0_wp_pins[] = { |
| 2478 | /* WP */ |
| 2479 | 257, |
| 2480 | }; |
| 2481 | static const unsigned int sdhi0_wp_mux[] = { |
| 2482 | SDHIWP0_MARK, |
| 2483 | }; |
| 2484 | /* - SDHI1 ------------------------------------------------------------------ */ |
| 2485 | static const unsigned int sdhi1_data1_pins[] = { |
| 2486 | /* D0 */ |
| 2487 | 259, |
| 2488 | }; |
| 2489 | static const unsigned int sdhi1_data1_mux[] = { |
| 2490 | SDHID1_0_MARK, |
| 2491 | }; |
| 2492 | static const unsigned int sdhi1_data4_pins[] = { |
| 2493 | /* D[0:3] */ |
| 2494 | 259, 260, 261, 262, |
| 2495 | }; |
| 2496 | static const unsigned int sdhi1_data4_mux[] = { |
| 2497 | SDHID1_0_MARK, SDHID1_1_MARK, SDHID1_2_MARK, SDHID1_3_MARK, |
| 2498 | }; |
| 2499 | static const unsigned int sdhi1_ctrl_pins[] = { |
| 2500 | /* CMD, CLK */ |
| 2501 | 263, 258, |
| 2502 | }; |
| 2503 | static const unsigned int sdhi1_ctrl_mux[] = { |
| 2504 | SDHICMD1_MARK, SDHICLK1_MARK, |
| 2505 | }; |
| 2506 | /* - SDHI2 ------------------------------------------------------------------ */ |
| 2507 | static const unsigned int sdhi2_data1_pins[] = { |
| 2508 | /* D0 */ |
| 2509 | 265, |
| 2510 | }; |
| 2511 | static const unsigned int sdhi2_data1_mux[] = { |
| 2512 | SDHID2_0_MARK, |
| 2513 | }; |
| 2514 | static const unsigned int sdhi2_data4_pins[] = { |
| 2515 | /* D[0:3] */ |
| 2516 | 265, 266, 267, 268, |
| 2517 | }; |
| 2518 | static const unsigned int sdhi2_data4_mux[] = { |
| 2519 | SDHID2_0_MARK, SDHID2_1_MARK, SDHID2_2_MARK, SDHID2_3_MARK, |
| 2520 | }; |
| 2521 | static const unsigned int sdhi2_ctrl_pins[] = { |
| 2522 | /* CMD, CLK */ |
| 2523 | 269, 264, |
| 2524 | }; |
| 2525 | static const unsigned int sdhi2_ctrl_mux[] = { |
| 2526 | SDHICMD2_MARK, SDHICLK2_MARK, |
| 2527 | }; |
| 2528 | /* - TPU0 ------------------------------------------------------------------- */ |
| 2529 | static const unsigned int tpu0_to0_pins[] = { |
| 2530 | /* TO */ |
| 2531 | 55, |
| 2532 | }; |
| 2533 | static const unsigned int tpu0_to0_mux[] = { |
| 2534 | TPU0TO0_MARK, |
| 2535 | }; |
| 2536 | static const unsigned int tpu0_to1_pins[] = { |
| 2537 | /* TO */ |
| 2538 | 59, |
| 2539 | }; |
| 2540 | static const unsigned int tpu0_to1_mux[] = { |
| 2541 | TPU0TO1_MARK, |
| 2542 | }; |
| 2543 | static const unsigned int tpu0_to2_pins[] = { |
| 2544 | /* TO */ |
| 2545 | 140, |
| 2546 | }; |
| 2547 | static const unsigned int tpu0_to2_mux[] = { |
| 2548 | TPU0TO2_MARK, |
| 2549 | }; |
| 2550 | static const unsigned int tpu0_to3_pins[] = { |
| 2551 | /* TO */ |
| 2552 | 141, |
| 2553 | }; |
| 2554 | static const unsigned int tpu0_to3_mux[] = { |
| 2555 | TPU0TO3_MARK, |
| 2556 | }; |
| 2557 | /* - TPU1 ------------------------------------------------------------------- */ |
| 2558 | static const unsigned int tpu1_to0_pins[] = { |
| 2559 | /* TO */ |
| 2560 | 246, |
| 2561 | }; |
| 2562 | static const unsigned int tpu1_to0_mux[] = { |
| 2563 | TPU1TO0_MARK, |
| 2564 | }; |
| 2565 | static const unsigned int tpu1_to1_0_pins[] = { |
| 2566 | /* TO */ |
| 2567 | 28, |
| 2568 | }; |
| 2569 | static const unsigned int tpu1_to1_0_mux[] = { |
| 2570 | PORT28_TPU1TO1_MARK, |
| 2571 | }; |
| 2572 | static const unsigned int tpu1_to1_1_pins[] = { |
| 2573 | /* TO */ |
| 2574 | 29, |
| 2575 | }; |
| 2576 | static const unsigned int tpu1_to1_1_mux[] = { |
| 2577 | PORT29_TPU1TO1_MARK, |
| 2578 | }; |
| 2579 | static const unsigned int tpu1_to2_pins[] = { |
| 2580 | /* TO */ |
| 2581 | 153, |
| 2582 | }; |
| 2583 | static const unsigned int tpu1_to2_mux[] = { |
| 2584 | TPU1TO2_MARK, |
| 2585 | }; |
| 2586 | static const unsigned int tpu1_to3_pins[] = { |
| 2587 | /* TO */ |
| 2588 | 145, |
| 2589 | }; |
| 2590 | static const unsigned int tpu1_to3_mux[] = { |
| 2591 | TPU1TO3_MARK, |
| 2592 | }; |
| 2593 | /* - TPU2 ------------------------------------------------------------------- */ |
| 2594 | static const unsigned int tpu2_to0_pins[] = { |
| 2595 | /* TO */ |
| 2596 | 248, |
| 2597 | }; |
| 2598 | static const unsigned int tpu2_to0_mux[] = { |
| 2599 | TPU2TO0_MARK, |
| 2600 | }; |
| 2601 | static const unsigned int tpu2_to1_pins[] = { |
| 2602 | /* TO */ |
| 2603 | 197, |
| 2604 | }; |
| 2605 | static const unsigned int tpu2_to1_mux[] = { |
| 2606 | TPU2TO1_MARK, |
| 2607 | }; |
| 2608 | static const unsigned int tpu2_to2_pins[] = { |
| 2609 | /* TO */ |
| 2610 | 50, |
| 2611 | }; |
| 2612 | static const unsigned int tpu2_to2_mux[] = { |
| 2613 | TPU2TO2_MARK, |
| 2614 | }; |
| 2615 | static const unsigned int tpu2_to3_pins[] = { |
| 2616 | /* TO */ |
| 2617 | 51, |
| 2618 | }; |
| 2619 | static const unsigned int tpu2_to3_mux[] = { |
| 2620 | TPU2TO3_MARK, |
| 2621 | }; |
| 2622 | /* - TPU3 ------------------------------------------------------------------- */ |
| 2623 | static const unsigned int tpu3_to0_pins[] = { |
| 2624 | /* TO */ |
| 2625 | 163, |
| 2626 | }; |
| 2627 | static const unsigned int tpu3_to0_mux[] = { |
| 2628 | TPU3TO0_MARK, |
| 2629 | }; |
| 2630 | static const unsigned int tpu3_to1_pins[] = { |
| 2631 | /* TO */ |
| 2632 | 247, |
| 2633 | }; |
| 2634 | static const unsigned int tpu3_to1_mux[] = { |
| 2635 | TPU3TO1_MARK, |
| 2636 | }; |
| 2637 | static const unsigned int tpu3_to2_pins[] = { |
| 2638 | /* TO */ |
| 2639 | 54, |
| 2640 | }; |
| 2641 | static const unsigned int tpu3_to2_mux[] = { |
| 2642 | TPU3TO2_MARK, |
| 2643 | }; |
| 2644 | static const unsigned int tpu3_to3_pins[] = { |
| 2645 | /* TO */ |
| 2646 | 53, |
| 2647 | }; |
| 2648 | static const unsigned int tpu3_to3_mux[] = { |
| 2649 | TPU3TO3_MARK, |
| 2650 | }; |
| 2651 | /* - TPU4 ------------------------------------------------------------------- */ |
| 2652 | static const unsigned int tpu4_to0_pins[] = { |
| 2653 | /* TO */ |
| 2654 | 241, |
| 2655 | }; |
| 2656 | static const unsigned int tpu4_to0_mux[] = { |
| 2657 | TPU4TO0_MARK, |
| 2658 | }; |
| 2659 | static const unsigned int tpu4_to1_pins[] = { |
| 2660 | /* TO */ |
| 2661 | 199, |
| 2662 | }; |
| 2663 | static const unsigned int tpu4_to1_mux[] = { |
| 2664 | TPU4TO1_MARK, |
| 2665 | }; |
| 2666 | static const unsigned int tpu4_to2_pins[] = { |
| 2667 | /* TO */ |
| 2668 | 58, |
| 2669 | }; |
| 2670 | static const unsigned int tpu4_to2_mux[] = { |
| 2671 | TPU4TO2_MARK, |
| 2672 | }; |
| 2673 | static const unsigned int tpu4_to3_pins[] = { |
| 2674 | /* TO */ |
| 2675 | }; |
| 2676 | static const unsigned int tpu4_to3_mux[] = { |
| 2677 | TPU4TO3_MARK, |
| 2678 | }; |
| 2679 | /* - USB -------------------------------------------------------------------- */ |
| 2680 | static const unsigned int usb_vbus_pins[] = { |
| 2681 | /* VBUS */ |
| 2682 | 0, |
| 2683 | }; |
| 2684 | static const unsigned int usb_vbus_mux[] = { |
| 2685 | VBUS_0_MARK, |
| 2686 | }; |
| 2687 | |
| 2688 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
| 2689 | SH_PFC_PIN_GROUP(bsc_data_0_7), |
| 2690 | SH_PFC_PIN_GROUP(bsc_data_8_15), |
| 2691 | SH_PFC_PIN_GROUP(bsc_cs4), |
| 2692 | SH_PFC_PIN_GROUP(bsc_cs5_a), |
| 2693 | SH_PFC_PIN_GROUP(bsc_cs5_b), |
| 2694 | SH_PFC_PIN_GROUP(bsc_cs6_a), |
| 2695 | SH_PFC_PIN_GROUP(bsc_cs6_b), |
| 2696 | SH_PFC_PIN_GROUP(bsc_rd), |
| 2697 | SH_PFC_PIN_GROUP(bsc_rdwr_0), |
| 2698 | SH_PFC_PIN_GROUP(bsc_rdwr_1), |
| 2699 | SH_PFC_PIN_GROUP(bsc_rdwr_2), |
| 2700 | SH_PFC_PIN_GROUP(bsc_we0), |
| 2701 | SH_PFC_PIN_GROUP(bsc_we1), |
| 2702 | SH_PFC_PIN_GROUP(fsia_mclk_in), |
| 2703 | SH_PFC_PIN_GROUP(fsia_mclk_out), |
| 2704 | SH_PFC_PIN_GROUP(fsia_sclk_in), |
| 2705 | SH_PFC_PIN_GROUP(fsia_sclk_out), |
| 2706 | SH_PFC_PIN_GROUP(fsia_data_in), |
| 2707 | SH_PFC_PIN_GROUP(fsia_data_out), |
| 2708 | SH_PFC_PIN_GROUP(fsia_spdif), |
| 2709 | SH_PFC_PIN_GROUP(fsib_mclk_in), |
| 2710 | SH_PFC_PIN_GROUP(fsib_mclk_out), |
| 2711 | SH_PFC_PIN_GROUP(fsib_sclk_in), |
| 2712 | SH_PFC_PIN_GROUP(fsib_sclk_out), |
| 2713 | SH_PFC_PIN_GROUP(fsib_data_in), |
| 2714 | SH_PFC_PIN_GROUP(fsib_data_out), |
| 2715 | SH_PFC_PIN_GROUP(fsib_spdif), |
| 2716 | SH_PFC_PIN_GROUP(fsic_mclk_in), |
| 2717 | SH_PFC_PIN_GROUP(fsic_mclk_out), |
| 2718 | SH_PFC_PIN_GROUP(fsic_sclk_in), |
| 2719 | SH_PFC_PIN_GROUP(fsic_sclk_out), |
| 2720 | SH_PFC_PIN_GROUP(fsic_data_in), |
| 2721 | SH_PFC_PIN_GROUP(fsic_data_out), |
| 2722 | SH_PFC_PIN_GROUP(fsic_spdif_0), |
| 2723 | SH_PFC_PIN_GROUP(fsic_spdif_1), |
| 2724 | SH_PFC_PIN_GROUP(fsid_sclk_in), |
| 2725 | SH_PFC_PIN_GROUP(fsid_sclk_out), |
| 2726 | SH_PFC_PIN_GROUP(fsid_data_in), |
| 2727 | SH_PFC_PIN_GROUP(i2c2_0), |
| 2728 | SH_PFC_PIN_GROUP(i2c2_1), |
| 2729 | SH_PFC_PIN_GROUP(i2c2_2), |
| 2730 | SH_PFC_PIN_GROUP(i2c3_0), |
| 2731 | SH_PFC_PIN_GROUP(i2c3_1), |
| 2732 | SH_PFC_PIN_GROUP(i2c3_2), |
| 2733 | SH_PFC_PIN_GROUP(irda_0), |
| 2734 | SH_PFC_PIN_GROUP(irda_1), |
| 2735 | SH_PFC_PIN_GROUP(keysc_in5), |
| 2736 | SH_PFC_PIN_GROUP(keysc_in6), |
| 2737 | SH_PFC_PIN_GROUP(keysc_in7), |
| 2738 | SH_PFC_PIN_GROUP(keysc_in8), |
| 2739 | SH_PFC_PIN_GROUP(keysc_out04), |
| 2740 | SH_PFC_PIN_GROUP(keysc_out5), |
| 2741 | SH_PFC_PIN_GROUP(keysc_out6_0), |
| 2742 | SH_PFC_PIN_GROUP(keysc_out6_1), |
| 2743 | SH_PFC_PIN_GROUP(keysc_out6_2), |
| 2744 | SH_PFC_PIN_GROUP(keysc_out7_0), |
| 2745 | SH_PFC_PIN_GROUP(keysc_out7_1), |
| 2746 | SH_PFC_PIN_GROUP(keysc_out7_2), |
| 2747 | SH_PFC_PIN_GROUP(keysc_out8_0), |
| 2748 | SH_PFC_PIN_GROUP(keysc_out8_1), |
| 2749 | SH_PFC_PIN_GROUP(keysc_out8_2), |
| 2750 | SH_PFC_PIN_GROUP(keysc_out9_0), |
| 2751 | SH_PFC_PIN_GROUP(keysc_out9_1), |
| 2752 | SH_PFC_PIN_GROUP(keysc_out9_2), |
| 2753 | SH_PFC_PIN_GROUP(keysc_out10_0), |
| 2754 | SH_PFC_PIN_GROUP(keysc_out10_1), |
| 2755 | SH_PFC_PIN_GROUP(keysc_out11_0), |
| 2756 | SH_PFC_PIN_GROUP(keysc_out11_1), |
| 2757 | SH_PFC_PIN_GROUP(lcd_data8), |
| 2758 | SH_PFC_PIN_GROUP(lcd_data9), |
| 2759 | SH_PFC_PIN_GROUP(lcd_data12), |
| 2760 | SH_PFC_PIN_GROUP(lcd_data16), |
| 2761 | SH_PFC_PIN_GROUP(lcd_data18), |
| 2762 | SH_PFC_PIN_GROUP(lcd_data24), |
| 2763 | SH_PFC_PIN_GROUP(lcd_display), |
| 2764 | SH_PFC_PIN_GROUP(lcd_lclk), |
| 2765 | SH_PFC_PIN_GROUP(lcd_sync), |
| 2766 | SH_PFC_PIN_GROUP(lcd_sys), |
| 2767 | SH_PFC_PIN_GROUP(lcd2_data8), |
| 2768 | SH_PFC_PIN_GROUP(lcd2_data9), |
| 2769 | SH_PFC_PIN_GROUP(lcd2_data12), |
| 2770 | SH_PFC_PIN_GROUP(lcd2_data16), |
| 2771 | SH_PFC_PIN_GROUP(lcd2_data18), |
| 2772 | SH_PFC_PIN_GROUP(lcd2_data24), |
| 2773 | SH_PFC_PIN_GROUP(lcd2_sync_0), |
| 2774 | SH_PFC_PIN_GROUP(lcd2_sync_1), |
| 2775 | SH_PFC_PIN_GROUP(lcd2_sys_0), |
| 2776 | SH_PFC_PIN_GROUP(lcd2_sys_1), |
| 2777 | SH_PFC_PIN_GROUP(mmc0_data1_0), |
| 2778 | SH_PFC_PIN_GROUP(mmc0_data4_0), |
| 2779 | SH_PFC_PIN_GROUP(mmc0_data8_0), |
| 2780 | SH_PFC_PIN_GROUP(mmc0_ctrl_0), |
| 2781 | SH_PFC_PIN_GROUP(mmc0_data1_1), |
| 2782 | SH_PFC_PIN_GROUP(mmc0_data4_1), |
| 2783 | SH_PFC_PIN_GROUP(mmc0_data8_1), |
| 2784 | SH_PFC_PIN_GROUP(mmc0_ctrl_1), |
| 2785 | SH_PFC_PIN_GROUP(scifa0_data), |
| 2786 | SH_PFC_PIN_GROUP(scifa0_clk), |
| 2787 | SH_PFC_PIN_GROUP(scifa0_ctrl), |
| 2788 | SH_PFC_PIN_GROUP(scifa1_data), |
| 2789 | SH_PFC_PIN_GROUP(scifa1_clk), |
| 2790 | SH_PFC_PIN_GROUP(scifa1_ctrl), |
| 2791 | SH_PFC_PIN_GROUP(scifa2_data_0), |
| 2792 | SH_PFC_PIN_GROUP(scifa2_clk_0), |
| 2793 | SH_PFC_PIN_GROUP(scifa2_ctrl_0), |
| 2794 | SH_PFC_PIN_GROUP(scifa2_data_1), |
| 2795 | SH_PFC_PIN_GROUP(scifa2_clk_1), |
| 2796 | SH_PFC_PIN_GROUP(scifa2_ctrl_1), |
| 2797 | SH_PFC_PIN_GROUP(scifa3_data), |
| 2798 | SH_PFC_PIN_GROUP(scifa3_ctrl), |
| 2799 | SH_PFC_PIN_GROUP(scifa4_data), |
| 2800 | SH_PFC_PIN_GROUP(scifa4_ctrl), |
| 2801 | SH_PFC_PIN_GROUP(scifa5_data_0), |
| 2802 | SH_PFC_PIN_GROUP(scifa5_clk_0), |
| 2803 | SH_PFC_PIN_GROUP(scifa5_ctrl_0), |
| 2804 | SH_PFC_PIN_GROUP(scifa5_data_1), |
| 2805 | SH_PFC_PIN_GROUP(scifa5_clk_1), |
| 2806 | SH_PFC_PIN_GROUP(scifa5_ctrl_1), |
| 2807 | SH_PFC_PIN_GROUP(scifa5_data_2), |
| 2808 | SH_PFC_PIN_GROUP(scifa5_clk_2), |
| 2809 | SH_PFC_PIN_GROUP(scifa5_ctrl_2), |
| 2810 | SH_PFC_PIN_GROUP(scifa6), |
| 2811 | SH_PFC_PIN_GROUP(scifa7_data), |
| 2812 | SH_PFC_PIN_GROUP(scifa7_ctrl), |
| 2813 | SH_PFC_PIN_GROUP(scifb_data_0), |
| 2814 | SH_PFC_PIN_GROUP(scifb_clk_0), |
| 2815 | SH_PFC_PIN_GROUP(scifb_ctrl_0), |
| 2816 | SH_PFC_PIN_GROUP(scifb_data_1), |
| 2817 | SH_PFC_PIN_GROUP(scifb_clk_1), |
| 2818 | SH_PFC_PIN_GROUP(scifb_ctrl_1), |
| 2819 | SH_PFC_PIN_GROUP(sdhi0_data1), |
| 2820 | SH_PFC_PIN_GROUP(sdhi0_data4), |
| 2821 | SH_PFC_PIN_GROUP(sdhi0_ctrl), |
| 2822 | SH_PFC_PIN_GROUP(sdhi0_cd), |
| 2823 | SH_PFC_PIN_GROUP(sdhi0_wp), |
| 2824 | SH_PFC_PIN_GROUP(sdhi1_data1), |
| 2825 | SH_PFC_PIN_GROUP(sdhi1_data4), |
| 2826 | SH_PFC_PIN_GROUP(sdhi1_ctrl), |
| 2827 | SH_PFC_PIN_GROUP(sdhi2_data1), |
| 2828 | SH_PFC_PIN_GROUP(sdhi2_data4), |
| 2829 | SH_PFC_PIN_GROUP(sdhi2_ctrl), |
| 2830 | SH_PFC_PIN_GROUP(tpu0_to0), |
| 2831 | SH_PFC_PIN_GROUP(tpu0_to1), |
| 2832 | SH_PFC_PIN_GROUP(tpu0_to2), |
| 2833 | SH_PFC_PIN_GROUP(tpu0_to3), |
| 2834 | SH_PFC_PIN_GROUP(tpu1_to0), |
| 2835 | SH_PFC_PIN_GROUP(tpu1_to1_0), |
| 2836 | SH_PFC_PIN_GROUP(tpu1_to1_1), |
| 2837 | SH_PFC_PIN_GROUP(tpu1_to2), |
| 2838 | SH_PFC_PIN_GROUP(tpu1_to3), |
| 2839 | SH_PFC_PIN_GROUP(tpu2_to0), |
| 2840 | SH_PFC_PIN_GROUP(tpu2_to1), |
| 2841 | SH_PFC_PIN_GROUP(tpu2_to2), |
| 2842 | SH_PFC_PIN_GROUP(tpu2_to3), |
| 2843 | SH_PFC_PIN_GROUP(tpu3_to0), |
| 2844 | SH_PFC_PIN_GROUP(tpu3_to1), |
| 2845 | SH_PFC_PIN_GROUP(tpu3_to2), |
| 2846 | SH_PFC_PIN_GROUP(tpu3_to3), |
| 2847 | SH_PFC_PIN_GROUP(tpu4_to0), |
| 2848 | SH_PFC_PIN_GROUP(tpu4_to1), |
| 2849 | SH_PFC_PIN_GROUP(tpu4_to2), |
| 2850 | SH_PFC_PIN_GROUP(tpu4_to3), |
| 2851 | SH_PFC_PIN_GROUP(usb_vbus), |
| 2852 | }; |
| 2853 | |
| 2854 | static const char * const bsc_groups[] = { |
| 2855 | "bsc_data_0_7", |
| 2856 | "bsc_data_8_15", |
| 2857 | "bsc_cs4", |
| 2858 | "bsc_cs5_a", |
| 2859 | "bsc_cs5_b", |
| 2860 | "bsc_cs6_a", |
| 2861 | "bsc_cs6_b", |
| 2862 | "bsc_rd", |
| 2863 | "bsc_rdwr_0", |
| 2864 | "bsc_rdwr_1", |
| 2865 | "bsc_rdwr_2", |
| 2866 | "bsc_we0", |
| 2867 | "bsc_we1", |
| 2868 | }; |
| 2869 | |
| 2870 | static const char * const fsia_groups[] = { |
| 2871 | "fsia_mclk_in", |
| 2872 | "fsia_mclk_out", |
| 2873 | "fsia_sclk_in", |
| 2874 | "fsia_sclk_out", |
| 2875 | "fsia_data_in", |
| 2876 | "fsia_data_out", |
| 2877 | "fsia_spdif", |
| 2878 | }; |
| 2879 | |
| 2880 | static const char * const fsib_groups[] = { |
| 2881 | "fsib_mclk_in", |
| 2882 | "fsib_mclk_out", |
| 2883 | "fsib_sclk_in", |
| 2884 | "fsib_sclk_out", |
| 2885 | "fsib_data_in", |
| 2886 | "fsib_data_out", |
| 2887 | "fsib_spdif", |
| 2888 | }; |
| 2889 | |
| 2890 | static const char * const fsic_groups[] = { |
| 2891 | "fsic_mclk_in", |
| 2892 | "fsic_mclk_out", |
| 2893 | "fsic_sclk_in", |
| 2894 | "fsic_sclk_out", |
| 2895 | "fsic_data_in", |
| 2896 | "fsic_data_out", |
| 2897 | "fsic_spdif", |
| 2898 | }; |
| 2899 | |
| 2900 | static const char * const fsid_groups[] = { |
| 2901 | "fsid_sclk_in", |
| 2902 | "fsid_sclk_out", |
| 2903 | "fsid_data_in", |
| 2904 | }; |
| 2905 | |
| 2906 | static const char * const i2c2_groups[] = { |
| 2907 | "i2c2_0", |
| 2908 | "i2c2_1", |
| 2909 | "i2c2_2", |
| 2910 | }; |
| 2911 | |
| 2912 | static const char * const i2c3_groups[] = { |
| 2913 | "i2c3_0", |
| 2914 | "i2c3_1", |
| 2915 | "i2c3_2", |
| 2916 | }; |
| 2917 | |
| 2918 | static const char * const irda_groups[] = { |
| 2919 | "irda_0", |
| 2920 | "irda_1", |
| 2921 | }; |
| 2922 | |
| 2923 | static const char * const keysc_groups[] = { |
| 2924 | "keysc_in5", |
| 2925 | "keysc_in6", |
| 2926 | "keysc_in7", |
| 2927 | "keysc_in8", |
| 2928 | "keysc_out04", |
| 2929 | "keysc_out5", |
| 2930 | "keysc_out6_0", |
| 2931 | "keysc_out6_1", |
| 2932 | "keysc_out6_2", |
| 2933 | "keysc_out7_0", |
| 2934 | "keysc_out7_1", |
| 2935 | "keysc_out7_2", |
| 2936 | "keysc_out8_0", |
| 2937 | "keysc_out8_1", |
| 2938 | "keysc_out8_2", |
| 2939 | "keysc_out9_0", |
| 2940 | "keysc_out9_1", |
| 2941 | "keysc_out9_2", |
| 2942 | "keysc_out10_0", |
| 2943 | "keysc_out10_1", |
| 2944 | "keysc_out11_0", |
| 2945 | "keysc_out11_1", |
| 2946 | }; |
| 2947 | |
| 2948 | static const char * const lcd_groups[] = { |
| 2949 | "lcd_data8", |
| 2950 | "lcd_data9", |
| 2951 | "lcd_data12", |
| 2952 | "lcd_data16", |
| 2953 | "lcd_data18", |
| 2954 | "lcd_data24", |
| 2955 | "lcd_display", |
| 2956 | "lcd_lclk", |
| 2957 | "lcd_sync", |
| 2958 | "lcd_sys", |
| 2959 | }; |
| 2960 | |
| 2961 | static const char * const lcd2_groups[] = { |
| 2962 | "lcd2_data8", |
| 2963 | "lcd2_data9", |
| 2964 | "lcd2_data12", |
| 2965 | "lcd2_data16", |
| 2966 | "lcd2_data18", |
| 2967 | "lcd2_data24", |
| 2968 | "lcd2_sync_0", |
| 2969 | "lcd2_sync_1", |
| 2970 | "lcd2_sys_0", |
| 2971 | "lcd2_sys_1", |
| 2972 | }; |
| 2973 | |
| 2974 | static const char * const mmc0_groups[] = { |
| 2975 | "mmc0_data1_0", |
| 2976 | "mmc0_data4_0", |
| 2977 | "mmc0_data8_0", |
| 2978 | "mmc0_ctrl_0", |
| 2979 | "mmc0_data1_1", |
| 2980 | "mmc0_data4_1", |
| 2981 | "mmc0_data8_1", |
| 2982 | "mmc0_ctrl_1", |
| 2983 | }; |
| 2984 | |
| 2985 | static const char * const scifa0_groups[] = { |
| 2986 | "scifa0_data", |
| 2987 | "scifa0_clk", |
| 2988 | "scifa0_ctrl", |
| 2989 | }; |
| 2990 | |
| 2991 | static const char * const scifa1_groups[] = { |
| 2992 | "scifa1_data", |
| 2993 | "scifa1_clk", |
| 2994 | "scifa1_ctrl", |
| 2995 | }; |
| 2996 | |
| 2997 | static const char * const scifa2_groups[] = { |
| 2998 | "scifa2_data_0", |
| 2999 | "scifa2_clk_0", |
| 3000 | "scifa2_ctrl_0", |
| 3001 | "scifa2_data_1", |
| 3002 | "scifa2_clk_1", |
| 3003 | "scifa2_ctrl_1", |
| 3004 | }; |
| 3005 | |
| 3006 | static const char * const scifa3_groups[] = { |
| 3007 | "scifa3_data", |
| 3008 | "scifa3_ctrl", |
| 3009 | }; |
| 3010 | |
| 3011 | static const char * const scifa4_groups[] = { |
| 3012 | "scifa4_data", |
| 3013 | "scifa4_ctrl", |
| 3014 | }; |
| 3015 | |
| 3016 | static const char * const scifa5_groups[] = { |
| 3017 | "scifa5_data_0", |
| 3018 | "scifa5_clk_0", |
| 3019 | "scifa5_ctrl_0", |
| 3020 | "scifa5_data_1", |
| 3021 | "scifa5_clk_1", |
| 3022 | "scifa5_ctrl_1", |
| 3023 | "scifa5_data_2", |
| 3024 | "scifa5_clk_2", |
| 3025 | "scifa5_ctrl_2", |
| 3026 | }; |
| 3027 | |
| 3028 | static const char * const scifa6_groups[] = { |
| 3029 | "scifa6", |
| 3030 | }; |
| 3031 | |
| 3032 | static const char * const scifa7_groups[] = { |
| 3033 | "scifa7_data", |
| 3034 | "scifa7_ctrl", |
| 3035 | }; |
| 3036 | |
| 3037 | static const char * const scifb_groups[] = { |
| 3038 | "scifb_data_0", |
| 3039 | "scifb_clk_0", |
| 3040 | "scifb_ctrl_0", |
| 3041 | "scifb_data_1", |
| 3042 | "scifb_clk_1", |
| 3043 | "scifb_ctrl_1", |
| 3044 | }; |
| 3045 | |
| 3046 | static const char * const sdhi0_groups[] = { |
| 3047 | "sdhi0_data1", |
| 3048 | "sdhi0_data4", |
| 3049 | "sdhi0_ctrl", |
| 3050 | "sdhi0_cd", |
| 3051 | "sdhi0_wp", |
| 3052 | }; |
| 3053 | |
| 3054 | static const char * const sdhi1_groups[] = { |
| 3055 | "sdhi1_data1", |
| 3056 | "sdhi1_data4", |
| 3057 | "sdhi1_ctrl", |
| 3058 | }; |
| 3059 | |
| 3060 | static const char * const sdhi2_groups[] = { |
| 3061 | "sdhi2_data1", |
| 3062 | "sdhi2_data4", |
| 3063 | "sdhi2_ctrl", |
| 3064 | }; |
| 3065 | |
| 3066 | static const char * const usb_groups[] = { |
| 3067 | "usb_vbus", |
| 3068 | }; |
| 3069 | |
| 3070 | static const char * const tpu0_groups[] = { |
| 3071 | "tpu0_to0", |
| 3072 | "tpu0_to1", |
| 3073 | "tpu0_to2", |
| 3074 | "tpu0_to3", |
| 3075 | }; |
| 3076 | |
| 3077 | static const char * const tpu1_groups[] = { |
| 3078 | "tpu1_to0", |
| 3079 | "tpu1_to1_0", |
| 3080 | "tpu1_to1_1", |
| 3081 | "tpu1_to2", |
| 3082 | "tpu1_to3", |
| 3083 | }; |
| 3084 | |
| 3085 | static const char * const tpu2_groups[] = { |
| 3086 | "tpu2_to0", |
| 3087 | "tpu2_to1", |
| 3088 | "tpu2_to2", |
| 3089 | "tpu2_to3", |
| 3090 | }; |
| 3091 | |
| 3092 | static const char * const tpu3_groups[] = { |
| 3093 | "tpu3_to0", |
| 3094 | "tpu3_to1", |
| 3095 | "tpu3_to2", |
| 3096 | "tpu3_to3", |
| 3097 | }; |
| 3098 | |
| 3099 | static const char * const tpu4_groups[] = { |
| 3100 | "tpu4_to0", |
| 3101 | "tpu4_to1", |
| 3102 | "tpu4_to2", |
| 3103 | "tpu4_to3", |
| 3104 | }; |
| 3105 | |
| 3106 | static const struct sh_pfc_function pinmux_functions[] = { |
| 3107 | SH_PFC_FUNCTION(bsc), |
| 3108 | SH_PFC_FUNCTION(fsia), |
| 3109 | SH_PFC_FUNCTION(fsib), |
| 3110 | SH_PFC_FUNCTION(fsic), |
| 3111 | SH_PFC_FUNCTION(fsid), |
| 3112 | SH_PFC_FUNCTION(i2c2), |
| 3113 | SH_PFC_FUNCTION(i2c3), |
| 3114 | SH_PFC_FUNCTION(irda), |
| 3115 | SH_PFC_FUNCTION(keysc), |
| 3116 | SH_PFC_FUNCTION(lcd), |
| 3117 | SH_PFC_FUNCTION(lcd2), |
| 3118 | SH_PFC_FUNCTION(mmc0), |
| 3119 | SH_PFC_FUNCTION(scifa0), |
| 3120 | SH_PFC_FUNCTION(scifa1), |
| 3121 | SH_PFC_FUNCTION(scifa2), |
| 3122 | SH_PFC_FUNCTION(scifa3), |
| 3123 | SH_PFC_FUNCTION(scifa4), |
| 3124 | SH_PFC_FUNCTION(scifa5), |
| 3125 | SH_PFC_FUNCTION(scifa6), |
| 3126 | SH_PFC_FUNCTION(scifa7), |
| 3127 | SH_PFC_FUNCTION(scifb), |
| 3128 | SH_PFC_FUNCTION(sdhi0), |
| 3129 | SH_PFC_FUNCTION(sdhi1), |
| 3130 | SH_PFC_FUNCTION(sdhi2), |
| 3131 | SH_PFC_FUNCTION(tpu0), |
| 3132 | SH_PFC_FUNCTION(tpu1), |
| 3133 | SH_PFC_FUNCTION(tpu2), |
| 3134 | SH_PFC_FUNCTION(tpu3), |
| 3135 | SH_PFC_FUNCTION(tpu4), |
| 3136 | SH_PFC_FUNCTION(usb), |
| 3137 | }; |
| 3138 | |
| 3139 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
| 3140 | PORTCR(0, 0xe6050000), /* PORT0CR */ |
| 3141 | PORTCR(1, 0xe6050001), /* PORT1CR */ |
| 3142 | PORTCR(2, 0xe6050002), /* PORT2CR */ |
| 3143 | PORTCR(3, 0xe6050003), /* PORT3CR */ |
| 3144 | PORTCR(4, 0xe6050004), /* PORT4CR */ |
| 3145 | PORTCR(5, 0xe6050005), /* PORT5CR */ |
| 3146 | PORTCR(6, 0xe6050006), /* PORT6CR */ |
| 3147 | PORTCR(7, 0xe6050007), /* PORT7CR */ |
| 3148 | PORTCR(8, 0xe6050008), /* PORT8CR */ |
| 3149 | PORTCR(9, 0xe6050009), /* PORT9CR */ |
| 3150 | |
| 3151 | PORTCR(10, 0xe605000a), /* PORT10CR */ |
| 3152 | PORTCR(11, 0xe605000b), /* PORT11CR */ |
| 3153 | PORTCR(12, 0xe605000c), /* PORT12CR */ |
| 3154 | PORTCR(13, 0xe605000d), /* PORT13CR */ |
| 3155 | PORTCR(14, 0xe605000e), /* PORT14CR */ |
| 3156 | PORTCR(15, 0xe605000f), /* PORT15CR */ |
| 3157 | PORTCR(16, 0xe6050010), /* PORT16CR */ |
| 3158 | PORTCR(17, 0xe6050011), /* PORT17CR */ |
| 3159 | PORTCR(18, 0xe6050012), /* PORT18CR */ |
| 3160 | PORTCR(19, 0xe6050013), /* PORT19CR */ |
| 3161 | |
| 3162 | PORTCR(20, 0xe6050014), /* PORT20CR */ |
| 3163 | PORTCR(21, 0xe6050015), /* PORT21CR */ |
| 3164 | PORTCR(22, 0xe6050016), /* PORT22CR */ |
| 3165 | PORTCR(23, 0xe6050017), /* PORT23CR */ |
| 3166 | PORTCR(24, 0xe6050018), /* PORT24CR */ |
| 3167 | PORTCR(25, 0xe6050019), /* PORT25CR */ |
| 3168 | PORTCR(26, 0xe605001a), /* PORT26CR */ |
| 3169 | PORTCR(27, 0xe605001b), /* PORT27CR */ |
| 3170 | PORTCR(28, 0xe605001c), /* PORT28CR */ |
| 3171 | PORTCR(29, 0xe605001d), /* PORT29CR */ |
| 3172 | |
| 3173 | PORTCR(30, 0xe605001e), /* PORT30CR */ |
| 3174 | PORTCR(31, 0xe605001f), /* PORT31CR */ |
| 3175 | PORTCR(32, 0xe6051020), /* PORT32CR */ |
| 3176 | PORTCR(33, 0xe6051021), /* PORT33CR */ |
| 3177 | PORTCR(34, 0xe6051022), /* PORT34CR */ |
| 3178 | PORTCR(35, 0xe6051023), /* PORT35CR */ |
| 3179 | PORTCR(36, 0xe6051024), /* PORT36CR */ |
| 3180 | PORTCR(37, 0xe6051025), /* PORT37CR */ |
| 3181 | PORTCR(38, 0xe6051026), /* PORT38CR */ |
| 3182 | PORTCR(39, 0xe6051027), /* PORT39CR */ |
| 3183 | |
| 3184 | PORTCR(40, 0xe6051028), /* PORT40CR */ |
| 3185 | PORTCR(41, 0xe6051029), /* PORT41CR */ |
| 3186 | PORTCR(42, 0xe605102a), /* PORT42CR */ |
| 3187 | PORTCR(43, 0xe605102b), /* PORT43CR */ |
| 3188 | PORTCR(44, 0xe605102c), /* PORT44CR */ |
| 3189 | PORTCR(45, 0xe605102d), /* PORT45CR */ |
| 3190 | PORTCR(46, 0xe605102e), /* PORT46CR */ |
| 3191 | PORTCR(47, 0xe605102f), /* PORT47CR */ |
| 3192 | PORTCR(48, 0xe6051030), /* PORT48CR */ |
| 3193 | PORTCR(49, 0xe6051031), /* PORT49CR */ |
| 3194 | |
| 3195 | PORTCR(50, 0xe6051032), /* PORT50CR */ |
| 3196 | PORTCR(51, 0xe6051033), /* PORT51CR */ |
| 3197 | PORTCR(52, 0xe6051034), /* PORT52CR */ |
| 3198 | PORTCR(53, 0xe6051035), /* PORT53CR */ |
| 3199 | PORTCR(54, 0xe6051036), /* PORT54CR */ |
| 3200 | PORTCR(55, 0xe6051037), /* PORT55CR */ |
| 3201 | PORTCR(56, 0xe6051038), /* PORT56CR */ |
| 3202 | PORTCR(57, 0xe6051039), /* PORT57CR */ |
| 3203 | PORTCR(58, 0xe605103a), /* PORT58CR */ |
| 3204 | PORTCR(59, 0xe605103b), /* PORT59CR */ |
| 3205 | |
| 3206 | PORTCR(60, 0xe605103c), /* PORT60CR */ |
| 3207 | PORTCR(61, 0xe605103d), /* PORT61CR */ |
| 3208 | PORTCR(62, 0xe605103e), /* PORT62CR */ |
| 3209 | PORTCR(63, 0xe605103f), /* PORT63CR */ |
| 3210 | PORTCR(64, 0xe6051040), /* PORT64CR */ |
| 3211 | PORTCR(65, 0xe6051041), /* PORT65CR */ |
| 3212 | PORTCR(66, 0xe6051042), /* PORT66CR */ |
| 3213 | PORTCR(67, 0xe6051043), /* PORT67CR */ |
| 3214 | PORTCR(68, 0xe6051044), /* PORT68CR */ |
| 3215 | PORTCR(69, 0xe6051045), /* PORT69CR */ |
| 3216 | |
| 3217 | PORTCR(70, 0xe6051046), /* PORT70CR */ |
| 3218 | PORTCR(71, 0xe6051047), /* PORT71CR */ |
| 3219 | PORTCR(72, 0xe6051048), /* PORT72CR */ |
| 3220 | PORTCR(73, 0xe6051049), /* PORT73CR */ |
| 3221 | PORTCR(74, 0xe605104a), /* PORT74CR */ |
| 3222 | PORTCR(75, 0xe605104b), /* PORT75CR */ |
| 3223 | PORTCR(76, 0xe605104c), /* PORT76CR */ |
| 3224 | PORTCR(77, 0xe605104d), /* PORT77CR */ |
| 3225 | PORTCR(78, 0xe605104e), /* PORT78CR */ |
| 3226 | PORTCR(79, 0xe605104f), /* PORT79CR */ |
| 3227 | |
| 3228 | PORTCR(80, 0xe6051050), /* PORT80CR */ |
| 3229 | PORTCR(81, 0xe6051051), /* PORT81CR */ |
| 3230 | PORTCR(82, 0xe6051052), /* PORT82CR */ |
| 3231 | PORTCR(83, 0xe6051053), /* PORT83CR */ |
| 3232 | PORTCR(84, 0xe6051054), /* PORT84CR */ |
| 3233 | PORTCR(85, 0xe6051055), /* PORT85CR */ |
| 3234 | PORTCR(86, 0xe6051056), /* PORT86CR */ |
| 3235 | PORTCR(87, 0xe6051057), /* PORT87CR */ |
| 3236 | PORTCR(88, 0xe6051058), /* PORT88CR */ |
| 3237 | PORTCR(89, 0xe6051059), /* PORT89CR */ |
| 3238 | |
| 3239 | PORTCR(90, 0xe605105a), /* PORT90CR */ |
| 3240 | PORTCR(91, 0xe605105b), /* PORT91CR */ |
| 3241 | PORTCR(92, 0xe605105c), /* PORT92CR */ |
| 3242 | PORTCR(93, 0xe605105d), /* PORT93CR */ |
| 3243 | PORTCR(94, 0xe605105e), /* PORT94CR */ |
| 3244 | PORTCR(95, 0xe605105f), /* PORT95CR */ |
| 3245 | PORTCR(96, 0xe6052060), /* PORT96CR */ |
| 3246 | PORTCR(97, 0xe6052061), /* PORT97CR */ |
| 3247 | PORTCR(98, 0xe6052062), /* PORT98CR */ |
| 3248 | PORTCR(99, 0xe6052063), /* PORT99CR */ |
| 3249 | |
| 3250 | PORTCR(100, 0xe6052064), /* PORT100CR */ |
| 3251 | PORTCR(101, 0xe6052065), /* PORT101CR */ |
| 3252 | PORTCR(102, 0xe6052066), /* PORT102CR */ |
| 3253 | PORTCR(103, 0xe6052067), /* PORT103CR */ |
| 3254 | PORTCR(104, 0xe6052068), /* PORT104CR */ |
| 3255 | PORTCR(105, 0xe6052069), /* PORT105CR */ |
| 3256 | PORTCR(106, 0xe605206a), /* PORT106CR */ |
| 3257 | PORTCR(107, 0xe605206b), /* PORT107CR */ |
| 3258 | PORTCR(108, 0xe605206c), /* PORT108CR */ |
| 3259 | PORTCR(109, 0xe605206d), /* PORT109CR */ |
| 3260 | |
| 3261 | PORTCR(110, 0xe605206e), /* PORT110CR */ |
| 3262 | PORTCR(111, 0xe605206f), /* PORT111CR */ |
| 3263 | PORTCR(112, 0xe6052070), /* PORT112CR */ |
| 3264 | PORTCR(113, 0xe6052071), /* PORT113CR */ |
| 3265 | PORTCR(114, 0xe6052072), /* PORT114CR */ |
| 3266 | PORTCR(115, 0xe6052073), /* PORT115CR */ |
| 3267 | PORTCR(116, 0xe6052074), /* PORT116CR */ |
| 3268 | PORTCR(117, 0xe6052075), /* PORT117CR */ |
| 3269 | PORTCR(118, 0xe6052076), /* PORT118CR */ |
| 3270 | |
| 3271 | PORTCR(128, 0xe6052080), /* PORT128CR */ |
| 3272 | PORTCR(129, 0xe6052081), /* PORT129CR */ |
| 3273 | |
| 3274 | PORTCR(130, 0xe6052082), /* PORT130CR */ |
| 3275 | PORTCR(131, 0xe6052083), /* PORT131CR */ |
| 3276 | PORTCR(132, 0xe6052084), /* PORT132CR */ |
| 3277 | PORTCR(133, 0xe6052085), /* PORT133CR */ |
| 3278 | PORTCR(134, 0xe6052086), /* PORT134CR */ |
| 3279 | PORTCR(135, 0xe6052087), /* PORT135CR */ |
| 3280 | PORTCR(136, 0xe6052088), /* PORT136CR */ |
| 3281 | PORTCR(137, 0xe6052089), /* PORT137CR */ |
| 3282 | PORTCR(138, 0xe605208a), /* PORT138CR */ |
| 3283 | PORTCR(139, 0xe605208b), /* PORT139CR */ |
| 3284 | |
| 3285 | PORTCR(140, 0xe605208c), /* PORT140CR */ |
| 3286 | PORTCR(141, 0xe605208d), /* PORT141CR */ |
| 3287 | PORTCR(142, 0xe605208e), /* PORT142CR */ |
| 3288 | PORTCR(143, 0xe605208f), /* PORT143CR */ |
| 3289 | PORTCR(144, 0xe6052090), /* PORT144CR */ |
| 3290 | PORTCR(145, 0xe6052091), /* PORT145CR */ |
| 3291 | PORTCR(146, 0xe6052092), /* PORT146CR */ |
| 3292 | PORTCR(147, 0xe6052093), /* PORT147CR */ |
| 3293 | PORTCR(148, 0xe6052094), /* PORT148CR */ |
| 3294 | PORTCR(149, 0xe6052095), /* PORT149CR */ |
| 3295 | |
| 3296 | PORTCR(150, 0xe6052096), /* PORT150CR */ |
| 3297 | PORTCR(151, 0xe6052097), /* PORT151CR */ |
| 3298 | PORTCR(152, 0xe6052098), /* PORT152CR */ |
| 3299 | PORTCR(153, 0xe6052099), /* PORT153CR */ |
| 3300 | PORTCR(154, 0xe605209a), /* PORT154CR */ |
| 3301 | PORTCR(155, 0xe605209b), /* PORT155CR */ |
| 3302 | PORTCR(156, 0xe605209c), /* PORT156CR */ |
| 3303 | PORTCR(157, 0xe605209d), /* PORT157CR */ |
| 3304 | PORTCR(158, 0xe605209e), /* PORT158CR */ |
| 3305 | PORTCR(159, 0xe605209f), /* PORT159CR */ |
| 3306 | |
| 3307 | PORTCR(160, 0xe60520a0), /* PORT160CR */ |
| 3308 | PORTCR(161, 0xe60520a1), /* PORT161CR */ |
| 3309 | PORTCR(162, 0xe60520a2), /* PORT162CR */ |
| 3310 | PORTCR(163, 0xe60520a3), /* PORT163CR */ |
| 3311 | PORTCR(164, 0xe60520a4), /* PORT164CR */ |
| 3312 | |
| 3313 | PORTCR(192, 0xe60520c0), /* PORT192CR */ |
| 3314 | PORTCR(193, 0xe60520c1), /* PORT193CR */ |
| 3315 | PORTCR(194, 0xe60520c2), /* PORT194CR */ |
| 3316 | PORTCR(195, 0xe60520c3), /* PORT195CR */ |
| 3317 | PORTCR(196, 0xe60520c4), /* PORT196CR */ |
| 3318 | PORTCR(197, 0xe60520c5), /* PORT197CR */ |
| 3319 | PORTCR(198, 0xe60520c6), /* PORT198CR */ |
| 3320 | PORTCR(199, 0xe60520c7), /* PORT199CR */ |
| 3321 | |
| 3322 | PORTCR(200, 0xe60520c8), /* PORT200CR */ |
| 3323 | PORTCR(201, 0xe60520c9), /* PORT201CR */ |
| 3324 | PORTCR(202, 0xe60520ca), /* PORT202CR */ |
| 3325 | PORTCR(203, 0xe60520cb), /* PORT203CR */ |
| 3326 | PORTCR(204, 0xe60520cc), /* PORT204CR */ |
| 3327 | PORTCR(205, 0xe60520cd), /* PORT205CR */ |
| 3328 | PORTCR(206, 0xe60520ce), /* PORT206CR */ |
| 3329 | PORTCR(207, 0xe60520cf), /* PORT207CR */ |
| 3330 | PORTCR(208, 0xe60520d0), /* PORT208CR */ |
| 3331 | PORTCR(209, 0xe60520d1), /* PORT209CR */ |
| 3332 | |
| 3333 | PORTCR(210, 0xe60520d2), /* PORT210CR */ |
| 3334 | PORTCR(211, 0xe60520d3), /* PORT211CR */ |
| 3335 | PORTCR(212, 0xe60520d4), /* PORT212CR */ |
| 3336 | PORTCR(213, 0xe60520d5), /* PORT213CR */ |
| 3337 | PORTCR(214, 0xe60520d6), /* PORT214CR */ |
| 3338 | PORTCR(215, 0xe60520d7), /* PORT215CR */ |
| 3339 | PORTCR(216, 0xe60520d8), /* PORT216CR */ |
| 3340 | PORTCR(217, 0xe60520d9), /* PORT217CR */ |
| 3341 | PORTCR(218, 0xe60520da), /* PORT218CR */ |
| 3342 | PORTCR(219, 0xe60520db), /* PORT219CR */ |
| 3343 | |
| 3344 | PORTCR(220, 0xe60520dc), /* PORT220CR */ |
| 3345 | PORTCR(221, 0xe60520dd), /* PORT221CR */ |
| 3346 | PORTCR(222, 0xe60520de), /* PORT222CR */ |
| 3347 | PORTCR(223, 0xe60520df), /* PORT223CR */ |
| 3348 | PORTCR(224, 0xe60530e0), /* PORT224CR */ |
| 3349 | PORTCR(225, 0xe60530e1), /* PORT225CR */ |
| 3350 | PORTCR(226, 0xe60530e2), /* PORT226CR */ |
| 3351 | PORTCR(227, 0xe60530e3), /* PORT227CR */ |
| 3352 | PORTCR(228, 0xe60530e4), /* PORT228CR */ |
| 3353 | PORTCR(229, 0xe60530e5), /* PORT229CR */ |
| 3354 | |
| 3355 | PORTCR(230, 0xe60530e6), /* PORT230CR */ |
| 3356 | PORTCR(231, 0xe60530e7), /* PORT231CR */ |
| 3357 | PORTCR(232, 0xe60530e8), /* PORT232CR */ |
| 3358 | PORTCR(233, 0xe60530e9), /* PORT233CR */ |
| 3359 | PORTCR(234, 0xe60530ea), /* PORT234CR */ |
| 3360 | PORTCR(235, 0xe60530eb), /* PORT235CR */ |
| 3361 | PORTCR(236, 0xe60530ec), /* PORT236CR */ |
| 3362 | PORTCR(237, 0xe60530ed), /* PORT237CR */ |
| 3363 | PORTCR(238, 0xe60530ee), /* PORT238CR */ |
| 3364 | PORTCR(239, 0xe60530ef), /* PORT239CR */ |
| 3365 | |
| 3366 | PORTCR(240, 0xe60530f0), /* PORT240CR */ |
| 3367 | PORTCR(241, 0xe60530f1), /* PORT241CR */ |
| 3368 | PORTCR(242, 0xe60530f2), /* PORT242CR */ |
| 3369 | PORTCR(243, 0xe60530f3), /* PORT243CR */ |
| 3370 | PORTCR(244, 0xe60530f4), /* PORT244CR */ |
| 3371 | PORTCR(245, 0xe60530f5), /* PORT245CR */ |
| 3372 | PORTCR(246, 0xe60530f6), /* PORT246CR */ |
| 3373 | PORTCR(247, 0xe60530f7), /* PORT247CR */ |
| 3374 | PORTCR(248, 0xe60530f8), /* PORT248CR */ |
| 3375 | PORTCR(249, 0xe60530f9), /* PORT249CR */ |
| 3376 | |
| 3377 | PORTCR(250, 0xe60530fa), /* PORT250CR */ |
| 3378 | PORTCR(251, 0xe60530fb), /* PORT251CR */ |
| 3379 | PORTCR(252, 0xe60530fc), /* PORT252CR */ |
| 3380 | PORTCR(253, 0xe60530fd), /* PORT253CR */ |
| 3381 | PORTCR(254, 0xe60530fe), /* PORT254CR */ |
| 3382 | PORTCR(255, 0xe60530ff), /* PORT255CR */ |
| 3383 | PORTCR(256, 0xe6053100), /* PORT256CR */ |
| 3384 | PORTCR(257, 0xe6053101), /* PORT257CR */ |
| 3385 | PORTCR(258, 0xe6053102), /* PORT258CR */ |
| 3386 | PORTCR(259, 0xe6053103), /* PORT259CR */ |
| 3387 | |
| 3388 | PORTCR(260, 0xe6053104), /* PORT260CR */ |
| 3389 | PORTCR(261, 0xe6053105), /* PORT261CR */ |
| 3390 | PORTCR(262, 0xe6053106), /* PORT262CR */ |
| 3391 | PORTCR(263, 0xe6053107), /* PORT263CR */ |
| 3392 | PORTCR(264, 0xe6053108), /* PORT264CR */ |
| 3393 | PORTCR(265, 0xe6053109), /* PORT265CR */ |
| 3394 | PORTCR(266, 0xe605310a), /* PORT266CR */ |
| 3395 | PORTCR(267, 0xe605310b), /* PORT267CR */ |
| 3396 | PORTCR(268, 0xe605310c), /* PORT268CR */ |
| 3397 | PORTCR(269, 0xe605310d), /* PORT269CR */ |
| 3398 | |
| 3399 | PORTCR(270, 0xe605310e), /* PORT270CR */ |
| 3400 | PORTCR(271, 0xe605310f), /* PORT271CR */ |
| 3401 | PORTCR(272, 0xe6053110), /* PORT272CR */ |
| 3402 | PORTCR(273, 0xe6053111), /* PORT273CR */ |
| 3403 | PORTCR(274, 0xe6053112), /* PORT274CR */ |
| 3404 | PORTCR(275, 0xe6053113), /* PORT275CR */ |
| 3405 | PORTCR(276, 0xe6053114), /* PORT276CR */ |
| 3406 | PORTCR(277, 0xe6053115), /* PORT277CR */ |
| 3407 | PORTCR(278, 0xe6053116), /* PORT278CR */ |
| 3408 | PORTCR(279, 0xe6053117), /* PORT279CR */ |
| 3409 | |
| 3410 | PORTCR(280, 0xe6053118), /* PORT280CR */ |
| 3411 | PORTCR(281, 0xe6053119), /* PORT281CR */ |
| 3412 | PORTCR(282, 0xe605311a), /* PORT282CR */ |
| 3413 | |
| 3414 | PORTCR(288, 0xe6052120), /* PORT288CR */ |
| 3415 | PORTCR(289, 0xe6052121), /* PORT289CR */ |
| 3416 | |
| 3417 | PORTCR(290, 0xe6052122), /* PORT290CR */ |
| 3418 | PORTCR(291, 0xe6052123), /* PORT291CR */ |
| 3419 | PORTCR(292, 0xe6052124), /* PORT292CR */ |
| 3420 | PORTCR(293, 0xe6052125), /* PORT293CR */ |
| 3421 | PORTCR(294, 0xe6052126), /* PORT294CR */ |
| 3422 | PORTCR(295, 0xe6052127), /* PORT295CR */ |
| 3423 | PORTCR(296, 0xe6052128), /* PORT296CR */ |
| 3424 | PORTCR(297, 0xe6052129), /* PORT297CR */ |
| 3425 | PORTCR(298, 0xe605212a), /* PORT298CR */ |
| 3426 | PORTCR(299, 0xe605212b), /* PORT299CR */ |
| 3427 | |
| 3428 | PORTCR(300, 0xe605212c), /* PORT300CR */ |
| 3429 | PORTCR(301, 0xe605212d), /* PORT301CR */ |
| 3430 | PORTCR(302, 0xe605212e), /* PORT302CR */ |
| 3431 | PORTCR(303, 0xe605212f), /* PORT303CR */ |
| 3432 | PORTCR(304, 0xe6052130), /* PORT304CR */ |
| 3433 | PORTCR(305, 0xe6052131), /* PORT305CR */ |
| 3434 | PORTCR(306, 0xe6052132), /* PORT306CR */ |
| 3435 | PORTCR(307, 0xe6052133), /* PORT307CR */ |
| 3436 | PORTCR(308, 0xe6052134), /* PORT308CR */ |
| 3437 | PORTCR(309, 0xe6052135), /* PORT309CR */ |
| 3438 | |
| 3439 | { PINMUX_CFG_REG("MSEL2CR", 0xe605801c, 32, 1) { |
| 3440 | 0, 0, |
| 3441 | 0, 0, |
| 3442 | 0, 0, |
| 3443 | 0, 0, |
| 3444 | 0, 0, |
| 3445 | 0, 0, |
| 3446 | 0, 0, |
| 3447 | 0, 0, |
| 3448 | 0, 0, |
| 3449 | 0, 0, |
| 3450 | 0, 0, |
| 3451 | 0, 0, |
| 3452 | MSEL2CR_MSEL19_0, MSEL2CR_MSEL19_1, |
| 3453 | MSEL2CR_MSEL18_0, MSEL2CR_MSEL18_1, |
| 3454 | MSEL2CR_MSEL17_0, MSEL2CR_MSEL17_1, |
| 3455 | MSEL2CR_MSEL16_0, MSEL2CR_MSEL16_1, |
| 3456 | 0, 0, |
| 3457 | MSEL2CR_MSEL14_0, MSEL2CR_MSEL14_1, |
| 3458 | MSEL2CR_MSEL13_0, MSEL2CR_MSEL13_1, |
| 3459 | MSEL2CR_MSEL12_0, MSEL2CR_MSEL12_1, |
| 3460 | MSEL2CR_MSEL11_0, MSEL2CR_MSEL11_1, |
| 3461 | MSEL2CR_MSEL10_0, MSEL2CR_MSEL10_1, |
| 3462 | MSEL2CR_MSEL9_0, MSEL2CR_MSEL9_1, |
| 3463 | MSEL2CR_MSEL8_0, MSEL2CR_MSEL8_1, |
| 3464 | MSEL2CR_MSEL7_0, MSEL2CR_MSEL7_1, |
| 3465 | MSEL2CR_MSEL6_0, MSEL2CR_MSEL6_1, |
| 3466 | MSEL2CR_MSEL5_0, MSEL2CR_MSEL5_1, |
| 3467 | MSEL2CR_MSEL4_0, MSEL2CR_MSEL4_1, |
| 3468 | MSEL2CR_MSEL3_0, MSEL2CR_MSEL3_1, |
| 3469 | MSEL2CR_MSEL2_0, MSEL2CR_MSEL2_1, |
| 3470 | MSEL2CR_MSEL1_0, MSEL2CR_MSEL1_1, |
| 3471 | MSEL2CR_MSEL0_0, MSEL2CR_MSEL0_1, |
| 3472 | } |
| 3473 | }, |
| 3474 | { PINMUX_CFG_REG("MSEL3CR", 0xe6058020, 32, 1) { |
| 3475 | 0, 0, |
| 3476 | 0, 0, |
| 3477 | 0, 0, |
| 3478 | MSEL3CR_MSEL28_0, MSEL3CR_MSEL28_1, |
| 3479 | 0, 0, |
| 3480 | 0, 0, |
| 3481 | 0, 0, |
| 3482 | 0, 0, |
| 3483 | 0, 0, |
| 3484 | 0, 0, |
| 3485 | 0, 0, |
| 3486 | 0, 0, |
| 3487 | 0, 0, |
| 3488 | 0, 0, |
| 3489 | 0, 0, |
| 3490 | 0, 0, |
| 3491 | MSEL3CR_MSEL15_0, MSEL3CR_MSEL15_1, |
| 3492 | 0, 0, |
| 3493 | 0, 0, |
| 3494 | 0, 0, |
| 3495 | MSEL3CR_MSEL11_0, MSEL3CR_MSEL11_1, |
| 3496 | 0, 0, |
| 3497 | MSEL3CR_MSEL9_0, MSEL3CR_MSEL9_1, |
| 3498 | 0, 0, |
| 3499 | 0, 0, |
| 3500 | MSEL3CR_MSEL6_0, MSEL3CR_MSEL6_1, |
| 3501 | 0, 0, |
| 3502 | 0, 0, |
| 3503 | 0, 0, |
| 3504 | MSEL3CR_MSEL2_0, MSEL3CR_MSEL2_1, |
| 3505 | 0, 0, |
| 3506 | 0, 0, |
| 3507 | } |
| 3508 | }, |
| 3509 | { PINMUX_CFG_REG("MSEL4CR", 0xe6058024, 32, 1) { |
| 3510 | 0, 0, |
| 3511 | 0, 0, |
| 3512 | MSEL4CR_MSEL29_0, MSEL4CR_MSEL29_1, |
| 3513 | 0, 0, |
| 3514 | MSEL4CR_MSEL27_0, MSEL4CR_MSEL27_1, |
| 3515 | MSEL4CR_MSEL26_0, MSEL4CR_MSEL26_1, |
| 3516 | 0, 0, |
| 3517 | 0, 0, |
| 3518 | 0, 0, |
| 3519 | MSEL4CR_MSEL22_0, MSEL4CR_MSEL22_1, |
| 3520 | MSEL4CR_MSEL21_0, MSEL4CR_MSEL21_1, |
| 3521 | MSEL4CR_MSEL20_0, MSEL4CR_MSEL20_1, |
| 3522 | MSEL4CR_MSEL19_0, MSEL4CR_MSEL19_1, |
| 3523 | 0, 0, |
| 3524 | 0, 0, |
| 3525 | 0, 0, |
| 3526 | MSEL4CR_MSEL15_0, MSEL4CR_MSEL15_1, |
| 3527 | 0, 0, |
| 3528 | MSEL4CR_MSEL13_0, MSEL4CR_MSEL13_1, |
| 3529 | MSEL4CR_MSEL12_0, MSEL4CR_MSEL12_1, |
| 3530 | MSEL4CR_MSEL11_0, MSEL4CR_MSEL11_1, |
| 3531 | MSEL4CR_MSEL10_0, MSEL4CR_MSEL10_1, |
| 3532 | MSEL4CR_MSEL9_0, MSEL4CR_MSEL9_1, |
| 3533 | MSEL4CR_MSEL8_0, MSEL4CR_MSEL8_1, |
| 3534 | MSEL4CR_MSEL7_0, MSEL4CR_MSEL7_1, |
| 3535 | 0, 0, |
| 3536 | 0, 0, |
| 3537 | MSEL4CR_MSEL4_0, MSEL4CR_MSEL4_1, |
| 3538 | 0, 0, |
| 3539 | 0, 0, |
| 3540 | MSEL4CR_MSEL1_0, MSEL4CR_MSEL1_1, |
| 3541 | 0, 0, |
| 3542 | } |
| 3543 | }, |
| 3544 | { }, |
| 3545 | }; |
| 3546 | |
| 3547 | static const struct pinmux_data_reg pinmux_data_regs[] = { |
| 3548 | { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054000, 32) { |
| 3549 | PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA, |
| 3550 | PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA, |
| 3551 | PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA, |
| 3552 | PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA, |
| 3553 | PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA, |
| 3554 | PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA, |
| 3555 | PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA, |
| 3556 | PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA } |
| 3557 | }, |
| 3558 | { PINMUX_DATA_REG("PORTD063_032DR", 0xe6055000, 32) { |
| 3559 | PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA, |
| 3560 | PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA, |
| 3561 | PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA, |
| 3562 | PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA, |
| 3563 | PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA, |
| 3564 | PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA, |
| 3565 | PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA, |
| 3566 | PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA } |
| 3567 | }, |
| 3568 | { PINMUX_DATA_REG("PORTD095_064DR", 0xe6055004, 32) { |
| 3569 | PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA, |
| 3570 | PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA, |
| 3571 | PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA, |
| 3572 | PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA, |
| 3573 | PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA, |
| 3574 | PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA, |
| 3575 | PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA, |
| 3576 | PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA } |
| 3577 | }, |
| 3578 | { PINMUX_DATA_REG("PORTR127_096DR", 0xe6056000, 32) { |
| 3579 | 0, 0, 0, 0, |
| 3580 | 0, 0, 0, 0, |
| 3581 | 0, PORT118_DATA, PORT117_DATA, PORT116_DATA, |
| 3582 | PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA, |
| 3583 | PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA, |
| 3584 | PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA, |
| 3585 | PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA, |
| 3586 | PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA } |
| 3587 | }, |
| 3588 | { PINMUX_DATA_REG("PORTR159_128DR", 0xe6056004, 32) { |
| 3589 | PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA, |
| 3590 | PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA, |
| 3591 | PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA, |
| 3592 | PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA, |
| 3593 | PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA, |
| 3594 | PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA, |
| 3595 | PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA, |
| 3596 | PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA } |
| 3597 | }, |
| 3598 | { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056008, 32) { |
| 3599 | 0, 0, 0, 0, |
| 3600 | 0, 0, 0, 0, |
| 3601 | 0, 0, 0, 0, |
| 3602 | 0, 0, 0, 0, |
| 3603 | 0, 0, 0, 0, |
| 3604 | 0, 0, 0, 0, |
| 3605 | 0, 0, 0, PORT164_DATA, |
| 3606 | PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA } |
| 3607 | }, |
| 3608 | { PINMUX_DATA_REG("PORTR223_192DR", 0xe605600C, 32) { |
| 3609 | PORT223_DATA, PORT222_DATA, PORT221_DATA, PORT220_DATA, |
| 3610 | PORT219_DATA, PORT218_DATA, PORT217_DATA, PORT216_DATA, |
| 3611 | PORT215_DATA, PORT214_DATA, PORT213_DATA, PORT212_DATA, |
| 3612 | PORT211_DATA, PORT210_DATA, PORT209_DATA, PORT208_DATA, |
| 3613 | PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA, |
| 3614 | PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA, |
| 3615 | PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA, |
| 3616 | PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA } |
| 3617 | }, |
| 3618 | { PINMUX_DATA_REG("PORTU255_224DR", 0xe6057000, 32) { |
| 3619 | PORT255_DATA, PORT254_DATA, PORT253_DATA, PORT252_DATA, |
| 3620 | PORT251_DATA, PORT250_DATA, PORT249_DATA, PORT248_DATA, |
| 3621 | PORT247_DATA, PORT246_DATA, PORT245_DATA, PORT244_DATA, |
| 3622 | PORT243_DATA, PORT242_DATA, PORT241_DATA, PORT240_DATA, |
| 3623 | PORT239_DATA, PORT238_DATA, PORT237_DATA, PORT236_DATA, |
| 3624 | PORT235_DATA, PORT234_DATA, PORT233_DATA, PORT232_DATA, |
| 3625 | PORT231_DATA, PORT230_DATA, PORT229_DATA, PORT228_DATA, |
| 3626 | PORT227_DATA, PORT226_DATA, PORT225_DATA, PORT224_DATA } |
| 3627 | }, |
| 3628 | { PINMUX_DATA_REG("PORTU287_256DR", 0xe6057004, 32) { |
| 3629 | 0, 0, 0, 0, |
| 3630 | 0, PORT282_DATA, PORT281_DATA, PORT280_DATA, |
| 3631 | PORT279_DATA, PORT278_DATA, PORT277_DATA, PORT276_DATA, |
| 3632 | PORT275_DATA, PORT274_DATA, PORT273_DATA, PORT272_DATA, |
| 3633 | PORT271_DATA, PORT270_DATA, PORT269_DATA, PORT268_DATA, |
| 3634 | PORT267_DATA, PORT266_DATA, PORT265_DATA, PORT264_DATA, |
| 3635 | PORT263_DATA, PORT262_DATA, PORT261_DATA, PORT260_DATA, |
| 3636 | PORT259_DATA, PORT258_DATA, PORT257_DATA, PORT256_DATA } |
| 3637 | }, |
| 3638 | { PINMUX_DATA_REG("PORTR319_288DR", 0xe6056010, 32) { |
| 3639 | 0, 0, 0, 0, |
| 3640 | 0, 0, 0, 0, |
| 3641 | 0, 0, PORT309_DATA, PORT308_DATA, |
| 3642 | PORT307_DATA, PORT306_DATA, PORT305_DATA, PORT304_DATA, |
| 3643 | PORT303_DATA, PORT302_DATA, PORT301_DATA, PORT300_DATA, |
| 3644 | PORT299_DATA, PORT298_DATA, PORT297_DATA, PORT296_DATA, |
| 3645 | PORT295_DATA, PORT294_DATA, PORT293_DATA, PORT292_DATA, |
| 3646 | PORT291_DATA, PORT290_DATA, PORT289_DATA, PORT288_DATA } |
| 3647 | }, |
| 3648 | { }, |
| 3649 | }; |
| 3650 | |
| 3651 | static const struct pinmux_irq pinmux_irqs[] = { |
| 3652 | PINMUX_IRQ(11), /* IRQ0 */ |
| 3653 | PINMUX_IRQ(10), /* IRQ1 */ |
| 3654 | PINMUX_IRQ(149), /* IRQ2 */ |
| 3655 | PINMUX_IRQ(224), /* IRQ3 */ |
| 3656 | PINMUX_IRQ(159), /* IRQ4 */ |
| 3657 | PINMUX_IRQ(227), /* IRQ5 */ |
| 3658 | PINMUX_IRQ(147), /* IRQ6 */ |
| 3659 | PINMUX_IRQ(150), /* IRQ7 */ |
| 3660 | PINMUX_IRQ(223), /* IRQ8 */ |
| 3661 | PINMUX_IRQ(56, 308), /* IRQ9 */ |
| 3662 | PINMUX_IRQ(54), /* IRQ10 */ |
| 3663 | PINMUX_IRQ(238), /* IRQ11 */ |
| 3664 | PINMUX_IRQ(156), /* IRQ12 */ |
| 3665 | PINMUX_IRQ(239), /* IRQ13 */ |
| 3666 | PINMUX_IRQ(251), /* IRQ14 */ |
| 3667 | PINMUX_IRQ(0), /* IRQ15 */ |
| 3668 | PINMUX_IRQ(249), /* IRQ16 */ |
| 3669 | PINMUX_IRQ(234), /* IRQ17 */ |
| 3670 | PINMUX_IRQ(13), /* IRQ18 */ |
| 3671 | PINMUX_IRQ(9), /* IRQ19 */ |
| 3672 | PINMUX_IRQ(14), /* IRQ20 */ |
| 3673 | PINMUX_IRQ(15), /* IRQ21 */ |
| 3674 | PINMUX_IRQ(40), /* IRQ22 */ |
| 3675 | PINMUX_IRQ(53), /* IRQ23 */ |
| 3676 | PINMUX_IRQ(118), /* IRQ24 */ |
| 3677 | PINMUX_IRQ(164), /* IRQ25 */ |
| 3678 | PINMUX_IRQ(115), /* IRQ26 */ |
| 3679 | PINMUX_IRQ(116), /* IRQ27 */ |
| 3680 | PINMUX_IRQ(117), /* IRQ28 */ |
| 3681 | PINMUX_IRQ(28), /* IRQ29 */ |
| 3682 | PINMUX_IRQ(27), /* IRQ30 */ |
| 3683 | PINMUX_IRQ(26), /* IRQ31 */ |
| 3684 | }; |
| 3685 | |
| 3686 | /* ----------------------------------------------------------------------------- |
| 3687 | * VCCQ MC0 regulator |
| 3688 | */ |
| 3689 | |
| 3690 | static void sh73a0_vccq_mc0_endisable(struct regulator_dev *reg, bool enable) |
| 3691 | { |
| 3692 | struct sh_pfc *pfc = reg->reg_data; |
| 3693 | void __iomem *addr = pfc->windows[1].virt + 4; |
| 3694 | unsigned long flags; |
| 3695 | u32 value; |
| 3696 | |
| 3697 | spin_lock_irqsave(&pfc->lock, flags); |
| 3698 | |
| 3699 | value = ioread32(addr); |
| 3700 | |
| 3701 | if (enable) |
| 3702 | value |= BIT(28); |
| 3703 | else |
| 3704 | value &= ~BIT(28); |
| 3705 | |
| 3706 | iowrite32(value, addr); |
| 3707 | |
| 3708 | spin_unlock_irqrestore(&pfc->lock, flags); |
| 3709 | } |
| 3710 | |
| 3711 | static int sh73a0_vccq_mc0_enable(struct regulator_dev *reg) |
| 3712 | { |
| 3713 | sh73a0_vccq_mc0_endisable(reg, true); |
| 3714 | return 0; |
| 3715 | } |
| 3716 | |
| 3717 | static int sh73a0_vccq_mc0_disable(struct regulator_dev *reg) |
| 3718 | { |
| 3719 | sh73a0_vccq_mc0_endisable(reg, false); |
| 3720 | return 0; |
| 3721 | } |
| 3722 | |
| 3723 | static int sh73a0_vccq_mc0_is_enabled(struct regulator_dev *reg) |
| 3724 | { |
| 3725 | struct sh_pfc *pfc = reg->reg_data; |
| 3726 | void __iomem *addr = pfc->windows[1].virt + 4; |
| 3727 | unsigned long flags; |
| 3728 | u32 value; |
| 3729 | |
| 3730 | spin_lock_irqsave(&pfc->lock, flags); |
| 3731 | value = ioread32(addr); |
| 3732 | spin_unlock_irqrestore(&pfc->lock, flags); |
| 3733 | |
| 3734 | return !!(value & BIT(28)); |
| 3735 | } |
| 3736 | |
| 3737 | static int sh73a0_vccq_mc0_get_voltage(struct regulator_dev *reg) |
| 3738 | { |
| 3739 | return 3300000; |
| 3740 | } |
| 3741 | |
| 3742 | static struct regulator_ops sh73a0_vccq_mc0_ops = { |
| 3743 | .enable = sh73a0_vccq_mc0_enable, |
| 3744 | .disable = sh73a0_vccq_mc0_disable, |
| 3745 | .is_enabled = sh73a0_vccq_mc0_is_enabled, |
| 3746 | .get_voltage = sh73a0_vccq_mc0_get_voltage, |
| 3747 | }; |
| 3748 | |
| 3749 | static const struct regulator_desc sh73a0_vccq_mc0_desc = { |
| 3750 | .owner = THIS_MODULE, |
| 3751 | .name = "vccq_mc0", |
| 3752 | .type = REGULATOR_VOLTAGE, |
| 3753 | .ops = &sh73a0_vccq_mc0_ops, |
| 3754 | }; |
| 3755 | |
| 3756 | static struct regulator_consumer_supply sh73a0_vccq_mc0_consumers[] = { |
| 3757 | REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"), |
| 3758 | REGULATOR_SUPPLY("vqmmc", "ee100000.sdhi"), |
| 3759 | }; |
| 3760 | |
| 3761 | static const struct regulator_init_data sh73a0_vccq_mc0_init_data = { |
| 3762 | .constraints = { |
| 3763 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 3764 | }, |
| 3765 | .num_consumer_supplies = ARRAY_SIZE(sh73a0_vccq_mc0_consumers), |
| 3766 | .consumer_supplies = sh73a0_vccq_mc0_consumers, |
| 3767 | }; |
| 3768 | |
| 3769 | /* ----------------------------------------------------------------------------- |
| 3770 | * Pin bias |
| 3771 | */ |
| 3772 | |
| 3773 | #define PORTnCR_PULMD_OFF (0 << 6) |
| 3774 | #define PORTnCR_PULMD_DOWN (2 << 6) |
| 3775 | #define PORTnCR_PULMD_UP (3 << 6) |
| 3776 | #define PORTnCR_PULMD_MASK (3 << 6) |
| 3777 | |
| 3778 | static const unsigned int sh73a0_portcr_offsets[] = { |
| 3779 | 0x00000000, 0x00001000, 0x00001000, 0x00002000, 0x00002000, |
| 3780 | 0x00002000, 0x00002000, 0x00003000, 0x00003000, 0x00002000, |
| 3781 | }; |
| 3782 | |
| 3783 | static unsigned int sh73a0_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) |
| 3784 | { |
| 3785 | void __iomem *addr = pfc->windows->virt |
| 3786 | + sh73a0_portcr_offsets[pin >> 5] + pin; |
| 3787 | u32 value = ioread8(addr) & PORTnCR_PULMD_MASK; |
| 3788 | |
| 3789 | switch (value) { |
| 3790 | case PORTnCR_PULMD_UP: |
| 3791 | return PIN_CONFIG_BIAS_PULL_UP; |
| 3792 | case PORTnCR_PULMD_DOWN: |
| 3793 | return PIN_CONFIG_BIAS_PULL_DOWN; |
| 3794 | case PORTnCR_PULMD_OFF: |
| 3795 | default: |
| 3796 | return PIN_CONFIG_BIAS_DISABLE; |
| 3797 | } |
| 3798 | } |
| 3799 | |
| 3800 | static void sh73a0_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, |
| 3801 | unsigned int bias) |
| 3802 | { |
| 3803 | void __iomem *addr = pfc->windows->virt |
| 3804 | + sh73a0_portcr_offsets[pin >> 5] + pin; |
| 3805 | u32 value = ioread8(addr) & ~PORTnCR_PULMD_MASK; |
| 3806 | |
| 3807 | switch (bias) { |
| 3808 | case PIN_CONFIG_BIAS_PULL_UP: |
| 3809 | value |= PORTnCR_PULMD_UP; |
| 3810 | break; |
| 3811 | case PIN_CONFIG_BIAS_PULL_DOWN: |
| 3812 | value |= PORTnCR_PULMD_DOWN; |
| 3813 | break; |
| 3814 | } |
| 3815 | |
| 3816 | iowrite8(value, addr); |
| 3817 | } |
| 3818 | |
| 3819 | /* ----------------------------------------------------------------------------- |
| 3820 | * SoC information |
| 3821 | */ |
| 3822 | |
| 3823 | static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc) |
| 3824 | { |
| 3825 | struct regulator_config cfg = { }; |
| 3826 | struct regulator_dev *vccq; |
| 3827 | int ret; |
| 3828 | |
| 3829 | cfg.dev = pfc->dev; |
| 3830 | cfg.init_data = &sh73a0_vccq_mc0_init_data; |
| 3831 | cfg.driver_data = pfc; |
| 3832 | |
| 3833 | vccq = devm_regulator_register(pfc->dev, &sh73a0_vccq_mc0_desc, &cfg); |
| 3834 | if (IS_ERR(vccq)) { |
| 3835 | ret = PTR_ERR(vccq); |
| 3836 | dev_err(pfc->dev, "Failed to register VCCQ MC0 regulator: %d\n", |
| 3837 | ret); |
| 3838 | return ret; |
| 3839 | } |
| 3840 | |
| 3841 | return 0; |
| 3842 | } |
| 3843 | |
| 3844 | static const struct sh_pfc_soc_operations sh73a0_pfc_ops = { |
| 3845 | .init = sh73a0_pinmux_soc_init, |
| 3846 | .get_bias = sh73a0_pinmux_get_bias, |
| 3847 | .set_bias = sh73a0_pinmux_set_bias, |
| 3848 | }; |
| 3849 | |
| 3850 | const struct sh_pfc_soc_info sh73a0_pinmux_info = { |
| 3851 | .name = "sh73a0_pfc", |
| 3852 | .ops = &sh73a0_pfc_ops, |
| 3853 | |
| 3854 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, |
| 3855 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, |
| 3856 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, |
| 3857 | |
| 3858 | .pins = pinmux_pins, |
| 3859 | .nr_pins = ARRAY_SIZE(pinmux_pins), |
| 3860 | .groups = pinmux_groups, |
| 3861 | .nr_groups = ARRAY_SIZE(pinmux_groups), |
| 3862 | .functions = pinmux_functions, |
| 3863 | .nr_functions = ARRAY_SIZE(pinmux_functions), |
| 3864 | |
| 3865 | .cfg_regs = pinmux_config_regs, |
| 3866 | .data_regs = pinmux_data_regs, |
| 3867 | |
| 3868 | .pinmux_data = pinmux_data, |
| 3869 | .pinmux_data_size = ARRAY_SIZE(pinmux_data), |
| 3870 | |
| 3871 | .gpio_irq = pinmux_irqs, |
| 3872 | .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), |
| 3873 | }; |