0001
0002
0003
0004
0005
0006
0007
0008 #include <linux/io.h>
0009 #include <linux/kernel.h>
0010 #include <linux/module.h>
0011 #include <linux/pinctrl/pinconf-generic.h>
0012 #include <linux/regulator/driver.h>
0013 #include <linux/regulator/machine.h>
0014 #include <linux/slab.h>
0015
0016 #include "sh_pfc.h"
0017
0018 #define CPU_ALL_PORT(fn, pfx, sfx) \
0019 PORT_10(0, fn, pfx, sfx), PORT_90(0, fn, pfx, sfx), \
0020 PORT_10(100, fn, pfx##10, sfx), \
0021 PORT_1(110, fn, pfx##110, sfx), PORT_1(111, fn, pfx##111, sfx), \
0022 PORT_1(112, fn, pfx##112, sfx), PORT_1(113, fn, pfx##113, sfx), \
0023 PORT_1(114, fn, pfx##114, sfx), PORT_1(115, fn, pfx##115, sfx), \
0024 PORT_1(116, fn, pfx##116, sfx), PORT_1(117, fn, pfx##117, sfx), \
0025 PORT_1(118, fn, pfx##118, sfx), \
0026 PORT_1(128, fn, pfx##128, sfx), PORT_1(129, fn, pfx##129, sfx), \
0027 PORT_10(130, fn, pfx##13, sfx), PORT_10(140, fn, pfx##14, sfx), \
0028 PORT_10(150, fn, pfx##15, sfx), \
0029 PORT_1(160, fn, pfx##160, sfx), PORT_1(161, fn, pfx##161, sfx), \
0030 PORT_1(162, fn, pfx##162, sfx), PORT_1(163, fn, pfx##163, sfx), \
0031 PORT_1(164, fn, pfx##164, sfx), \
0032 PORT_1(192, fn, pfx##192, sfx), PORT_1(193, fn, pfx##193, sfx), \
0033 PORT_1(194, fn, pfx##194, sfx), PORT_1(195, fn, pfx##195, sfx), \
0034 PORT_1(196, fn, pfx##196, sfx), PORT_1(197, fn, pfx##197, sfx), \
0035 PORT_1(198, fn, pfx##198, sfx), PORT_1(199, fn, pfx##199, sfx), \
0036 PORT_10(200, fn, pfx##20, sfx), PORT_10(210, fn, pfx##21, sfx), \
0037 PORT_10(220, fn, pfx##22, sfx), PORT_10(230, fn, pfx##23, sfx), \
0038 PORT_10(240, fn, pfx##24, sfx), PORT_10(250, fn, pfx##25, sfx), \
0039 PORT_10(260, fn, pfx##26, sfx), PORT_10(270, fn, pfx##27, sfx), \
0040 PORT_1(280, fn, pfx##280, sfx), PORT_1(281, fn, pfx##281, sfx), \
0041 PORT_1(282, fn, pfx##282, sfx), \
0042 PORT_1(288, fn, pfx##288, sfx), PORT_1(289, fn, pfx##289, sfx), \
0043 PORT_10(290, fn, pfx##29, sfx), PORT_10(300, fn, pfx##30, sfx)
0044
0045 #define CPU_ALL_NOGP(fn) \
0046 PIN_NOGP(A11, "F26", fn)
0047
0048 enum {
0049 PINMUX_RESERVED = 0,
0050
0051 PINMUX_DATA_BEGIN,
0052 PORT_ALL(DATA),
0053 PINMUX_DATA_END,
0054
0055 PINMUX_INPUT_BEGIN,
0056 PORT_ALL(IN),
0057 PINMUX_INPUT_END,
0058
0059 PINMUX_OUTPUT_BEGIN,
0060 PORT_ALL(OUT),
0061 PINMUX_OUTPUT_END,
0062
0063 PINMUX_FUNCTION_BEGIN,
0064 PORT_ALL(FN_IN),
0065 PORT_ALL(FN_OUT),
0066 PORT_ALL(FN0),
0067 PORT_ALL(FN1),
0068 PORT_ALL(FN2),
0069 PORT_ALL(FN3),
0070 PORT_ALL(FN4),
0071 PORT_ALL(FN5),
0072 PORT_ALL(FN6),
0073 PORT_ALL(FN7),
0074
0075 MSEL2CR_MSEL19_0, MSEL2CR_MSEL19_1,
0076 MSEL2CR_MSEL18_0, MSEL2CR_MSEL18_1,
0077 MSEL2CR_MSEL17_0, MSEL2CR_MSEL17_1,
0078 MSEL2CR_MSEL16_0, MSEL2CR_MSEL16_1,
0079 MSEL2CR_MSEL14_0, MSEL2CR_MSEL14_1,
0080 MSEL2CR_MSEL13_0, MSEL2CR_MSEL13_1,
0081 MSEL2CR_MSEL12_0, MSEL2CR_MSEL12_1,
0082 MSEL2CR_MSEL11_0, MSEL2CR_MSEL11_1,
0083 MSEL2CR_MSEL10_0, MSEL2CR_MSEL10_1,
0084 MSEL2CR_MSEL9_0, MSEL2CR_MSEL9_1,
0085 MSEL2CR_MSEL8_0, MSEL2CR_MSEL8_1,
0086 MSEL2CR_MSEL7_0, MSEL2CR_MSEL7_1,
0087 MSEL2CR_MSEL6_0, MSEL2CR_MSEL6_1,
0088 MSEL2CR_MSEL4_0, MSEL2CR_MSEL4_1,
0089 MSEL2CR_MSEL5_0, MSEL2CR_MSEL5_1,
0090 MSEL2CR_MSEL3_0, MSEL2CR_MSEL3_1,
0091 MSEL2CR_MSEL2_0, MSEL2CR_MSEL2_1,
0092 MSEL2CR_MSEL1_0, MSEL2CR_MSEL1_1,
0093 MSEL2CR_MSEL0_0, MSEL2CR_MSEL0_1,
0094 MSEL3CR_MSEL28_0, MSEL3CR_MSEL28_1,
0095 MSEL3CR_MSEL15_0, MSEL3CR_MSEL15_1,
0096 MSEL3CR_MSEL11_0, MSEL3CR_MSEL11_1,
0097 MSEL3CR_MSEL9_0, MSEL3CR_MSEL9_1,
0098 MSEL3CR_MSEL6_0, MSEL3CR_MSEL6_1,
0099 MSEL3CR_MSEL2_0, MSEL3CR_MSEL2_1,
0100 MSEL4CR_MSEL29_0, MSEL4CR_MSEL29_1,
0101 MSEL4CR_MSEL27_0, MSEL4CR_MSEL27_1,
0102 MSEL4CR_MSEL26_0, MSEL4CR_MSEL26_1,
0103 MSEL4CR_MSEL22_0, MSEL4CR_MSEL22_1,
0104 MSEL4CR_MSEL21_0, MSEL4CR_MSEL21_1,
0105 MSEL4CR_MSEL20_0, MSEL4CR_MSEL20_1,
0106 MSEL4CR_MSEL19_0, MSEL4CR_MSEL19_1,
0107 MSEL4CR_MSEL15_0, MSEL4CR_MSEL15_1,
0108 MSEL4CR_MSEL13_0, MSEL4CR_MSEL13_1,
0109 MSEL4CR_MSEL12_0, MSEL4CR_MSEL12_1,
0110 MSEL4CR_MSEL11_0, MSEL4CR_MSEL11_1,
0111 MSEL4CR_MSEL10_0, MSEL4CR_MSEL10_1,
0112 MSEL4CR_MSEL9_0, MSEL4CR_MSEL9_1,
0113 MSEL4CR_MSEL8_0, MSEL4CR_MSEL8_1,
0114 MSEL4CR_MSEL7_0, MSEL4CR_MSEL7_1,
0115 MSEL4CR_MSEL4_0, MSEL4CR_MSEL4_1,
0116 MSEL4CR_MSEL1_0, MSEL4CR_MSEL1_1,
0117 PINMUX_FUNCTION_END,
0118
0119 PINMUX_MARK_BEGIN,
0120
0121 VBUS_0_MARK,
0122 GPI0_MARK,
0123 GPI1_MARK,
0124 GPI2_MARK,
0125 GPI3_MARK,
0126 GPI4_MARK,
0127 GPI5_MARK,
0128 GPI6_MARK,
0129 GPI7_MARK,
0130 SCIFA7_RXD_MARK,
0131 SCIFA7_CTS__MARK,
0132 GPO7_MARK, MFG0_OUT2_MARK,
0133 GPO6_MARK, MFG1_OUT2_MARK,
0134 GPO5_MARK, SCIFA0_SCK_MARK, FSICOSLDT3_MARK, PORT16_VIO_CKOR_MARK,
0135 SCIFA0_TXD_MARK,
0136 SCIFA7_TXD_MARK,
0137 SCIFA7_RTS__MARK, PORT19_VIO_CKO2_MARK,
0138 GPO0_MARK,
0139 GPO1_MARK,
0140 GPO2_MARK, STATUS0_MARK,
0141 GPO3_MARK, STATUS1_MARK,
0142 GPO4_MARK, STATUS2_MARK,
0143 VINT_MARK,
0144 TCKON_MARK,
0145 XDVFS1_MARK, PORT27_I2C_SCL2_MARK, PORT27_I2C_SCL3_MARK, \
0146 MFG0_OUT1_MARK, PORT27_IROUT_MARK,
0147 XDVFS2_MARK, PORT28_I2C_SDA2_MARK, PORT28_I2C_SDA3_MARK, \
0148 PORT28_TPU1TO1_MARK,
0149 SIM_RST_MARK, PORT29_TPU1TO1_MARK,
0150 SIM_CLK_MARK, PORT30_VIO_CKOR_MARK,
0151 SIM_D_MARK, PORT31_IROUT_MARK,
0152 SCIFA4_TXD_MARK,
0153 SCIFA4_RXD_MARK, XWUP_MARK,
0154 SCIFA4_RTS__MARK,
0155 SCIFA4_CTS__MARK,
0156 FSIBOBT_MARK, FSIBIBT_MARK,
0157 FSIBOLR_MARK, FSIBILR_MARK,
0158 FSIBOSLD_MARK,
0159 FSIBISLD_MARK,
0160 VACK_MARK,
0161 XTAL1L_MARK,
0162 SCIFA0_RTS__MARK, FSICOSLDT2_MARK,
0163 SCIFA0_RXD_MARK,
0164 SCIFA0_CTS__MARK, FSICOSLDT1_MARK,
0165 FSICOBT_MARK, FSICIBT_MARK, FSIDOBT_MARK, FSIDIBT_MARK,
0166 FSICOLR_MARK, FSICILR_MARK, FSIDOLR_MARK, FSIDILR_MARK,
0167 FSICOSLD_MARK, PORT47_FSICSPDIF_MARK,
0168 FSICISLD_MARK, FSIDISLD_MARK,
0169 FSIACK_MARK, PORT49_IRDA_OUT_MARK, PORT49_IROUT_MARK, FSIAOMC_MARK,
0170 FSIAOLR_MARK, BBIF2_TSYNC2_MARK, TPU2TO2_MARK, FSIAILR_MARK,
0171
0172 FSIAOBT_MARK, BBIF2_TSCK2_MARK, TPU2TO3_MARK, FSIAIBT_MARK,
0173 FSIAOSLD_MARK, BBIF2_TXD2_MARK,
0174 FSIASPDIF_MARK, PORT53_IRDA_IN_MARK, TPU3TO3_MARK, FSIBSPDIF_MARK, \
0175 PORT53_FSICSPDIF_MARK,
0176 FSIBCK_MARK, PORT54_IRDA_FIRSEL_MARK, TPU3TO2_MARK, FSIBOMC_MARK, \
0177 FSICCK_MARK, FSICOMC_MARK,
0178 FSIAISLD_MARK, TPU0TO0_MARK,
0179 A0_MARK, BS__MARK,
0180 A12_MARK, PORT58_KEYOUT7_MARK, TPU4TO2_MARK,
0181 A13_MARK, PORT59_KEYOUT6_MARK, TPU0TO1_MARK,
0182 A14_MARK, KEYOUT5_MARK,
0183 A15_MARK, KEYOUT4_MARK,
0184 A16_MARK, KEYOUT3_MARK, MSIOF0_SS1_MARK,
0185 A17_MARK, KEYOUT2_MARK, MSIOF0_TSYNC_MARK,
0186 A18_MARK, KEYOUT1_MARK, MSIOF0_TSCK_MARK,
0187 A19_MARK, KEYOUT0_MARK, MSIOF0_TXD_MARK,
0188 A20_MARK, KEYIN0_MARK, MSIOF0_RSCK_MARK,
0189 A21_MARK, KEYIN1_MARK, MSIOF0_RSYNC_MARK,
0190 A22_MARK, KEYIN2_MARK, MSIOF0_MCK0_MARK,
0191 A23_MARK, KEYIN3_MARK, MSIOF0_MCK1_MARK,
0192 A24_MARK, KEYIN4_MARK, MSIOF0_RXD_MARK,
0193 A25_MARK, KEYIN5_MARK, MSIOF0_SS2_MARK,
0194 A26_MARK, KEYIN6_MARK,
0195 KEYIN7_MARK,
0196 D0_NAF0_MARK,
0197 D1_NAF1_MARK,
0198 D2_NAF2_MARK,
0199 D3_NAF3_MARK,
0200 D4_NAF4_MARK,
0201 D5_NAF5_MARK,
0202 D6_NAF6_MARK,
0203 D7_NAF7_MARK,
0204 D8_NAF8_MARK,
0205 D9_NAF9_MARK,
0206 D10_NAF10_MARK,
0207 D11_NAF11_MARK,
0208 D12_NAF12_MARK,
0209 D13_NAF13_MARK,
0210 D14_NAF14_MARK,
0211 D15_NAF15_MARK,
0212 CS4__MARK,
0213 CS5A__MARK, PORT91_RDWR_MARK,
0214 CS5B__MARK, FCE1__MARK,
0215 CS6B__MARK, DACK0_MARK,
0216 FCE0__MARK, CS6A__MARK,
0217 WAIT__MARK, DREQ0_MARK,
0218 RD__FSC_MARK,
0219 WE0__FWE_MARK, RDWR_FWE_MARK,
0220 WE1__MARK,
0221 FRB_MARK,
0222 CKO_MARK,
0223 NBRSTOUT__MARK,
0224 NBRST__MARK,
0225 BBIF2_TXD_MARK,
0226 BBIF2_RXD_MARK,
0227 BBIF2_SYNC_MARK,
0228 BBIF2_SCK_MARK,
0229 SCIFA3_CTS__MARK, MFG3_IN2_MARK,
0230 SCIFA3_RXD_MARK, MFG3_IN1_MARK,
0231 BBIF1_SS2_MARK, SCIFA3_RTS__MARK, MFG3_OUT1_MARK,
0232 SCIFA3_TXD_MARK,
0233 HSI_RX_DATA_MARK, BBIF1_RXD_MARK,
0234 HSI_TX_WAKE_MARK, BBIF1_TSCK_MARK,
0235 HSI_TX_DATA_MARK, BBIF1_TSYNC_MARK,
0236 HSI_TX_READY_MARK, BBIF1_TXD_MARK,
0237 HSI_RX_READY_MARK, BBIF1_RSCK_MARK, PORT115_I2C_SCL2_MARK, \
0238 PORT115_I2C_SCL3_MARK,
0239 HSI_RX_WAKE_MARK, BBIF1_RSYNC_MARK, PORT116_I2C_SDA2_MARK, \
0240 PORT116_I2C_SDA3_MARK,
0241 HSI_RX_FLAG_MARK, BBIF1_SS1_MARK, BBIF1_FLOW_MARK,
0242 HSI_TX_FLAG_MARK,
0243 VIO_VD_MARK, PORT128_LCD2VSYN_MARK, VIO2_VD_MARK, LCD2D0_MARK,
0244
0245 VIO_HD_MARK, PORT129_LCD2HSYN_MARK, PORT129_LCD2CS__MARK, \
0246 VIO2_HD_MARK, LCD2D1_MARK,
0247 VIO_D0_MARK, PORT130_MSIOF2_RXD_MARK, LCD2D10_MARK,
0248 VIO_D1_MARK, PORT131_KEYOUT6_MARK, PORT131_MSIOF2_SS1_MARK, \
0249 PORT131_KEYOUT11_MARK, LCD2D11_MARK,
0250 VIO_D2_MARK, PORT132_KEYOUT7_MARK, PORT132_MSIOF2_SS2_MARK, \
0251 PORT132_KEYOUT10_MARK, LCD2D12_MARK,
0252 VIO_D3_MARK, MSIOF2_TSYNC_MARK, LCD2D13_MARK,
0253 VIO_D4_MARK, MSIOF2_TXD_MARK, LCD2D14_MARK,
0254 VIO_D5_MARK, MSIOF2_TSCK_MARK, LCD2D15_MARK,
0255 VIO_D6_MARK, PORT136_KEYOUT8_MARK, LCD2D16_MARK,
0256 VIO_D7_MARK, PORT137_KEYOUT9_MARK, LCD2D17_MARK,
0257 VIO_D8_MARK, PORT138_KEYOUT8_MARK, VIO2_D0_MARK, LCD2D6_MARK,
0258 VIO_D9_MARK, PORT139_KEYOUT9_MARK, VIO2_D1_MARK, LCD2D7_MARK,
0259 VIO_D10_MARK, TPU0TO2_MARK, VIO2_D2_MARK, LCD2D8_MARK,
0260 VIO_D11_MARK, TPU0TO3_MARK, VIO2_D3_MARK, LCD2D9_MARK,
0261 VIO_D12_MARK, PORT142_KEYOUT10_MARK, VIO2_D4_MARK, LCD2D2_MARK,
0262 VIO_D13_MARK, PORT143_KEYOUT11_MARK, PORT143_KEYOUT6_MARK, \
0263 VIO2_D5_MARK, LCD2D3_MARK,
0264 VIO_D14_MARK, PORT144_KEYOUT7_MARK, VIO2_D6_MARK, LCD2D4_MARK,
0265 VIO_D15_MARK, TPU1TO3_MARK, PORT145_LCD2DISP_MARK, \
0266 PORT145_LCD2RS_MARK, VIO2_D7_MARK, LCD2D5_MARK,
0267 VIO_CLK_MARK, LCD2DCK_MARK, PORT146_LCD2WR__MARK, VIO2_CLK_MARK, \
0268 LCD2D18_MARK,
0269 VIO_FIELD_MARK, LCD2RD__MARK, VIO2_FIELD_MARK, LCD2D19_MARK,
0270 VIO_CKO_MARK,
0271 A27_MARK, PORT149_RDWR_MARK, MFG0_IN1_MARK, PORT149_KEYOUT9_MARK,
0272 MFG0_IN2_MARK,
0273 TS_SPSYNC3_MARK, MSIOF2_RSCK_MARK,
0274 TS_SDAT3_MARK, MSIOF2_RSYNC_MARK,
0275 TPU1TO2_MARK, TS_SDEN3_MARK, PORT153_MSIOF2_SS1_MARK,
0276 SCIFA2_TXD1_MARK, MSIOF2_MCK0_MARK,
0277 SCIFA2_RXD1_MARK, MSIOF2_MCK1_MARK,
0278 SCIFA2_RTS1__MARK, PORT156_MSIOF2_SS2_MARK,
0279 SCIFA2_CTS1__MARK, PORT157_MSIOF2_RXD_MARK,
0280 DINT__MARK, SCIFA2_SCK1_MARK, TS_SCK3_MARK,
0281 PORT159_SCIFB_SCK_MARK, PORT159_SCIFA5_SCK_MARK, NMI_MARK,
0282 PORT160_SCIFB_TXD_MARK, PORT160_SCIFA5_TXD_MARK,
0283 PORT161_SCIFB_CTS__MARK, PORT161_SCIFA5_CTS__MARK,
0284 PORT162_SCIFB_RXD_MARK, PORT162_SCIFA5_RXD_MARK,
0285 PORT163_SCIFB_RTS__MARK, PORT163_SCIFA5_RTS__MARK, TPU3TO0_MARK,
0286 LCDD0_MARK,
0287 LCDD1_MARK, PORT193_SCIFA5_CTS__MARK, BBIF2_TSYNC1_MARK,
0288 LCDD2_MARK, PORT194_SCIFA5_RTS__MARK, BBIF2_TSCK1_MARK,
0289 LCDD3_MARK, PORT195_SCIFA5_RXD_MARK, BBIF2_TXD1_MARK,
0290 LCDD4_MARK, PORT196_SCIFA5_TXD_MARK,
0291 LCDD5_MARK, PORT197_SCIFA5_SCK_MARK, MFG2_OUT2_MARK, TPU2TO1_MARK,
0292 LCDD6_MARK,
0293 LCDD7_MARK, TPU4TO1_MARK, MFG4_OUT2_MARK,
0294 LCDD8_MARK, D16_MARK,
0295 LCDD9_MARK, D17_MARK,
0296 LCDD10_MARK, D18_MARK,
0297 LCDD11_MARK, D19_MARK,
0298 LCDD12_MARK, D20_MARK,
0299 LCDD13_MARK, D21_MARK,
0300 LCDD14_MARK, D22_MARK,
0301 LCDD15_MARK, PORT207_MSIOF0L_SS1_MARK, D23_MARK,
0302 LCDD16_MARK, PORT208_MSIOF0L_SS2_MARK, D24_MARK,
0303 LCDD17_MARK, D25_MARK,
0304 LCDD18_MARK, DREQ2_MARK, PORT210_MSIOF0L_SS1_MARK, D26_MARK,
0305 LCDD19_MARK, PORT211_MSIOF0L_SS2_MARK, D27_MARK,
0306 LCDD20_MARK, TS_SPSYNC1_MARK, MSIOF0L_MCK0_MARK, D28_MARK,
0307 LCDD21_MARK, TS_SDAT1_MARK, MSIOF0L_MCK1_MARK, D29_MARK,
0308 LCDD22_MARK, TS_SDEN1_MARK, MSIOF0L_RSCK_MARK, D30_MARK,
0309 LCDD23_MARK, TS_SCK1_MARK, MSIOF0L_RSYNC_MARK, D31_MARK,
0310 LCDDCK_MARK, LCDWR__MARK,
0311 LCDRD__MARK, DACK2_MARK, PORT217_LCD2RS_MARK, MSIOF0L_TSYNC_MARK, \
0312 VIO2_FIELD3_MARK, PORT217_LCD2DISP_MARK,
0313 LCDHSYN_MARK, LCDCS__MARK, LCDCS2__MARK, DACK3_MARK, \
0314 PORT218_VIO_CKOR_MARK,
0315 LCDDISP_MARK, LCDRS_MARK, PORT219_LCD2WR__MARK, DREQ3_MARK, \
0316 MSIOF0L_TSCK_MARK, VIO2_CLK3_MARK, LCD2DCK_2_MARK,
0317 LCDVSYN_MARK, LCDVSYN2_MARK,
0318 LCDLCLK_MARK, DREQ1_MARK, PORT221_LCD2CS__MARK, PWEN_MARK, \
0319 MSIOF0L_RXD_MARK, VIO2_HD3_MARK, PORT221_LCD2HSYN_MARK,
0320 LCDDON_MARK, LCDDON2_MARK, DACK1_MARK, OVCN_MARK, MSIOF0L_TXD_MARK, \
0321 VIO2_VD3_MARK, PORT222_LCD2VSYN_MARK,
0322
0323 SCIFA1_TXD_MARK, OVCN2_MARK,
0324 EXTLP_MARK, SCIFA1_SCK_MARK, PORT226_VIO_CKO2_MARK,
0325 SCIFA1_RTS__MARK, IDIN_MARK,
0326 SCIFA1_RXD_MARK,
0327 SCIFA1_CTS__MARK, MFG1_IN1_MARK,
0328 MSIOF1_TXD_MARK, SCIFA2_TXD2_MARK,
0329 MSIOF1_TSYNC_MARK, SCIFA2_CTS2__MARK,
0330 MSIOF1_TSCK_MARK, SCIFA2_SCK2_MARK,
0331 MSIOF1_RXD_MARK, SCIFA2_RXD2_MARK,
0332 MSIOF1_RSCK_MARK, SCIFA2_RTS2__MARK, VIO2_CLK2_MARK, LCD2D20_MARK,
0333 MSIOF1_RSYNC_MARK, MFG1_IN2_MARK, VIO2_VD2_MARK, LCD2D21_MARK,
0334 MSIOF1_MCK0_MARK, PORT236_I2C_SDA2_MARK,
0335 MSIOF1_MCK1_MARK, PORT237_I2C_SCL2_MARK,
0336 MSIOF1_SS1_MARK, VIO2_FIELD2_MARK, LCD2D22_MARK,
0337 MSIOF1_SS2_MARK, VIO2_HD2_MARK, LCD2D23_MARK,
0338 SCIFA6_TXD_MARK,
0339 PORT241_IRDA_OUT_MARK, PORT241_IROUT_MARK, MFG4_OUT1_MARK, TPU4TO0_MARK,
0340 PORT242_IRDA_IN_MARK, MFG4_IN2_MARK,
0341 PORT243_IRDA_FIRSEL_MARK, PORT243_VIO_CKO2_MARK,
0342 PORT244_SCIFA5_CTS__MARK, MFG2_IN1_MARK, PORT244_SCIFB_CTS__MARK, \
0343 MSIOF2R_RXD_MARK,
0344 PORT245_SCIFA5_RTS__MARK, MFG2_IN2_MARK, PORT245_SCIFB_RTS__MARK, \
0345 MSIOF2R_TXD_MARK,
0346 PORT246_SCIFA5_RXD_MARK, MFG1_OUT1_MARK, PORT246_SCIFB_RXD_MARK, \
0347 TPU1TO0_MARK,
0348 PORT247_SCIFA5_TXD_MARK, MFG3_OUT2_MARK, PORT247_SCIFB_TXD_MARK, \
0349 TPU3TO1_MARK,
0350 PORT248_SCIFA5_SCK_MARK, MFG2_OUT1_MARK, PORT248_SCIFB_SCK_MARK, \
0351 TPU2TO0_MARK, PORT248_I2C_SCL3_MARK, MSIOF2R_TSCK_MARK,
0352 PORT249_IROUT_MARK, MFG4_IN1_MARK, PORT249_I2C_SDA3_MARK, \
0353 MSIOF2R_TSYNC_MARK,
0354 SDHICLK0_MARK,
0355 SDHICD0_MARK,
0356 SDHID0_0_MARK,
0357 SDHID0_1_MARK,
0358 SDHID0_2_MARK,
0359 SDHID0_3_MARK,
0360 SDHICMD0_MARK,
0361 SDHIWP0_MARK,
0362 SDHICLK1_MARK,
0363 SDHID1_0_MARK, TS_SPSYNC2_MARK,
0364 SDHID1_1_MARK, TS_SDAT2_MARK,
0365 SDHID1_2_MARK, TS_SDEN2_MARK,
0366 SDHID1_3_MARK, TS_SCK2_MARK,
0367 SDHICMD1_MARK,
0368 SDHICLK2_MARK,
0369 SDHID2_0_MARK, TS_SPSYNC4_MARK,
0370 SDHID2_1_MARK, TS_SDAT4_MARK,
0371 SDHID2_2_MARK, TS_SDEN4_MARK,
0372 SDHID2_3_MARK, TS_SCK4_MARK,
0373 SDHICMD2_MARK,
0374 MMCCLK0_MARK,
0375 MMCD0_0_MARK,
0376 MMCD0_1_MARK,
0377 MMCD0_2_MARK,
0378 MMCD0_3_MARK,
0379 MMCD0_4_MARK, TS_SPSYNC5_MARK,
0380 MMCD0_5_MARK, TS_SDAT5_MARK,
0381 MMCD0_6_MARK, TS_SDEN5_MARK,
0382 MMCD0_7_MARK, TS_SCK5_MARK,
0383 MMCCMD0_MARK,
0384 RESETOUTS__MARK, EXTAL2OUT_MARK,
0385 MCP_WAIT__MCP_FRB_MARK,
0386 MCP_CKO_MARK, MMCCLK1_MARK,
0387 MCP_D15_MCP_NAF15_MARK,
0388 MCP_D14_MCP_NAF14_MARK,
0389 MCP_D13_MCP_NAF13_MARK,
0390 MCP_D12_MCP_NAF12_MARK,
0391 MCP_D11_MCP_NAF11_MARK,
0392 MCP_D10_MCP_NAF10_MARK,
0393 MCP_D9_MCP_NAF9_MARK,
0394 MCP_D8_MCP_NAF8_MARK, MMCCMD1_MARK,
0395 MCP_D7_MCP_NAF7_MARK, MMCD1_7_MARK,
0396
0397 MCP_D6_MCP_NAF6_MARK, MMCD1_6_MARK,
0398 MCP_D5_MCP_NAF5_MARK, MMCD1_5_MARK,
0399 MCP_D4_MCP_NAF4_MARK, MMCD1_4_MARK,
0400 MCP_D3_MCP_NAF3_MARK, MMCD1_3_MARK,
0401 MCP_D2_MCP_NAF2_MARK, MMCD1_2_MARK,
0402 MCP_D1_MCP_NAF1_MARK, MMCD1_1_MARK,
0403 MCP_D0_MCP_NAF0_MARK, MMCD1_0_MARK,
0404 MCP_NBRSTOUT__MARK,
0405 MCP_WE0__MCP_FWE_MARK, MCP_RDWR_MCP_FWE_MARK,
0406
0407
0408 TSIF2_TS_XX1_MARK,
0409 TSIF2_TS_XX2_MARK,
0410 TSIF2_TS_XX3_MARK,
0411 TSIF2_TS_XX4_MARK,
0412 TSIF2_TS_XX5_MARK,
0413 TSIF1_TS_XX1_MARK,
0414 TSIF1_TS_XX2_MARK,
0415 TSIF1_TS_XX3_MARK,
0416 TSIF1_TS_XX4_MARK,
0417 TSIF1_TS_XX5_MARK,
0418 TSIF0_TS_XX1_MARK,
0419 TSIF0_TS_XX2_MARK,
0420 TSIF0_TS_XX3_MARK,
0421 TSIF0_TS_XX4_MARK,
0422 TSIF0_TS_XX5_MARK,
0423 MST1_TS_XX1_MARK,
0424 MST1_TS_XX2_MARK,
0425 MST1_TS_XX3_MARK,
0426 MST1_TS_XX4_MARK,
0427 MST1_TS_XX5_MARK,
0428 MST0_TS_XX1_MARK,
0429 MST0_TS_XX2_MARK,
0430 MST0_TS_XX3_MARK,
0431 MST0_TS_XX4_MARK,
0432 MST0_TS_XX5_MARK,
0433
0434
0435 SDHI0_VCCQ_MC0_ON_MARK,
0436 SDHI0_VCCQ_MC0_OFF_MARK,
0437 DEBUG_MON_VIO_MARK,
0438 DEBUG_MON_LCDD_MARK,
0439 LCDC_LCDC0_MARK,
0440 LCDC_LCDC1_MARK,
0441
0442
0443 IRQ9_MEM_INT_MARK,
0444 IRQ9_MCP_INT_MARK,
0445 A11_MARK,
0446 KEYOUT8_MARK,
0447 TPU4TO3_MARK,
0448 RESETA_N_PU_ON_MARK,
0449 RESETA_N_PU_OFF_MARK,
0450 EDBGREQ_PD_MARK,
0451 EDBGREQ_PU_MARK,
0452
0453 PINMUX_MARK_END,
0454 };
0455
0456 static const u16 pinmux_data[] = {
0457
0458 PINMUX_DATA_ALL(),
0459
0460
0461 PINMUX_DATA(VBUS_0_MARK, PORT0_FN1),
0462 PINMUX_DATA(GPI0_MARK, PORT1_FN1),
0463 PINMUX_DATA(GPI1_MARK, PORT2_FN1),
0464 PINMUX_DATA(GPI2_MARK, PORT3_FN1),
0465 PINMUX_DATA(GPI3_MARK, PORT4_FN1),
0466 PINMUX_DATA(GPI4_MARK, PORT5_FN1),
0467 PINMUX_DATA(GPI5_MARK, PORT6_FN1),
0468 PINMUX_DATA(GPI6_MARK, PORT7_FN1),
0469 PINMUX_DATA(GPI7_MARK, PORT8_FN1),
0470 PINMUX_DATA(SCIFA7_RXD_MARK, PORT12_FN2),
0471 PINMUX_DATA(SCIFA7_CTS__MARK, PORT13_FN2),
0472 PINMUX_DATA(GPO7_MARK, PORT14_FN1), \
0473 PINMUX_DATA(MFG0_OUT2_MARK, PORT14_FN4),
0474 PINMUX_DATA(GPO6_MARK, PORT15_FN1), \
0475 PINMUX_DATA(MFG1_OUT2_MARK, PORT15_FN4),
0476 PINMUX_DATA(GPO5_MARK, PORT16_FN1), \
0477 PINMUX_DATA(SCIFA0_SCK_MARK, PORT16_FN2), \
0478 PINMUX_DATA(FSICOSLDT3_MARK, PORT16_FN3), \
0479 PINMUX_DATA(PORT16_VIO_CKOR_MARK, PORT16_FN4),
0480 PINMUX_DATA(SCIFA0_TXD_MARK, PORT17_FN2),
0481 PINMUX_DATA(SCIFA7_TXD_MARK, PORT18_FN2),
0482 PINMUX_DATA(SCIFA7_RTS__MARK, PORT19_FN2), \
0483 PINMUX_DATA(PORT19_VIO_CKO2_MARK, PORT19_FN3),
0484 PINMUX_DATA(GPO0_MARK, PORT20_FN1),
0485 PINMUX_DATA(GPO1_MARK, PORT21_FN1),
0486 PINMUX_DATA(GPO2_MARK, PORT22_FN1), \
0487 PINMUX_DATA(STATUS0_MARK, PORT22_FN2),
0488 PINMUX_DATA(GPO3_MARK, PORT23_FN1), \
0489 PINMUX_DATA(STATUS1_MARK, PORT23_FN2),
0490 PINMUX_DATA(GPO4_MARK, PORT24_FN1), \
0491 PINMUX_DATA(STATUS2_MARK, PORT24_FN2),
0492 PINMUX_DATA(VINT_MARK, PORT25_FN1),
0493 PINMUX_DATA(TCKON_MARK, PORT26_FN1),
0494 PINMUX_DATA(XDVFS1_MARK, PORT27_FN1), \
0495 PINMUX_DATA(PORT27_I2C_SCL2_MARK, PORT27_FN2, MSEL2CR_MSEL17_0,
0496 MSEL2CR_MSEL16_1), \
0497 PINMUX_DATA(PORT27_I2C_SCL3_MARK, PORT27_FN3, MSEL2CR_MSEL19_0,
0498 MSEL2CR_MSEL18_1), \
0499 PINMUX_DATA(MFG0_OUT1_MARK, PORT27_FN4), \
0500 PINMUX_DATA(PORT27_IROUT_MARK, PORT27_FN7),
0501 PINMUX_DATA(XDVFS2_MARK, PORT28_FN1), \
0502 PINMUX_DATA(PORT28_I2C_SDA2_MARK, PORT28_FN2, MSEL2CR_MSEL17_0,
0503 MSEL2CR_MSEL16_1), \
0504 PINMUX_DATA(PORT28_I2C_SDA3_MARK, PORT28_FN3, MSEL2CR_MSEL19_0,
0505 MSEL2CR_MSEL18_1), \
0506 PINMUX_DATA(PORT28_TPU1TO1_MARK, PORT28_FN7),
0507 PINMUX_DATA(SIM_RST_MARK, PORT29_FN1), \
0508 PINMUX_DATA(PORT29_TPU1TO1_MARK, PORT29_FN4),
0509 PINMUX_DATA(SIM_CLK_MARK, PORT30_FN1), \
0510 PINMUX_DATA(PORT30_VIO_CKOR_MARK, PORT30_FN4),
0511 PINMUX_DATA(SIM_D_MARK, PORT31_FN1), \
0512 PINMUX_DATA(PORT31_IROUT_MARK, PORT31_FN4),
0513 PINMUX_DATA(SCIFA4_TXD_MARK, PORT32_FN2),
0514 PINMUX_DATA(SCIFA4_RXD_MARK, PORT33_FN2), \
0515 PINMUX_DATA(XWUP_MARK, PORT33_FN3),
0516 PINMUX_DATA(SCIFA4_RTS__MARK, PORT34_FN2),
0517 PINMUX_DATA(SCIFA4_CTS__MARK, PORT35_FN2),
0518 PINMUX_DATA(FSIBOBT_MARK, PORT36_FN1), \
0519 PINMUX_DATA(FSIBIBT_MARK, PORT36_FN2),
0520 PINMUX_DATA(FSIBOLR_MARK, PORT37_FN1), \
0521 PINMUX_DATA(FSIBILR_MARK, PORT37_FN2),
0522 PINMUX_DATA(FSIBOSLD_MARK, PORT38_FN1),
0523 PINMUX_DATA(FSIBISLD_MARK, PORT39_FN1),
0524 PINMUX_DATA(VACK_MARK, PORT40_FN1),
0525 PINMUX_DATA(XTAL1L_MARK, PORT41_FN1),
0526 PINMUX_DATA(SCIFA0_RTS__MARK, PORT42_FN2), \
0527 PINMUX_DATA(FSICOSLDT2_MARK, PORT42_FN3),
0528 PINMUX_DATA(SCIFA0_RXD_MARK, PORT43_FN2),
0529 PINMUX_DATA(SCIFA0_CTS__MARK, PORT44_FN2), \
0530 PINMUX_DATA(FSICOSLDT1_MARK, PORT44_FN3),
0531 PINMUX_DATA(FSICOBT_MARK, PORT45_FN1), \
0532 PINMUX_DATA(FSICIBT_MARK, PORT45_FN2), \
0533 PINMUX_DATA(FSIDOBT_MARK, PORT45_FN3), \
0534 PINMUX_DATA(FSIDIBT_MARK, PORT45_FN4),
0535 PINMUX_DATA(FSICOLR_MARK, PORT46_FN1), \
0536 PINMUX_DATA(FSICILR_MARK, PORT46_FN2), \
0537 PINMUX_DATA(FSIDOLR_MARK, PORT46_FN3), \
0538 PINMUX_DATA(FSIDILR_MARK, PORT46_FN4),
0539 PINMUX_DATA(FSICOSLD_MARK, PORT47_FN1), \
0540 PINMUX_DATA(PORT47_FSICSPDIF_MARK, PORT47_FN2),
0541 PINMUX_DATA(FSICISLD_MARK, PORT48_FN1), \
0542 PINMUX_DATA(FSIDISLD_MARK, PORT48_FN3),
0543 PINMUX_DATA(FSIACK_MARK, PORT49_FN1), \
0544 PINMUX_DATA(PORT49_IRDA_OUT_MARK, PORT49_FN2, MSEL4CR_MSEL19_1), \
0545 PINMUX_DATA(PORT49_IROUT_MARK, PORT49_FN4), \
0546 PINMUX_DATA(FSIAOMC_MARK, PORT49_FN5),
0547 PINMUX_DATA(FSIAOLR_MARK, PORT50_FN1), \
0548 PINMUX_DATA(BBIF2_TSYNC2_MARK, PORT50_FN2), \
0549 PINMUX_DATA(TPU2TO2_MARK, PORT50_FN3), \
0550 PINMUX_DATA(FSIAILR_MARK, PORT50_FN5),
0551
0552 PINMUX_DATA(FSIAOBT_MARK, PORT51_FN1), \
0553 PINMUX_DATA(BBIF2_TSCK2_MARK, PORT51_FN2), \
0554 PINMUX_DATA(TPU2TO3_MARK, PORT51_FN3), \
0555 PINMUX_DATA(FSIAIBT_MARK, PORT51_FN5),
0556 PINMUX_DATA(FSIAOSLD_MARK, PORT52_FN1), \
0557 PINMUX_DATA(BBIF2_TXD2_MARK, PORT52_FN2),
0558 PINMUX_DATA(FSIASPDIF_MARK, PORT53_FN1), \
0559 PINMUX_DATA(PORT53_IRDA_IN_MARK, PORT53_FN2, MSEL4CR_MSEL19_1), \
0560 PINMUX_DATA(TPU3TO3_MARK, PORT53_FN3), \
0561 PINMUX_DATA(FSIBSPDIF_MARK, PORT53_FN5), \
0562 PINMUX_DATA(PORT53_FSICSPDIF_MARK, PORT53_FN6),
0563 PINMUX_DATA(FSIBCK_MARK, PORT54_FN1), \
0564 PINMUX_DATA(PORT54_IRDA_FIRSEL_MARK, PORT54_FN2, MSEL4CR_MSEL19_1), \
0565 PINMUX_DATA(TPU3TO2_MARK, PORT54_FN3), \
0566 PINMUX_DATA(FSIBOMC_MARK, PORT54_FN5), \
0567 PINMUX_DATA(FSICCK_MARK, PORT54_FN6), \
0568 PINMUX_DATA(FSICOMC_MARK, PORT54_FN7),
0569 PINMUX_DATA(FSIAISLD_MARK, PORT55_FN1), \
0570 PINMUX_DATA(TPU0TO0_MARK, PORT55_FN3),
0571 PINMUX_DATA(A0_MARK, PORT57_FN1), \
0572 PINMUX_DATA(BS__MARK, PORT57_FN2),
0573 PINMUX_DATA(A12_MARK, PORT58_FN1), \
0574 PINMUX_DATA(PORT58_KEYOUT7_MARK, PORT58_FN2), \
0575 PINMUX_DATA(TPU4TO2_MARK, PORT58_FN4),
0576 PINMUX_DATA(A13_MARK, PORT59_FN1), \
0577 PINMUX_DATA(PORT59_KEYOUT6_MARK, PORT59_FN2), \
0578 PINMUX_DATA(TPU0TO1_MARK, PORT59_FN4),
0579 PINMUX_DATA(A14_MARK, PORT60_FN1), \
0580 PINMUX_DATA(KEYOUT5_MARK, PORT60_FN2),
0581 PINMUX_DATA(A15_MARK, PORT61_FN1), \
0582 PINMUX_DATA(KEYOUT4_MARK, PORT61_FN2),
0583 PINMUX_DATA(A16_MARK, PORT62_FN1), \
0584 PINMUX_DATA(KEYOUT3_MARK, PORT62_FN2), \
0585 PINMUX_DATA(MSIOF0_SS1_MARK, PORT62_FN4, MSEL3CR_MSEL11_0),
0586 PINMUX_DATA(A17_MARK, PORT63_FN1), \
0587 PINMUX_DATA(KEYOUT2_MARK, PORT63_FN2), \
0588 PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT63_FN4, MSEL3CR_MSEL11_0),
0589 PINMUX_DATA(A18_MARK, PORT64_FN1), \
0590 PINMUX_DATA(KEYOUT1_MARK, PORT64_FN2), \
0591 PINMUX_DATA(MSIOF0_TSCK_MARK, PORT64_FN4, MSEL3CR_MSEL11_0),
0592 PINMUX_DATA(A19_MARK, PORT65_FN1), \
0593 PINMUX_DATA(KEYOUT0_MARK, PORT65_FN2), \
0594 PINMUX_DATA(MSIOF0_TXD_MARK, PORT65_FN4, MSEL3CR_MSEL11_0),
0595 PINMUX_DATA(A20_MARK, PORT66_FN1), \
0596 PINMUX_DATA(KEYIN0_MARK, PORT66_FN2), \
0597 PINMUX_DATA(MSIOF0_RSCK_MARK, PORT66_FN4, MSEL3CR_MSEL11_0),
0598 PINMUX_DATA(A21_MARK, PORT67_FN1), \
0599 PINMUX_DATA(KEYIN1_MARK, PORT67_FN2), \
0600 PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT67_FN4, MSEL3CR_MSEL11_0),
0601 PINMUX_DATA(A22_MARK, PORT68_FN1), \
0602 PINMUX_DATA(KEYIN2_MARK, PORT68_FN2), \
0603 PINMUX_DATA(MSIOF0_MCK0_MARK, PORT68_FN4, MSEL3CR_MSEL11_0),
0604 PINMUX_DATA(A23_MARK, PORT69_FN1), \
0605 PINMUX_DATA(KEYIN3_MARK, PORT69_FN2), \
0606 PINMUX_DATA(MSIOF0_MCK1_MARK, PORT69_FN4, MSEL3CR_MSEL11_0),
0607 PINMUX_DATA(A24_MARK, PORT70_FN1), \
0608 PINMUX_DATA(KEYIN4_MARK, PORT70_FN2), \
0609 PINMUX_DATA(MSIOF0_RXD_MARK, PORT70_FN4, MSEL3CR_MSEL11_0),
0610 PINMUX_DATA(A25_MARK, PORT71_FN1), \
0611 PINMUX_DATA(KEYIN5_MARK, PORT71_FN2), \
0612 PINMUX_DATA(MSIOF0_SS2_MARK, PORT71_FN4, MSEL3CR_MSEL11_0),
0613 PINMUX_DATA(A26_MARK, PORT72_FN1), \
0614 PINMUX_DATA(KEYIN6_MARK, PORT72_FN2),
0615 PINMUX_DATA(KEYIN7_MARK, PORT73_FN2),
0616 PINMUX_DATA(D0_NAF0_MARK, PORT74_FN1),
0617 PINMUX_DATA(D1_NAF1_MARK, PORT75_FN1),
0618 PINMUX_DATA(D2_NAF2_MARK, PORT76_FN1),
0619 PINMUX_DATA(D3_NAF3_MARK, PORT77_FN1),
0620 PINMUX_DATA(D4_NAF4_MARK, PORT78_FN1),
0621 PINMUX_DATA(D5_NAF5_MARK, PORT79_FN1),
0622 PINMUX_DATA(D6_NAF6_MARK, PORT80_FN1),
0623 PINMUX_DATA(D7_NAF7_MARK, PORT81_FN1),
0624 PINMUX_DATA(D8_NAF8_MARK, PORT82_FN1),
0625 PINMUX_DATA(D9_NAF9_MARK, PORT83_FN1),
0626 PINMUX_DATA(D10_NAF10_MARK, PORT84_FN1),
0627 PINMUX_DATA(D11_NAF11_MARK, PORT85_FN1),
0628 PINMUX_DATA(D12_NAF12_MARK, PORT86_FN1),
0629 PINMUX_DATA(D13_NAF13_MARK, PORT87_FN1),
0630 PINMUX_DATA(D14_NAF14_MARK, PORT88_FN1),
0631 PINMUX_DATA(D15_NAF15_MARK, PORT89_FN1),
0632 PINMUX_DATA(CS4__MARK, PORT90_FN1),
0633 PINMUX_DATA(CS5A__MARK, PORT91_FN1), \
0634 PINMUX_DATA(PORT91_RDWR_MARK, PORT91_FN2),
0635 PINMUX_DATA(CS5B__MARK, PORT92_FN1), \
0636 PINMUX_DATA(FCE1__MARK, PORT92_FN2),
0637 PINMUX_DATA(CS6B__MARK, PORT93_FN1), \
0638 PINMUX_DATA(DACK0_MARK, PORT93_FN4),
0639 PINMUX_DATA(FCE0__MARK, PORT94_FN1), \
0640 PINMUX_DATA(CS6A__MARK, PORT94_FN2),
0641 PINMUX_DATA(WAIT__MARK, PORT95_FN1), \
0642 PINMUX_DATA(DREQ0_MARK, PORT95_FN2),
0643 PINMUX_DATA(RD__FSC_MARK, PORT96_FN1),
0644 PINMUX_DATA(WE0__FWE_MARK, PORT97_FN1), \
0645 PINMUX_DATA(RDWR_FWE_MARK, PORT97_FN2),
0646 PINMUX_DATA(WE1__MARK, PORT98_FN1),
0647 PINMUX_DATA(FRB_MARK, PORT99_FN1),
0648 PINMUX_DATA(CKO_MARK, PORT100_FN1),
0649 PINMUX_DATA(NBRSTOUT__MARK, PORT101_FN1),
0650 PINMUX_DATA(NBRST__MARK, PORT102_FN1),
0651 PINMUX_DATA(BBIF2_TXD_MARK, PORT103_FN3),
0652 PINMUX_DATA(BBIF2_RXD_MARK, PORT104_FN3),
0653 PINMUX_DATA(BBIF2_SYNC_MARK, PORT105_FN3),
0654 PINMUX_DATA(BBIF2_SCK_MARK, PORT106_FN3),
0655 PINMUX_DATA(SCIFA3_CTS__MARK, PORT107_FN3), \
0656 PINMUX_DATA(MFG3_IN2_MARK, PORT107_FN4),
0657 PINMUX_DATA(SCIFA3_RXD_MARK, PORT108_FN3), \
0658 PINMUX_DATA(MFG3_IN1_MARK, PORT108_FN4),
0659 PINMUX_DATA(BBIF1_SS2_MARK, PORT109_FN2), \
0660 PINMUX_DATA(SCIFA3_RTS__MARK, PORT109_FN3), \
0661 PINMUX_DATA(MFG3_OUT1_MARK, PORT109_FN4),
0662 PINMUX_DATA(SCIFA3_TXD_MARK, PORT110_FN3),
0663 PINMUX_DATA(HSI_RX_DATA_MARK, PORT111_FN1), \
0664 PINMUX_DATA(BBIF1_RXD_MARK, PORT111_FN3),
0665 PINMUX_DATA(HSI_TX_WAKE_MARK, PORT112_FN1), \
0666 PINMUX_DATA(BBIF1_TSCK_MARK, PORT112_FN3),
0667 PINMUX_DATA(HSI_TX_DATA_MARK, PORT113_FN1), \
0668 PINMUX_DATA(BBIF1_TSYNC_MARK, PORT113_FN3),
0669 PINMUX_DATA(HSI_TX_READY_MARK, PORT114_FN1), \
0670 PINMUX_DATA(BBIF1_TXD_MARK, PORT114_FN3),
0671 PINMUX_DATA(HSI_RX_READY_MARK, PORT115_FN1), \
0672 PINMUX_DATA(BBIF1_RSCK_MARK, PORT115_FN3), \
0673 PINMUX_DATA(PORT115_I2C_SCL2_MARK, PORT115_FN5, MSEL2CR_MSEL17_1), \
0674 PINMUX_DATA(PORT115_I2C_SCL3_MARK, PORT115_FN6, MSEL2CR_MSEL19_1),
0675 PINMUX_DATA(HSI_RX_WAKE_MARK, PORT116_FN1), \
0676 PINMUX_DATA(BBIF1_RSYNC_MARK, PORT116_FN3), \
0677 PINMUX_DATA(PORT116_I2C_SDA2_MARK, PORT116_FN5, MSEL2CR_MSEL17_1), \
0678 PINMUX_DATA(PORT116_I2C_SDA3_MARK, PORT116_FN6, MSEL2CR_MSEL19_1),
0679 PINMUX_DATA(HSI_RX_FLAG_MARK, PORT117_FN1), \
0680 PINMUX_DATA(BBIF1_SS1_MARK, PORT117_FN2), \
0681 PINMUX_DATA(BBIF1_FLOW_MARK, PORT117_FN3),
0682 PINMUX_DATA(HSI_TX_FLAG_MARK, PORT118_FN1),
0683 PINMUX_DATA(VIO_VD_MARK, PORT128_FN1), \
0684 PINMUX_DATA(PORT128_LCD2VSYN_MARK, PORT128_FN4, MSEL3CR_MSEL2_0), \
0685 PINMUX_DATA(VIO2_VD_MARK, PORT128_FN6, MSEL4CR_MSEL27_0), \
0686 PINMUX_DATA(LCD2D0_MARK, PORT128_FN7),
0687
0688 PINMUX_DATA(VIO_HD_MARK, PORT129_FN1), \
0689 PINMUX_DATA(PORT129_LCD2HSYN_MARK, PORT129_FN4), \
0690 PINMUX_DATA(PORT129_LCD2CS__MARK, PORT129_FN5), \
0691 PINMUX_DATA(VIO2_HD_MARK, PORT129_FN6, MSEL4CR_MSEL27_0), \
0692 PINMUX_DATA(LCD2D1_MARK, PORT129_FN7),
0693 PINMUX_DATA(VIO_D0_MARK, PORT130_FN1), \
0694 PINMUX_DATA(PORT130_MSIOF2_RXD_MARK, PORT130_FN3, MSEL4CR_MSEL11_0,
0695 MSEL4CR_MSEL10_1), \
0696 PINMUX_DATA(LCD2D10_MARK, PORT130_FN7),
0697 PINMUX_DATA(VIO_D1_MARK, PORT131_FN1), \
0698 PINMUX_DATA(PORT131_KEYOUT6_MARK, PORT131_FN2), \
0699 PINMUX_DATA(PORT131_MSIOF2_SS1_MARK, PORT131_FN3), \
0700 PINMUX_DATA(PORT131_KEYOUT11_MARK, PORT131_FN4), \
0701 PINMUX_DATA(LCD2D11_MARK, PORT131_FN7),
0702 PINMUX_DATA(VIO_D2_MARK, PORT132_FN1), \
0703 PINMUX_DATA(PORT132_KEYOUT7_MARK, PORT132_FN2), \
0704 PINMUX_DATA(PORT132_MSIOF2_SS2_MARK, PORT132_FN3), \
0705 PINMUX_DATA(PORT132_KEYOUT10_MARK, PORT132_FN4), \
0706 PINMUX_DATA(LCD2D12_MARK, PORT132_FN7),
0707 PINMUX_DATA(VIO_D3_MARK, PORT133_FN1), \
0708 PINMUX_DATA(MSIOF2_TSYNC_MARK, PORT133_FN3, MSEL4CR_MSEL11_0), \
0709 PINMUX_DATA(LCD2D13_MARK, PORT133_FN7),
0710 PINMUX_DATA(VIO_D4_MARK, PORT134_FN1), \
0711 PINMUX_DATA(MSIOF2_TXD_MARK, PORT134_FN3, MSEL4CR_MSEL11_0), \
0712 PINMUX_DATA(LCD2D14_MARK, PORT134_FN7),
0713 PINMUX_DATA(VIO_D5_MARK, PORT135_FN1), \
0714 PINMUX_DATA(MSIOF2_TSCK_MARK, PORT135_FN3, MSEL4CR_MSEL11_0), \
0715 PINMUX_DATA(LCD2D15_MARK, PORT135_FN7),
0716 PINMUX_DATA(VIO_D6_MARK, PORT136_FN1), \
0717 PINMUX_DATA(PORT136_KEYOUT8_MARK, PORT136_FN2), \
0718 PINMUX_DATA(LCD2D16_MARK, PORT136_FN7),
0719 PINMUX_DATA(VIO_D7_MARK, PORT137_FN1), \
0720 PINMUX_DATA(PORT137_KEYOUT9_MARK, PORT137_FN2), \
0721 PINMUX_DATA(LCD2D17_MARK, PORT137_FN7),
0722 PINMUX_DATA(VIO_D8_MARK, PORT138_FN1), \
0723 PINMUX_DATA(PORT138_KEYOUT8_MARK, PORT138_FN2), \
0724 PINMUX_DATA(VIO2_D0_MARK, PORT138_FN6), \
0725 PINMUX_DATA(LCD2D6_MARK, PORT138_FN7),
0726 PINMUX_DATA(VIO_D9_MARK, PORT139_FN1), \
0727 PINMUX_DATA(PORT139_KEYOUT9_MARK, PORT139_FN2), \
0728 PINMUX_DATA(VIO2_D1_MARK, PORT139_FN6), \
0729 PINMUX_DATA(LCD2D7_MARK, PORT139_FN7),
0730 PINMUX_DATA(VIO_D10_MARK, PORT140_FN1), \
0731 PINMUX_DATA(TPU0TO2_MARK, PORT140_FN4), \
0732 PINMUX_DATA(VIO2_D2_MARK, PORT140_FN6), \
0733 PINMUX_DATA(LCD2D8_MARK, PORT140_FN7),
0734 PINMUX_DATA(VIO_D11_MARK, PORT141_FN1), \
0735 PINMUX_DATA(TPU0TO3_MARK, PORT141_FN4), \
0736 PINMUX_DATA(VIO2_D3_MARK, PORT141_FN6), \
0737 PINMUX_DATA(LCD2D9_MARK, PORT141_FN7),
0738 PINMUX_DATA(VIO_D12_MARK, PORT142_FN1), \
0739 PINMUX_DATA(PORT142_KEYOUT10_MARK, PORT142_FN2), \
0740 PINMUX_DATA(VIO2_D4_MARK, PORT142_FN6), \
0741 PINMUX_DATA(LCD2D2_MARK, PORT142_FN7),
0742 PINMUX_DATA(VIO_D13_MARK, PORT143_FN1), \
0743 PINMUX_DATA(PORT143_KEYOUT11_MARK, PORT143_FN2), \
0744 PINMUX_DATA(PORT143_KEYOUT6_MARK, PORT143_FN3), \
0745 PINMUX_DATA(VIO2_D5_MARK, PORT143_FN6), \
0746 PINMUX_DATA(LCD2D3_MARK, PORT143_FN7),
0747 PINMUX_DATA(VIO_D14_MARK, PORT144_FN1), \
0748 PINMUX_DATA(PORT144_KEYOUT7_MARK, PORT144_FN2), \
0749 PINMUX_DATA(VIO2_D6_MARK, PORT144_FN6), \
0750 PINMUX_DATA(LCD2D4_MARK, PORT144_FN7),
0751 PINMUX_DATA(VIO_D15_MARK, PORT145_FN1), \
0752 PINMUX_DATA(TPU1TO3_MARK, PORT145_FN3), \
0753 PINMUX_DATA(PORT145_LCD2DISP_MARK, PORT145_FN4), \
0754 PINMUX_DATA(PORT145_LCD2RS_MARK, PORT145_FN5), \
0755 PINMUX_DATA(VIO2_D7_MARK, PORT145_FN6), \
0756 PINMUX_DATA(LCD2D5_MARK, PORT145_FN7),
0757 PINMUX_DATA(VIO_CLK_MARK, PORT146_FN1), \
0758 PINMUX_DATA(LCD2DCK_MARK, PORT146_FN4), \
0759 PINMUX_DATA(PORT146_LCD2WR__MARK, PORT146_FN5), \
0760 PINMUX_DATA(VIO2_CLK_MARK, PORT146_FN6, MSEL4CR_MSEL27_0), \
0761 PINMUX_DATA(LCD2D18_MARK, PORT146_FN7),
0762 PINMUX_DATA(VIO_FIELD_MARK, PORT147_FN1), \
0763 PINMUX_DATA(LCD2RD__MARK, PORT147_FN4), \
0764 PINMUX_DATA(VIO2_FIELD_MARK, PORT147_FN6, MSEL4CR_MSEL27_0), \
0765 PINMUX_DATA(LCD2D19_MARK, PORT147_FN7),
0766 PINMUX_DATA(VIO_CKO_MARK, PORT148_FN1),
0767 PINMUX_DATA(A27_MARK, PORT149_FN1), \
0768 PINMUX_DATA(PORT149_RDWR_MARK, PORT149_FN2), \
0769 PINMUX_DATA(MFG0_IN1_MARK, PORT149_FN3), \
0770 PINMUX_DATA(PORT149_KEYOUT9_MARK, PORT149_FN4),
0771 PINMUX_DATA(MFG0_IN2_MARK, PORT150_FN3),
0772 PINMUX_DATA(TS_SPSYNC3_MARK, PORT151_FN4), \
0773 PINMUX_DATA(MSIOF2_RSCK_MARK, PORT151_FN5),
0774 PINMUX_DATA(TS_SDAT3_MARK, PORT152_FN4), \
0775 PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT152_FN5),
0776 PINMUX_DATA(TPU1TO2_MARK, PORT153_FN3), \
0777 PINMUX_DATA(TS_SDEN3_MARK, PORT153_FN4), \
0778 PINMUX_DATA(PORT153_MSIOF2_SS1_MARK, PORT153_FN5),
0779 PINMUX_DATA(SCIFA2_TXD1_MARK, PORT154_FN2, MSEL3CR_MSEL9_0), \
0780 PINMUX_DATA(MSIOF2_MCK0_MARK, PORT154_FN5),
0781 PINMUX_DATA(SCIFA2_RXD1_MARK, PORT155_FN2, MSEL3CR_MSEL9_0), \
0782 PINMUX_DATA(MSIOF2_MCK1_MARK, PORT155_FN5),
0783 PINMUX_DATA(SCIFA2_RTS1__MARK, PORT156_FN2, MSEL3CR_MSEL9_0), \
0784 PINMUX_DATA(PORT156_MSIOF2_SS2_MARK, PORT156_FN5),
0785 PINMUX_DATA(SCIFA2_CTS1__MARK, PORT157_FN2, MSEL3CR_MSEL9_0), \
0786 PINMUX_DATA(PORT157_MSIOF2_RXD_MARK, PORT157_FN5, MSEL4CR_MSEL11_0,
0787 MSEL4CR_MSEL10_0),
0788 PINMUX_DATA(DINT__MARK, PORT158_FN1), \
0789 PINMUX_DATA(SCIFA2_SCK1_MARK, PORT158_FN2, MSEL3CR_MSEL9_0), \
0790 PINMUX_DATA(TS_SCK3_MARK, PORT158_FN4),
0791 PINMUX_DATA(PORT159_SCIFB_SCK_MARK, PORT159_FN1, MSEL4CR_MSEL22_0), \
0792 PINMUX_DATA(PORT159_SCIFA5_SCK_MARK, PORT159_FN2, MSEL4CR_MSEL21_1), \
0793 PINMUX_DATA(NMI_MARK, PORT159_FN3),
0794 PINMUX_DATA(PORT160_SCIFB_TXD_MARK, PORT160_FN1, MSEL4CR_MSEL22_0), \
0795 PINMUX_DATA(PORT160_SCIFA5_TXD_MARK, PORT160_FN2, MSEL4CR_MSEL21_1),
0796 PINMUX_DATA(PORT161_SCIFB_CTS__MARK, PORT161_FN1, MSEL4CR_MSEL22_0), \
0797 PINMUX_DATA(PORT161_SCIFA5_CTS__MARK, PORT161_FN2, MSEL4CR_MSEL21_1),
0798 PINMUX_DATA(PORT162_SCIFB_RXD_MARK, PORT162_FN1, MSEL4CR_MSEL22_0), \
0799 PINMUX_DATA(PORT162_SCIFA5_RXD_MARK, PORT162_FN2, MSEL4CR_MSEL21_1),
0800 PINMUX_DATA(PORT163_SCIFB_RTS__MARK, PORT163_FN1, MSEL4CR_MSEL22_0), \
0801 PINMUX_DATA(PORT163_SCIFA5_RTS__MARK, PORT163_FN2, MSEL4CR_MSEL21_1), \
0802 PINMUX_DATA(TPU3TO0_MARK, PORT163_FN5),
0803 PINMUX_DATA(LCDD0_MARK, PORT192_FN1),
0804 PINMUX_DATA(LCDD1_MARK, PORT193_FN1), \
0805 PINMUX_DATA(PORT193_SCIFA5_CTS__MARK, PORT193_FN3, MSEL4CR_MSEL21_0,
0806 MSEL4CR_MSEL20_1), \
0807 PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT193_FN5),
0808 PINMUX_DATA(LCDD2_MARK, PORT194_FN1), \
0809 PINMUX_DATA(PORT194_SCIFA5_RTS__MARK, PORT194_FN3, MSEL4CR_MSEL21_0,
0810 MSEL4CR_MSEL20_1), \
0811 PINMUX_DATA(BBIF2_TSCK1_MARK, PORT194_FN5),
0812 PINMUX_DATA(LCDD3_MARK, PORT195_FN1), \
0813 PINMUX_DATA(PORT195_SCIFA5_RXD_MARK, PORT195_FN3, MSEL4CR_MSEL21_0,
0814 MSEL4CR_MSEL20_1), \
0815 PINMUX_DATA(BBIF2_TXD1_MARK, PORT195_FN5),
0816 PINMUX_DATA(LCDD4_MARK, PORT196_FN1), \
0817 PINMUX_DATA(PORT196_SCIFA5_TXD_MARK, PORT196_FN3, MSEL4CR_MSEL21_0,
0818 MSEL4CR_MSEL20_1),
0819 PINMUX_DATA(LCDD5_MARK, PORT197_FN1), \
0820 PINMUX_DATA(PORT197_SCIFA5_SCK_MARK, PORT197_FN3, MSEL4CR_MSEL21_0,
0821 MSEL4CR_MSEL20_1), \
0822 PINMUX_DATA(MFG2_OUT2_MARK, PORT197_FN5), \
0823 PINMUX_DATA(TPU2TO1_MARK, PORT197_FN7),
0824 PINMUX_DATA(LCDD6_MARK, PORT198_FN1),
0825 PINMUX_DATA(LCDD7_MARK, PORT199_FN1), \
0826 PINMUX_DATA(TPU4TO1_MARK, PORT199_FN2), \
0827 PINMUX_DATA(MFG4_OUT2_MARK, PORT199_FN5),
0828 PINMUX_DATA(LCDD8_MARK, PORT200_FN1), \
0829 PINMUX_DATA(D16_MARK, PORT200_FN6),
0830 PINMUX_DATA(LCDD9_MARK, PORT201_FN1), \
0831 PINMUX_DATA(D17_MARK, PORT201_FN6),
0832 PINMUX_DATA(LCDD10_MARK, PORT202_FN1), \
0833 PINMUX_DATA(D18_MARK, PORT202_FN6),
0834 PINMUX_DATA(LCDD11_MARK, PORT203_FN1), \
0835 PINMUX_DATA(D19_MARK, PORT203_FN6),
0836 PINMUX_DATA(LCDD12_MARK, PORT204_FN1), \
0837 PINMUX_DATA(D20_MARK, PORT204_FN6),
0838 PINMUX_DATA(LCDD13_MARK, PORT205_FN1), \
0839 PINMUX_DATA(D21_MARK, PORT205_FN6),
0840 PINMUX_DATA(LCDD14_MARK, PORT206_FN1), \
0841 PINMUX_DATA(D22_MARK, PORT206_FN6),
0842 PINMUX_DATA(LCDD15_MARK, PORT207_FN1), \
0843 PINMUX_DATA(PORT207_MSIOF0L_SS1_MARK, PORT207_FN2, MSEL3CR_MSEL11_1), \
0844 PINMUX_DATA(D23_MARK, PORT207_FN6),
0845 PINMUX_DATA(LCDD16_MARK, PORT208_FN1), \
0846 PINMUX_DATA(PORT208_MSIOF0L_SS2_MARK, PORT208_FN2, MSEL3CR_MSEL11_1), \
0847 PINMUX_DATA(D24_MARK, PORT208_FN6),
0848 PINMUX_DATA(LCDD17_MARK, PORT209_FN1), \
0849 PINMUX_DATA(D25_MARK, PORT209_FN6),
0850 PINMUX_DATA(LCDD18_MARK, PORT210_FN1), \
0851 PINMUX_DATA(DREQ2_MARK, PORT210_FN2), \
0852 PINMUX_DATA(PORT210_MSIOF0L_SS1_MARK, PORT210_FN5, MSEL3CR_MSEL11_1), \
0853 PINMUX_DATA(D26_MARK, PORT210_FN6),
0854 PINMUX_DATA(LCDD19_MARK, PORT211_FN1), \
0855 PINMUX_DATA(PORT211_MSIOF0L_SS2_MARK, PORT211_FN5, MSEL3CR_MSEL11_1), \
0856 PINMUX_DATA(D27_MARK, PORT211_FN6),
0857 PINMUX_DATA(LCDD20_MARK, PORT212_FN1), \
0858 PINMUX_DATA(TS_SPSYNC1_MARK, PORT212_FN2), \
0859 PINMUX_DATA(MSIOF0L_MCK0_MARK, PORT212_FN5, MSEL3CR_MSEL11_1), \
0860 PINMUX_DATA(D28_MARK, PORT212_FN6),
0861 PINMUX_DATA(LCDD21_MARK, PORT213_FN1), \
0862 PINMUX_DATA(TS_SDAT1_MARK, PORT213_FN2), \
0863 PINMUX_DATA(MSIOF0L_MCK1_MARK, PORT213_FN5, MSEL3CR_MSEL11_1), \
0864 PINMUX_DATA(D29_MARK, PORT213_FN6),
0865 PINMUX_DATA(LCDD22_MARK, PORT214_FN1), \
0866 PINMUX_DATA(TS_SDEN1_MARK, PORT214_FN2), \
0867 PINMUX_DATA(MSIOF0L_RSCK_MARK, PORT214_FN5, MSEL3CR_MSEL11_1), \
0868 PINMUX_DATA(D30_MARK, PORT214_FN6),
0869 PINMUX_DATA(LCDD23_MARK, PORT215_FN1), \
0870 PINMUX_DATA(TS_SCK1_MARK, PORT215_FN2), \
0871 PINMUX_DATA(MSIOF0L_RSYNC_MARK, PORT215_FN5, MSEL3CR_MSEL11_1), \
0872 PINMUX_DATA(D31_MARK, PORT215_FN6),
0873 PINMUX_DATA(LCDDCK_MARK, PORT216_FN1), \
0874 PINMUX_DATA(LCDWR__MARK, PORT216_FN2),
0875 PINMUX_DATA(LCDRD__MARK, PORT217_FN1), \
0876 PINMUX_DATA(DACK2_MARK, PORT217_FN2), \
0877 PINMUX_DATA(PORT217_LCD2RS_MARK, PORT217_FN3), \
0878 PINMUX_DATA(MSIOF0L_TSYNC_MARK, PORT217_FN5, MSEL3CR_MSEL11_1), \
0879 PINMUX_DATA(VIO2_FIELD3_MARK, PORT217_FN6, MSEL4CR_MSEL27_1,
0880 MSEL4CR_MSEL26_1), \
0881 PINMUX_DATA(PORT217_LCD2DISP_MARK, PORT217_FN7),
0882 PINMUX_DATA(LCDHSYN_MARK, PORT218_FN1), \
0883 PINMUX_DATA(LCDCS__MARK, PORT218_FN2), \
0884 PINMUX_DATA(LCDCS2__MARK, PORT218_FN3), \
0885 PINMUX_DATA(DACK3_MARK, PORT218_FN4), \
0886 PINMUX_DATA(PORT218_VIO_CKOR_MARK, PORT218_FN5),
0887 PINMUX_DATA(LCDDISP_MARK, PORT219_FN1), \
0888 PINMUX_DATA(LCDRS_MARK, PORT219_FN2), \
0889 PINMUX_DATA(PORT219_LCD2WR__MARK, PORT219_FN3), \
0890 PINMUX_DATA(DREQ3_MARK, PORT219_FN4), \
0891 PINMUX_DATA(MSIOF0L_TSCK_MARK, PORT219_FN5, MSEL3CR_MSEL11_1), \
0892 PINMUX_DATA(VIO2_CLK3_MARK, PORT219_FN6, MSEL4CR_MSEL27_1,
0893 MSEL4CR_MSEL26_1), \
0894 PINMUX_DATA(LCD2DCK_2_MARK, PORT219_FN7),
0895 PINMUX_DATA(LCDVSYN_MARK, PORT220_FN1), \
0896 PINMUX_DATA(LCDVSYN2_MARK, PORT220_FN2),
0897 PINMUX_DATA(LCDLCLK_MARK, PORT221_FN1), \
0898 PINMUX_DATA(DREQ1_MARK, PORT221_FN2), \
0899 PINMUX_DATA(PORT221_LCD2CS__MARK, PORT221_FN3), \
0900 PINMUX_DATA(PWEN_MARK, PORT221_FN4), \
0901 PINMUX_DATA(MSIOF0L_RXD_MARK, PORT221_FN5, MSEL3CR_MSEL11_1), \
0902 PINMUX_DATA(VIO2_HD3_MARK, PORT221_FN6, MSEL4CR_MSEL27_1,
0903 MSEL4CR_MSEL26_1), \
0904 PINMUX_DATA(PORT221_LCD2HSYN_MARK, PORT221_FN7),
0905 PINMUX_DATA(LCDDON_MARK, PORT222_FN1), \
0906 PINMUX_DATA(LCDDON2_MARK, PORT222_FN2), \
0907 PINMUX_DATA(DACK1_MARK, PORT222_FN3), \
0908 PINMUX_DATA(OVCN_MARK, PORT222_FN4), \
0909 PINMUX_DATA(MSIOF0L_TXD_MARK, PORT222_FN5, MSEL3CR_MSEL11_1), \
0910 PINMUX_DATA(VIO2_VD3_MARK, PORT222_FN6, MSEL4CR_MSEL27_1,
0911 MSEL4CR_MSEL26_1), \
0912 PINMUX_DATA(PORT222_LCD2VSYN_MARK, PORT222_FN7, MSEL3CR_MSEL2_1),
0913
0914 PINMUX_DATA(SCIFA1_TXD_MARK, PORT225_FN2), \
0915 PINMUX_DATA(OVCN2_MARK, PORT225_FN4),
0916 PINMUX_DATA(EXTLP_MARK, PORT226_FN1), \
0917 PINMUX_DATA(SCIFA1_SCK_MARK, PORT226_FN2), \
0918 PINMUX_DATA(PORT226_VIO_CKO2_MARK, PORT226_FN5),
0919 PINMUX_DATA(SCIFA1_RTS__MARK, PORT227_FN2), \
0920 PINMUX_DATA(IDIN_MARK, PORT227_FN4),
0921 PINMUX_DATA(SCIFA1_RXD_MARK, PORT228_FN2),
0922 PINMUX_DATA(SCIFA1_CTS__MARK, PORT229_FN2), \
0923 PINMUX_DATA(MFG1_IN1_MARK, PORT229_FN3),
0924 PINMUX_DATA(MSIOF1_TXD_MARK, PORT230_FN1), \
0925 PINMUX_DATA(SCIFA2_TXD2_MARK, PORT230_FN2, MSEL3CR_MSEL9_1),
0926 PINMUX_DATA(MSIOF1_TSYNC_MARK, PORT231_FN1), \
0927 PINMUX_DATA(SCIFA2_CTS2__MARK, PORT231_FN2, MSEL3CR_MSEL9_1),
0928 PINMUX_DATA(MSIOF1_TSCK_MARK, PORT232_FN1), \
0929 PINMUX_DATA(SCIFA2_SCK2_MARK, PORT232_FN2, MSEL3CR_MSEL9_1),
0930 PINMUX_DATA(MSIOF1_RXD_MARK, PORT233_FN1), \
0931 PINMUX_DATA(SCIFA2_RXD2_MARK, PORT233_FN2, MSEL3CR_MSEL9_1),
0932 PINMUX_DATA(MSIOF1_RSCK_MARK, PORT234_FN1), \
0933 PINMUX_DATA(SCIFA2_RTS2__MARK, PORT234_FN2, MSEL3CR_MSEL9_1), \
0934 PINMUX_DATA(VIO2_CLK2_MARK, PORT234_FN6, MSEL4CR_MSEL27_1,
0935 MSEL4CR_MSEL26_0), \
0936 PINMUX_DATA(LCD2D20_MARK, PORT234_FN7),
0937 PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT235_FN1), \
0938 PINMUX_DATA(MFG1_IN2_MARK, PORT235_FN3), \
0939 PINMUX_DATA(VIO2_VD2_MARK, PORT235_FN6, MSEL4CR_MSEL27_1,
0940 MSEL4CR_MSEL26_0), \
0941 PINMUX_DATA(LCD2D21_MARK, PORT235_FN7),
0942 PINMUX_DATA(MSIOF1_MCK0_MARK, PORT236_FN1), \
0943 PINMUX_DATA(PORT236_I2C_SDA2_MARK, PORT236_FN2, MSEL2CR_MSEL17_0,
0944 MSEL2CR_MSEL16_0),
0945 PINMUX_DATA(MSIOF1_MCK1_MARK, PORT237_FN1), \
0946 PINMUX_DATA(PORT237_I2C_SCL2_MARK, PORT237_FN2, MSEL2CR_MSEL17_0,
0947 MSEL2CR_MSEL16_0),
0948 PINMUX_DATA(MSIOF1_SS1_MARK, PORT238_FN1), \
0949 PINMUX_DATA(VIO2_FIELD2_MARK, PORT238_FN6, MSEL4CR_MSEL27_1,
0950 MSEL4CR_MSEL26_0), \
0951 PINMUX_DATA(LCD2D22_MARK, PORT238_FN7),
0952 PINMUX_DATA(MSIOF1_SS2_MARK, PORT239_FN1), \
0953 PINMUX_DATA(VIO2_HD2_MARK, PORT239_FN6, MSEL4CR_MSEL27_1,
0954 MSEL4CR_MSEL26_0), \
0955 PINMUX_DATA(LCD2D23_MARK, PORT239_FN7),
0956 PINMUX_DATA(SCIFA6_TXD_MARK, PORT240_FN1),
0957 PINMUX_DATA(PORT241_IRDA_OUT_MARK, PORT241_FN1, MSEL4CR_MSEL19_0), \
0958 PINMUX_DATA(PORT241_IROUT_MARK, PORT241_FN2), \
0959 PINMUX_DATA(MFG4_OUT1_MARK, PORT241_FN3), \
0960 PINMUX_DATA(TPU4TO0_MARK, PORT241_FN4),
0961 PINMUX_DATA(PORT242_IRDA_IN_MARK, PORT242_FN1, MSEL4CR_MSEL19_0), \
0962 PINMUX_DATA(MFG4_IN2_MARK, PORT242_FN3),
0963 PINMUX_DATA(PORT243_IRDA_FIRSEL_MARK, PORT243_FN1, MSEL4CR_MSEL19_0), \
0964 PINMUX_DATA(PORT243_VIO_CKO2_MARK, PORT243_FN2),
0965 PINMUX_DATA(PORT244_SCIFA5_CTS__MARK, PORT244_FN1, MSEL4CR_MSEL21_0,
0966 MSEL4CR_MSEL20_0), \
0967 PINMUX_DATA(MFG2_IN1_MARK, PORT244_FN2), \
0968 PINMUX_DATA(PORT244_SCIFB_CTS__MARK, PORT244_FN3, MSEL4CR_MSEL22_1), \
0969 PINMUX_DATA(MSIOF2R_RXD_MARK, PORT244_FN7, MSEL4CR_MSEL11_1),
0970 PINMUX_DATA(PORT245_SCIFA5_RTS__MARK, PORT245_FN1, MSEL4CR_MSEL21_0,
0971 MSEL4CR_MSEL20_0), \
0972 PINMUX_DATA(MFG2_IN2_MARK, PORT245_FN2), \
0973 PINMUX_DATA(PORT245_SCIFB_RTS__MARK, PORT245_FN3, MSEL4CR_MSEL22_1), \
0974 PINMUX_DATA(MSIOF2R_TXD_MARK, PORT245_FN7, MSEL4CR_MSEL11_1),
0975 PINMUX_DATA(PORT246_SCIFA5_RXD_MARK, PORT246_FN1, MSEL4CR_MSEL21_0,
0976 MSEL4CR_MSEL20_0), \
0977 PINMUX_DATA(MFG1_OUT1_MARK, PORT246_FN2), \
0978 PINMUX_DATA(PORT246_SCIFB_RXD_MARK, PORT246_FN3, MSEL4CR_MSEL22_1), \
0979 PINMUX_DATA(TPU1TO0_MARK, PORT246_FN4),
0980 PINMUX_DATA(PORT247_SCIFA5_TXD_MARK, PORT247_FN1, MSEL4CR_MSEL21_0,
0981 MSEL4CR_MSEL20_0), \
0982 PINMUX_DATA(MFG3_OUT2_MARK, PORT247_FN2), \
0983 PINMUX_DATA(PORT247_SCIFB_TXD_MARK, PORT247_FN3, MSEL4CR_MSEL22_1), \
0984 PINMUX_DATA(TPU3TO1_MARK, PORT247_FN4),
0985 PINMUX_DATA(PORT248_SCIFA5_SCK_MARK, PORT248_FN1, MSEL4CR_MSEL21_0,
0986 MSEL4CR_MSEL20_0), \
0987 PINMUX_DATA(MFG2_OUT1_MARK, PORT248_FN2), \
0988 PINMUX_DATA(PORT248_SCIFB_SCK_MARK, PORT248_FN3, MSEL4CR_MSEL22_1), \
0989 PINMUX_DATA(TPU2TO0_MARK, PORT248_FN4), \
0990 PINMUX_DATA(PORT248_I2C_SCL3_MARK, PORT248_FN5, MSEL2CR_MSEL19_0,
0991 MSEL2CR_MSEL18_0), \
0992 PINMUX_DATA(MSIOF2R_TSCK_MARK, PORT248_FN7, MSEL4CR_MSEL11_1),
0993 PINMUX_DATA(PORT249_IROUT_MARK, PORT249_FN1), \
0994 PINMUX_DATA(MFG4_IN1_MARK, PORT249_FN2), \
0995 PINMUX_DATA(PORT249_I2C_SDA3_MARK, PORT249_FN5, MSEL2CR_MSEL19_0,
0996 MSEL2CR_MSEL18_0), \
0997 PINMUX_DATA(MSIOF2R_TSYNC_MARK, PORT249_FN7, MSEL4CR_MSEL11_1),
0998 PINMUX_DATA(SDHICLK0_MARK, PORT250_FN1),
0999 PINMUX_DATA(SDHICD0_MARK, PORT251_FN1),
1000 PINMUX_DATA(SDHID0_0_MARK, PORT252_FN1),
1001 PINMUX_DATA(SDHID0_1_MARK, PORT253_FN1),
1002 PINMUX_DATA(SDHID0_2_MARK, PORT254_FN1),
1003 PINMUX_DATA(SDHID0_3_MARK, PORT255_FN1),
1004 PINMUX_DATA(SDHICMD0_MARK, PORT256_FN1),
1005 PINMUX_DATA(SDHIWP0_MARK, PORT257_FN1),
1006 PINMUX_DATA(SDHICLK1_MARK, PORT258_FN1),
1007 PINMUX_DATA(SDHID1_0_MARK, PORT259_FN1), \
1008 PINMUX_DATA(TS_SPSYNC2_MARK, PORT259_FN3),
1009 PINMUX_DATA(SDHID1_1_MARK, PORT260_FN1), \
1010 PINMUX_DATA(TS_SDAT2_MARK, PORT260_FN3),
1011 PINMUX_DATA(SDHID1_2_MARK, PORT261_FN1), \
1012 PINMUX_DATA(TS_SDEN2_MARK, PORT261_FN3),
1013 PINMUX_DATA(SDHID1_3_MARK, PORT262_FN1), \
1014 PINMUX_DATA(TS_SCK2_MARK, PORT262_FN3),
1015 PINMUX_DATA(SDHICMD1_MARK, PORT263_FN1),
1016 PINMUX_DATA(SDHICLK2_MARK, PORT264_FN1),
1017 PINMUX_DATA(SDHID2_0_MARK, PORT265_FN1), \
1018 PINMUX_DATA(TS_SPSYNC4_MARK, PORT265_FN3),
1019 PINMUX_DATA(SDHID2_1_MARK, PORT266_FN1), \
1020 PINMUX_DATA(TS_SDAT4_MARK, PORT266_FN3),
1021 PINMUX_DATA(SDHID2_2_MARK, PORT267_FN1), \
1022 PINMUX_DATA(TS_SDEN4_MARK, PORT267_FN3),
1023 PINMUX_DATA(SDHID2_3_MARK, PORT268_FN1), \
1024 PINMUX_DATA(TS_SCK4_MARK, PORT268_FN3),
1025 PINMUX_DATA(SDHICMD2_MARK, PORT269_FN1),
1026 PINMUX_DATA(MMCCLK0_MARK, PORT270_FN1, MSEL4CR_MSEL15_0),
1027 PINMUX_DATA(MMCD0_0_MARK, PORT271_FN1, MSEL4CR_MSEL15_0),
1028 PINMUX_DATA(MMCD0_1_MARK, PORT272_FN1, MSEL4CR_MSEL15_0),
1029 PINMUX_DATA(MMCD0_2_MARK, PORT273_FN1, MSEL4CR_MSEL15_0),
1030 PINMUX_DATA(MMCD0_3_MARK, PORT274_FN1, MSEL4CR_MSEL15_0),
1031 PINMUX_DATA(MMCD0_4_MARK, PORT275_FN1, MSEL4CR_MSEL15_0),
1032 PINMUX_DATA(TS_SPSYNC5_MARK, PORT275_FN3),
1033 PINMUX_DATA(MMCD0_5_MARK, PORT276_FN1, MSEL4CR_MSEL15_0),
1034 PINMUX_DATA(TS_SDAT5_MARK, PORT276_FN3),
1035 PINMUX_DATA(MMCD0_6_MARK, PORT277_FN1, MSEL4CR_MSEL15_0),
1036 PINMUX_DATA(TS_SDEN5_MARK, PORT277_FN3),
1037 PINMUX_DATA(MMCD0_7_MARK, PORT278_FN1, MSEL4CR_MSEL15_0),
1038 PINMUX_DATA(TS_SCK5_MARK, PORT278_FN3),
1039 PINMUX_DATA(MMCCMD0_MARK, PORT279_FN1, MSEL4CR_MSEL15_0),
1040 PINMUX_DATA(RESETOUTS__MARK, PORT281_FN1), \
1041 PINMUX_DATA(EXTAL2OUT_MARK, PORT281_FN2),
1042 PINMUX_DATA(MCP_WAIT__MCP_FRB_MARK, PORT288_FN1),
1043 PINMUX_DATA(MCP_CKO_MARK, PORT289_FN1), \
1044 PINMUX_DATA(MMCCLK1_MARK, PORT289_FN2, MSEL4CR_MSEL15_1),
1045 PINMUX_DATA(MCP_D15_MCP_NAF15_MARK, PORT290_FN1),
1046 PINMUX_DATA(MCP_D14_MCP_NAF14_MARK, PORT291_FN1),
1047 PINMUX_DATA(MCP_D13_MCP_NAF13_MARK, PORT292_FN1),
1048 PINMUX_DATA(MCP_D12_MCP_NAF12_MARK, PORT293_FN1),
1049 PINMUX_DATA(MCP_D11_MCP_NAF11_MARK, PORT294_FN1),
1050 PINMUX_DATA(MCP_D10_MCP_NAF10_MARK, PORT295_FN1),
1051 PINMUX_DATA(MCP_D9_MCP_NAF9_MARK, PORT296_FN1),
1052 PINMUX_DATA(MCP_D8_MCP_NAF8_MARK, PORT297_FN1), \
1053 PINMUX_DATA(MMCCMD1_MARK, PORT297_FN2, MSEL4CR_MSEL15_1),
1054 PINMUX_DATA(MCP_D7_MCP_NAF7_MARK, PORT298_FN1), \
1055 PINMUX_DATA(MMCD1_7_MARK, PORT298_FN2, MSEL4CR_MSEL15_1),
1056
1057 PINMUX_DATA(MCP_D6_MCP_NAF6_MARK, PORT299_FN1), \
1058 PINMUX_DATA(MMCD1_6_MARK, PORT299_FN2, MSEL4CR_MSEL15_1),
1059 PINMUX_DATA(MCP_D5_MCP_NAF5_MARK, PORT300_FN1), \
1060 PINMUX_DATA(MMCD1_5_MARK, PORT300_FN2, MSEL4CR_MSEL15_1),
1061 PINMUX_DATA(MCP_D4_MCP_NAF4_MARK, PORT301_FN1), \
1062 PINMUX_DATA(MMCD1_4_MARK, PORT301_FN2, MSEL4CR_MSEL15_1),
1063 PINMUX_DATA(MCP_D3_MCP_NAF3_MARK, PORT302_FN1), \
1064 PINMUX_DATA(MMCD1_3_MARK, PORT302_FN2, MSEL4CR_MSEL15_1),
1065 PINMUX_DATA(MCP_D2_MCP_NAF2_MARK, PORT303_FN1), \
1066 PINMUX_DATA(MMCD1_2_MARK, PORT303_FN2, MSEL4CR_MSEL15_1),
1067 PINMUX_DATA(MCP_D1_MCP_NAF1_MARK, PORT304_FN1), \
1068 PINMUX_DATA(MMCD1_1_MARK, PORT304_FN2, MSEL4CR_MSEL15_1),
1069 PINMUX_DATA(MCP_D0_MCP_NAF0_MARK, PORT305_FN1), \
1070 PINMUX_DATA(MMCD1_0_MARK, PORT305_FN2, MSEL4CR_MSEL15_1),
1071 PINMUX_DATA(MCP_NBRSTOUT__MARK, PORT306_FN1),
1072 PINMUX_DATA(MCP_WE0__MCP_FWE_MARK, PORT309_FN1), \
1073 PINMUX_DATA(MCP_RDWR_MCP_FWE_MARK, PORT309_FN2),
1074
1075
1076 PINMUX_DATA(TSIF2_TS_XX1_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_0,
1077 MSEL2CR_MSEL12_0),
1078 PINMUX_DATA(TSIF2_TS_XX2_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_0,
1079 MSEL2CR_MSEL12_1),
1080 PINMUX_DATA(TSIF2_TS_XX3_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_1,
1081 MSEL2CR_MSEL12_0),
1082 PINMUX_DATA(TSIF2_TS_XX4_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_1,
1083 MSEL2CR_MSEL12_1),
1084 PINMUX_DATA(TSIF2_TS_XX5_MARK, MSEL2CR_MSEL14_1, MSEL2CR_MSEL13_0,
1085 MSEL2CR_MSEL12_0),
1086 PINMUX_DATA(TSIF1_TS_XX1_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_0,
1087 MSEL2CR_MSEL9_0),
1088 PINMUX_DATA(TSIF1_TS_XX2_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_0,
1089 MSEL2CR_MSEL9_1),
1090 PINMUX_DATA(TSIF1_TS_XX3_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_1,
1091 MSEL2CR_MSEL9_0),
1092 PINMUX_DATA(TSIF1_TS_XX4_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_1,
1093 MSEL2CR_MSEL9_1),
1094 PINMUX_DATA(TSIF1_TS_XX5_MARK, MSEL2CR_MSEL11_1, MSEL2CR_MSEL10_0,
1095 MSEL2CR_MSEL9_0),
1096 PINMUX_DATA(TSIF0_TS_XX1_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_0,
1097 MSEL2CR_MSEL6_0),
1098 PINMUX_DATA(TSIF0_TS_XX2_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_0,
1099 MSEL2CR_MSEL6_1),
1100 PINMUX_DATA(TSIF0_TS_XX3_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_1,
1101 MSEL2CR_MSEL6_0),
1102 PINMUX_DATA(TSIF0_TS_XX4_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_1,
1103 MSEL2CR_MSEL6_1),
1104 PINMUX_DATA(TSIF0_TS_XX5_MARK, MSEL2CR_MSEL8_1, MSEL2CR_MSEL7_0,
1105 MSEL2CR_MSEL6_0),
1106 PINMUX_DATA(MST1_TS_XX1_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_0,
1107 MSEL2CR_MSEL3_0),
1108 PINMUX_DATA(MST1_TS_XX2_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_0,
1109 MSEL2CR_MSEL3_1),
1110 PINMUX_DATA(MST1_TS_XX3_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_1,
1111 MSEL2CR_MSEL3_0),
1112 PINMUX_DATA(MST1_TS_XX4_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_1,
1113 MSEL2CR_MSEL3_1),
1114 PINMUX_DATA(MST1_TS_XX5_MARK, MSEL2CR_MSEL5_1, MSEL2CR_MSEL4_0,
1115 MSEL2CR_MSEL3_0),
1116 PINMUX_DATA(MST0_TS_XX1_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_0,
1117 MSEL2CR_MSEL0_0),
1118 PINMUX_DATA(MST0_TS_XX2_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_0,
1119 MSEL2CR_MSEL0_1),
1120 PINMUX_DATA(MST0_TS_XX3_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_1,
1121 MSEL2CR_MSEL0_0),
1122 PINMUX_DATA(MST0_TS_XX4_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_1,
1123 MSEL2CR_MSEL0_1),
1124 PINMUX_DATA(MST0_TS_XX5_MARK, MSEL2CR_MSEL2_1, MSEL2CR_MSEL1_0,
1125 MSEL2CR_MSEL0_0),
1126
1127
1128 PINMUX_DATA(SDHI0_VCCQ_MC0_ON_MARK, MSEL3CR_MSEL28_1),
1129 PINMUX_DATA(SDHI0_VCCQ_MC0_OFF_MARK, MSEL3CR_MSEL28_0),
1130 PINMUX_DATA(DEBUG_MON_VIO_MARK, MSEL3CR_MSEL15_0),
1131 PINMUX_DATA(DEBUG_MON_LCDD_MARK, MSEL3CR_MSEL15_1),
1132 PINMUX_DATA(LCDC_LCDC0_MARK, MSEL3CR_MSEL6_0),
1133 PINMUX_DATA(LCDC_LCDC1_MARK, MSEL3CR_MSEL6_1),
1134
1135
1136 PINMUX_DATA(IRQ9_MEM_INT_MARK, MSEL4CR_MSEL29_0),
1137 PINMUX_DATA(IRQ9_MCP_INT_MARK, MSEL4CR_MSEL29_1),
1138 PINMUX_DATA(A11_MARK, MSEL4CR_MSEL13_0, MSEL4CR_MSEL12_0),
1139 PINMUX_DATA(KEYOUT8_MARK, MSEL4CR_MSEL13_0, MSEL4CR_MSEL12_1),
1140 PINMUX_DATA(TPU4TO3_MARK, MSEL4CR_MSEL13_1, MSEL4CR_MSEL12_0),
1141 PINMUX_DATA(RESETA_N_PU_ON_MARK, MSEL4CR_MSEL4_0),
1142 PINMUX_DATA(RESETA_N_PU_OFF_MARK, MSEL4CR_MSEL4_1),
1143 PINMUX_DATA(EDBGREQ_PD_MARK, MSEL4CR_MSEL1_0),
1144 PINMUX_DATA(EDBGREQ_PU_MARK, MSEL4CR_MSEL1_1),
1145 };
1146
1147 #define __I (SH_PFC_PIN_CFG_INPUT)
1148 #define __O (SH_PFC_PIN_CFG_OUTPUT)
1149 #define __IO (SH_PFC_PIN_CFG_INPUT | SH_PFC_PIN_CFG_OUTPUT)
1150 #define __PD (SH_PFC_PIN_CFG_PULL_DOWN)
1151 #define __PU (SH_PFC_PIN_CFG_PULL_UP)
1152 #define __PUD (SH_PFC_PIN_CFG_PULL_UP_DOWN)
1153
1154 #define SH73A0_PIN_I_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PD)
1155 #define SH73A0_PIN_I_PU(pin) SH_PFC_PIN_CFG(pin, __I | __PU)
1156 #define SH73A0_PIN_I_PU_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PUD)
1157 #define SH73A0_PIN_IO(pin) SH_PFC_PIN_CFG(pin, __IO)
1158 #define SH73A0_PIN_IO_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PD)
1159 #define SH73A0_PIN_IO_PU(pin) SH_PFC_PIN_CFG(pin, __IO | __PU)
1160 #define SH73A0_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD)
1161 #define SH73A0_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O)
1162
1163
1164
1165
1166 enum {
1167 PORT_ASSIGN_LAST(),
1168 NOGP_ALL(),
1169 };
1170
1171 static const struct sh_pfc_pin pinmux_pins[] = {
1172
1173 SH73A0_PIN_I_PD(0),
1174 SH73A0_PIN_I_PU(1),
1175 SH73A0_PIN_I_PU(2),
1176 SH73A0_PIN_I_PU(3),
1177 SH73A0_PIN_I_PU(4),
1178 SH73A0_PIN_I_PU(5),
1179 SH73A0_PIN_I_PU(6),
1180 SH73A0_PIN_I_PU(7),
1181 SH73A0_PIN_I_PU(8),
1182 SH73A0_PIN_I_PD(9),
1183 SH73A0_PIN_I_PD(10),
1184 SH73A0_PIN_I_PU_PD(11),
1185 SH73A0_PIN_IO_PU_PD(12),
1186 SH73A0_PIN_IO_PU_PD(13),
1187 SH73A0_PIN_IO_PU_PD(14),
1188 SH73A0_PIN_IO_PU_PD(15),
1189 SH73A0_PIN_IO_PD(16),
1190 SH73A0_PIN_IO_PD(17),
1191 SH73A0_PIN_IO_PU(18),
1192 SH73A0_PIN_IO_PU(19),
1193 SH73A0_PIN_O(20),
1194 SH73A0_PIN_O(21),
1195 SH73A0_PIN_O(22),
1196 SH73A0_PIN_O(23),
1197 SH73A0_PIN_O(24),
1198 SH73A0_PIN_I_PD(25),
1199 SH73A0_PIN_I_PD(26),
1200 SH73A0_PIN_IO_PU(27),
1201 SH73A0_PIN_IO_PU(28),
1202 SH73A0_PIN_IO_PD(29),
1203 SH73A0_PIN_IO_PD(30),
1204 SH73A0_PIN_IO_PU(31),
1205 SH73A0_PIN_IO_PD(32),
1206 SH73A0_PIN_I_PU_PD(33),
1207 SH73A0_PIN_IO_PD(34),
1208 SH73A0_PIN_I_PU_PD(35),
1209 SH73A0_PIN_IO_PD(36),
1210 SH73A0_PIN_IO(37),
1211 SH73A0_PIN_O(38),
1212 SH73A0_PIN_I_PU(39),
1213 SH73A0_PIN_I_PU_PD(40),
1214 SH73A0_PIN_O(41),
1215 SH73A0_PIN_IO_PD(42),
1216 SH73A0_PIN_IO_PU_PD(43),
1217 SH73A0_PIN_IO_PU_PD(44),
1218 SH73A0_PIN_IO_PD(45),
1219 SH73A0_PIN_IO_PD(46),
1220 SH73A0_PIN_IO_PD(47),
1221 SH73A0_PIN_I_PD(48),
1222 SH73A0_PIN_IO_PU_PD(49),
1223 SH73A0_PIN_IO_PD(50),
1224 SH73A0_PIN_IO_PD(51),
1225 SH73A0_PIN_O(52),
1226 SH73A0_PIN_IO_PU_PD(53),
1227 SH73A0_PIN_IO_PU_PD(54),
1228 SH73A0_PIN_IO_PD(55),
1229 SH73A0_PIN_I_PU_PD(56),
1230 SH73A0_PIN_IO(57),
1231 SH73A0_PIN_IO(58),
1232 SH73A0_PIN_IO(59),
1233 SH73A0_PIN_IO(60),
1234 SH73A0_PIN_IO(61),
1235 SH73A0_PIN_IO_PD(62),
1236 SH73A0_PIN_IO_PD(63),
1237 SH73A0_PIN_IO_PU_PD(64),
1238 SH73A0_PIN_IO_PD(65),
1239 SH73A0_PIN_IO_PU_PD(66),
1240 SH73A0_PIN_IO_PU_PD(67),
1241 SH73A0_PIN_IO_PU_PD(68),
1242 SH73A0_PIN_IO_PU_PD(69),
1243 SH73A0_PIN_IO_PU_PD(70),
1244 SH73A0_PIN_IO_PU_PD(71),
1245 SH73A0_PIN_IO_PU_PD(72),
1246 SH73A0_PIN_I_PU_PD(73),
1247 SH73A0_PIN_IO_PU(74),
1248 SH73A0_PIN_IO_PU(75),
1249 SH73A0_PIN_IO_PU(76),
1250 SH73A0_PIN_IO_PU(77),
1251 SH73A0_PIN_IO_PU(78),
1252 SH73A0_PIN_IO_PU(79),
1253 SH73A0_PIN_IO_PU(80),
1254 SH73A0_PIN_IO_PU(81),
1255 SH73A0_PIN_IO_PU(82),
1256 SH73A0_PIN_IO_PU(83),
1257 SH73A0_PIN_IO_PU(84),
1258 SH73A0_PIN_IO_PU(85),
1259 SH73A0_PIN_IO_PU(86),
1260 SH73A0_PIN_IO_PU(87),
1261 SH73A0_PIN_IO_PU(88),
1262 SH73A0_PIN_IO_PU(89),
1263 SH73A0_PIN_O(90),
1264 SH73A0_PIN_IO_PU(91),
1265 SH73A0_PIN_O(92),
1266 SH73A0_PIN_IO_PU(93),
1267 SH73A0_PIN_O(94),
1268 SH73A0_PIN_I_PU_PD(95),
1269 SH73A0_PIN_IO(96),
1270 SH73A0_PIN_IO(97),
1271 SH73A0_PIN_IO(98),
1272 SH73A0_PIN_I_PU(99),
1273 SH73A0_PIN_O(100),
1274 SH73A0_PIN_O(101),
1275 SH73A0_PIN_I_PU(102),
1276 SH73A0_PIN_IO_PD(103),
1277 SH73A0_PIN_I_PU_PD(104),
1278 SH73A0_PIN_I_PD(105),
1279 SH73A0_PIN_I_PD(106),
1280 SH73A0_PIN_I_PU_PD(107),
1281 SH73A0_PIN_I_PU_PD(108),
1282 SH73A0_PIN_IO_PD(109),
1283 SH73A0_PIN_IO_PD(110),
1284 SH73A0_PIN_IO_PU_PD(111),
1285 SH73A0_PIN_IO_PU_PD(112),
1286 SH73A0_PIN_IO_PU_PD(113),
1287 SH73A0_PIN_IO_PD(114),
1288 SH73A0_PIN_IO_PU(115),
1289 SH73A0_PIN_IO_PU(116),
1290 SH73A0_PIN_IO_PU_PD(117),
1291 SH73A0_PIN_IO_PU_PD(118),
1292 SH73A0_PIN_IO_PD(128),
1293 SH73A0_PIN_IO_PD(129),
1294 SH73A0_PIN_IO_PU_PD(130),
1295 SH73A0_PIN_IO_PD(131),
1296 SH73A0_PIN_IO_PD(132),
1297 SH73A0_PIN_IO_PD(133),
1298 SH73A0_PIN_IO_PU_PD(134),
1299 SH73A0_PIN_IO_PU_PD(135),
1300 SH73A0_PIN_IO_PU_PD(136),
1301 SH73A0_PIN_IO_PU_PD(137),
1302 SH73A0_PIN_IO_PD(138),
1303 SH73A0_PIN_IO_PD(139),
1304 SH73A0_PIN_IO_PD(140),
1305 SH73A0_PIN_IO_PD(141),
1306 SH73A0_PIN_IO_PD(142),
1307 SH73A0_PIN_IO_PD(143),
1308 SH73A0_PIN_IO_PU_PD(144),
1309 SH73A0_PIN_IO_PD(145),
1310 SH73A0_PIN_IO_PU_PD(146),
1311 SH73A0_PIN_IO_PU_PD(147),
1312 SH73A0_PIN_IO_PU_PD(148),
1313 SH73A0_PIN_IO_PU_PD(149),
1314 SH73A0_PIN_I_PU_PD(150),
1315 SH73A0_PIN_IO_PU_PD(151),
1316 SH73A0_PIN_IO_PU_PD(152),
1317 SH73A0_PIN_IO_PD(153),
1318 SH73A0_PIN_IO_PD(154),
1319 SH73A0_PIN_I_PU_PD(155),
1320 SH73A0_PIN_IO_PU_PD(156),
1321 SH73A0_PIN_I_PD(157),
1322 SH73A0_PIN_IO_PD(158),
1323 SH73A0_PIN_IO_PU_PD(159),
1324 SH73A0_PIN_IO_PU_PD(160),
1325 SH73A0_PIN_I_PU_PD(161),
1326 SH73A0_PIN_I_PU_PD(162),
1327 SH73A0_PIN_IO_PU_PD(163),
1328 SH73A0_PIN_I_PU_PD(164),
1329 SH73A0_PIN_IO_PD(192),
1330 SH73A0_PIN_IO_PU_PD(193),
1331 SH73A0_PIN_IO_PD(194),
1332 SH73A0_PIN_IO_PU_PD(195),
1333 SH73A0_PIN_IO_PD(196),
1334 SH73A0_PIN_IO_PD(197),
1335 SH73A0_PIN_IO_PD(198),
1336 SH73A0_PIN_IO_PD(199),
1337 SH73A0_PIN_IO_PU_PD(200),
1338 SH73A0_PIN_IO_PU_PD(201),
1339 SH73A0_PIN_IO_PU_PD(202),
1340 SH73A0_PIN_IO_PU_PD(203),
1341 SH73A0_PIN_IO_PU_PD(204),
1342 SH73A0_PIN_IO_PU_PD(205),
1343 SH73A0_PIN_IO_PU_PD(206),
1344 SH73A0_PIN_IO_PD(207),
1345 SH73A0_PIN_IO_PD(208),
1346 SH73A0_PIN_IO_PD(209),
1347 SH73A0_PIN_IO_PD(210),
1348 SH73A0_PIN_IO_PD(211),
1349 SH73A0_PIN_IO_PD(212),
1350 SH73A0_PIN_IO_PD(213),
1351 SH73A0_PIN_IO_PU_PD(214),
1352 SH73A0_PIN_IO_PU_PD(215),
1353 SH73A0_PIN_IO_PD(216),
1354 SH73A0_PIN_IO_PD(217),
1355 SH73A0_PIN_O(218),
1356 SH73A0_PIN_IO_PD(219),
1357 SH73A0_PIN_IO_PD(220),
1358 SH73A0_PIN_IO_PU_PD(221),
1359 SH73A0_PIN_IO_PU_PD(222),
1360 SH73A0_PIN_I_PU_PD(223),
1361 SH73A0_PIN_I_PU_PD(224),
1362 SH73A0_PIN_IO_PU_PD(225),
1363 SH73A0_PIN_O(226),
1364 SH73A0_PIN_IO_PU_PD(227),
1365 SH73A0_PIN_I_PU_PD(228),
1366 SH73A0_PIN_I_PD(229),
1367 SH73A0_PIN_IO(230),
1368 SH73A0_PIN_IO_PU_PD(231),
1369 SH73A0_PIN_IO_PU_PD(232),
1370 SH73A0_PIN_I_PU_PD(233),
1371 SH73A0_PIN_IO_PU_PD(234),
1372 SH73A0_PIN_IO_PU_PD(235),
1373 SH73A0_PIN_IO_PU_PD(236),
1374 SH73A0_PIN_IO_PD(237),
1375 SH73A0_PIN_IO_PU_PD(238),
1376 SH73A0_PIN_IO_PU_PD(239),
1377 SH73A0_PIN_IO_PU_PD(240),
1378 SH73A0_PIN_O(241),
1379 SH73A0_PIN_I_PD(242),
1380 SH73A0_PIN_IO_PU_PD(243),
1381 SH73A0_PIN_IO_PU_PD(244),
1382 SH73A0_PIN_IO_PU_PD(245),
1383 SH73A0_PIN_IO_PU_PD(246),
1384 SH73A0_PIN_IO_PU_PD(247),
1385 SH73A0_PIN_IO_PU_PD(248),
1386 SH73A0_PIN_IO_PU_PD(249),
1387 SH73A0_PIN_IO_PU_PD(250),
1388 SH73A0_PIN_IO_PU_PD(251),
1389 SH73A0_PIN_IO_PU_PD(252),
1390 SH73A0_PIN_IO_PU_PD(253),
1391 SH73A0_PIN_IO_PU_PD(254),
1392 SH73A0_PIN_IO_PU_PD(255),
1393 SH73A0_PIN_IO_PU_PD(256),
1394 SH73A0_PIN_IO_PU_PD(257),
1395 SH73A0_PIN_IO_PU_PD(258),
1396 SH73A0_PIN_IO_PU_PD(259),
1397 SH73A0_PIN_IO_PU_PD(260),
1398 SH73A0_PIN_IO_PU_PD(261),
1399 SH73A0_PIN_IO_PU_PD(262),
1400 SH73A0_PIN_IO_PU_PD(263),
1401 SH73A0_PIN_IO_PU_PD(264),
1402 SH73A0_PIN_IO_PU_PD(265),
1403 SH73A0_PIN_IO_PU_PD(266),
1404 SH73A0_PIN_IO_PU_PD(267),
1405 SH73A0_PIN_IO_PU_PD(268),
1406 SH73A0_PIN_IO_PU_PD(269),
1407 SH73A0_PIN_IO_PU_PD(270),
1408 SH73A0_PIN_IO_PU_PD(271),
1409 SH73A0_PIN_IO_PU_PD(272),
1410 SH73A0_PIN_IO_PU_PD(273),
1411 SH73A0_PIN_IO_PU_PD(274),
1412 SH73A0_PIN_IO_PU_PD(275),
1413 SH73A0_PIN_IO_PU_PD(276),
1414 SH73A0_PIN_IO_PU_PD(277),
1415 SH73A0_PIN_IO_PU_PD(278),
1416 SH73A0_PIN_IO_PU_PD(279),
1417 SH73A0_PIN_IO_PU_PD(280),
1418 SH73A0_PIN_O(281),
1419 SH73A0_PIN_O(282),
1420 SH73A0_PIN_I_PU(288),
1421 SH73A0_PIN_IO_PU_PD(289),
1422 SH73A0_PIN_IO_PU_PD(290),
1423 SH73A0_PIN_IO_PU_PD(291),
1424 SH73A0_PIN_IO_PU_PD(292),
1425 SH73A0_PIN_IO_PU_PD(293),
1426 SH73A0_PIN_IO_PU_PD(294),
1427 SH73A0_PIN_IO_PU_PD(295),
1428 SH73A0_PIN_IO_PU_PD(296),
1429 SH73A0_PIN_IO_PU_PD(297),
1430 SH73A0_PIN_IO_PU_PD(298),
1431 SH73A0_PIN_IO_PU_PD(299),
1432 SH73A0_PIN_IO_PU_PD(300),
1433 SH73A0_PIN_IO_PU_PD(301),
1434 SH73A0_PIN_IO_PU_PD(302),
1435 SH73A0_PIN_IO_PU_PD(303),
1436 SH73A0_PIN_IO_PU_PD(304),
1437 SH73A0_PIN_IO_PU_PD(305),
1438 SH73A0_PIN_O(306),
1439 SH73A0_PIN_O(307),
1440 SH73A0_PIN_I_PU(308),
1441 SH73A0_PIN_O(309),
1442
1443
1444 PINMUX_NOGP_ALL(),
1445 };
1446
1447
1448 static const unsigned int bsc_data_0_7_pins[] = {
1449
1450 74, 75, 76, 77, 78, 79, 80, 81,
1451 };
1452 static const unsigned int bsc_data_0_7_mux[] = {
1453 D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK,
1454 D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK,
1455 };
1456 static const unsigned int bsc_data_8_15_pins[] = {
1457
1458 82, 83, 84, 85, 86, 87, 88, 89,
1459 };
1460 static const unsigned int bsc_data_8_15_mux[] = {
1461 D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK,
1462 D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK,
1463 };
1464 static const unsigned int bsc_cs4_pins[] = {
1465
1466 90,
1467 };
1468 static const unsigned int bsc_cs4_mux[] = {
1469 CS4__MARK,
1470 };
1471 static const unsigned int bsc_cs5_a_pins[] = {
1472
1473 91,
1474 };
1475 static const unsigned int bsc_cs5_a_mux[] = {
1476 CS5A__MARK,
1477 };
1478 static const unsigned int bsc_cs5_b_pins[] = {
1479
1480 92,
1481 };
1482 static const unsigned int bsc_cs5_b_mux[] = {
1483 CS5B__MARK,
1484 };
1485 static const unsigned int bsc_cs6_a_pins[] = {
1486
1487 94,
1488 };
1489 static const unsigned int bsc_cs6_a_mux[] = {
1490 CS6A__MARK,
1491 };
1492 static const unsigned int bsc_cs6_b_pins[] = {
1493
1494 93,
1495 };
1496 static const unsigned int bsc_cs6_b_mux[] = {
1497 CS6B__MARK,
1498 };
1499 static const unsigned int bsc_rd_pins[] = {
1500
1501 96,
1502 };
1503 static const unsigned int bsc_rd_mux[] = {
1504 RD__FSC_MARK,
1505 };
1506 static const unsigned int bsc_rdwr_0_pins[] = {
1507
1508 91,
1509 };
1510 static const unsigned int bsc_rdwr_0_mux[] = {
1511 PORT91_RDWR_MARK,
1512 };
1513 static const unsigned int bsc_rdwr_1_pins[] = {
1514
1515 97,
1516 };
1517 static const unsigned int bsc_rdwr_1_mux[] = {
1518 RDWR_FWE_MARK,
1519 };
1520 static const unsigned int bsc_rdwr_2_pins[] = {
1521
1522 149,
1523 };
1524 static const unsigned int bsc_rdwr_2_mux[] = {
1525 PORT149_RDWR_MARK,
1526 };
1527 static const unsigned int bsc_we0_pins[] = {
1528
1529 97,
1530 };
1531 static const unsigned int bsc_we0_mux[] = {
1532 WE0__FWE_MARK,
1533 };
1534 static const unsigned int bsc_we1_pins[] = {
1535
1536 98,
1537 };
1538 static const unsigned int bsc_we1_mux[] = {
1539 WE1__MARK,
1540 };
1541
1542 static const unsigned int fsia_mclk_in_pins[] = {
1543
1544 49,
1545 };
1546 static const unsigned int fsia_mclk_in_mux[] = {
1547 FSIACK_MARK,
1548 };
1549 static const unsigned int fsia_mclk_out_pins[] = {
1550
1551 49,
1552 };
1553 static const unsigned int fsia_mclk_out_mux[] = {
1554 FSIAOMC_MARK,
1555 };
1556 static const unsigned int fsia_sclk_in_pins[] = {
1557
1558 50, 51,
1559 };
1560 static const unsigned int fsia_sclk_in_mux[] = {
1561 FSIAILR_MARK, FSIAIBT_MARK,
1562 };
1563 static const unsigned int fsia_sclk_out_pins[] = {
1564
1565 50, 51,
1566 };
1567 static const unsigned int fsia_sclk_out_mux[] = {
1568 FSIAOLR_MARK, FSIAOBT_MARK,
1569 };
1570 static const unsigned int fsia_data_in_pins[] = {
1571
1572 55,
1573 };
1574 static const unsigned int fsia_data_in_mux[] = {
1575 FSIAISLD_MARK,
1576 };
1577 static const unsigned int fsia_data_out_pins[] = {
1578
1579 52,
1580 };
1581 static const unsigned int fsia_data_out_mux[] = {
1582 FSIAOSLD_MARK,
1583 };
1584 static const unsigned int fsia_spdif_pins[] = {
1585
1586 53,
1587 };
1588 static const unsigned int fsia_spdif_mux[] = {
1589 FSIASPDIF_MARK,
1590 };
1591
1592 static const unsigned int fsib_mclk_in_pins[] = {
1593
1594 54,
1595 };
1596 static const unsigned int fsib_mclk_in_mux[] = {
1597 FSIBCK_MARK,
1598 };
1599 static const unsigned int fsib_mclk_out_pins[] = {
1600
1601 54,
1602 };
1603 static const unsigned int fsib_mclk_out_mux[] = {
1604 FSIBOMC_MARK,
1605 };
1606 static const unsigned int fsib_sclk_in_pins[] = {
1607
1608 37, 36,
1609 };
1610 static const unsigned int fsib_sclk_in_mux[] = {
1611 FSIBILR_MARK, FSIBIBT_MARK,
1612 };
1613 static const unsigned int fsib_sclk_out_pins[] = {
1614
1615 37, 36,
1616 };
1617 static const unsigned int fsib_sclk_out_mux[] = {
1618 FSIBOLR_MARK, FSIBOBT_MARK,
1619 };
1620 static const unsigned int fsib_data_in_pins[] = {
1621
1622 39,
1623 };
1624 static const unsigned int fsib_data_in_mux[] = {
1625 FSIBISLD_MARK,
1626 };
1627 static const unsigned int fsib_data_out_pins[] = {
1628
1629 38,
1630 };
1631 static const unsigned int fsib_data_out_mux[] = {
1632 FSIBOSLD_MARK,
1633 };
1634 static const unsigned int fsib_spdif_pins[] = {
1635
1636 53,
1637 };
1638 static const unsigned int fsib_spdif_mux[] = {
1639 FSIBSPDIF_MARK,
1640 };
1641
1642 static const unsigned int fsic_mclk_in_pins[] = {
1643
1644 54,
1645 };
1646 static const unsigned int fsic_mclk_in_mux[] = {
1647 FSICCK_MARK,
1648 };
1649 static const unsigned int fsic_mclk_out_pins[] = {
1650
1651 54,
1652 };
1653 static const unsigned int fsic_mclk_out_mux[] = {
1654 FSICOMC_MARK,
1655 };
1656 static const unsigned int fsic_sclk_in_pins[] = {
1657
1658 46, 45,
1659 };
1660 static const unsigned int fsic_sclk_in_mux[] = {
1661 FSICILR_MARK, FSICIBT_MARK,
1662 };
1663 static const unsigned int fsic_sclk_out_pins[] = {
1664
1665 46, 45,
1666 };
1667 static const unsigned int fsic_sclk_out_mux[] = {
1668 FSICOLR_MARK, FSICOBT_MARK,
1669 };
1670 static const unsigned int fsic_data_in_pins[] = {
1671
1672 48,
1673 };
1674 static const unsigned int fsic_data_in_mux[] = {
1675 FSICISLD_MARK,
1676 };
1677 static const unsigned int fsic_data_out_pins[] = {
1678
1679 47, 44, 42, 16,
1680 };
1681 static const unsigned int fsic_data_out_mux[] = {
1682 FSICOSLD_MARK, FSICOSLDT1_MARK, FSICOSLDT2_MARK, FSICOSLDT3_MARK,
1683 };
1684 static const unsigned int fsic_spdif_0_pins[] = {
1685
1686 53,
1687 };
1688 static const unsigned int fsic_spdif_0_mux[] = {
1689 PORT53_FSICSPDIF_MARK,
1690 };
1691 static const unsigned int fsic_spdif_1_pins[] = {
1692
1693 47,
1694 };
1695 static const unsigned int fsic_spdif_1_mux[] = {
1696 PORT47_FSICSPDIF_MARK,
1697 };
1698
1699 static const unsigned int fsid_sclk_in_pins[] = {
1700
1701 46, 45,
1702 };
1703 static const unsigned int fsid_sclk_in_mux[] = {
1704 FSIDILR_MARK, FSIDIBT_MARK,
1705 };
1706 static const unsigned int fsid_sclk_out_pins[] = {
1707
1708 46, 45,
1709 };
1710 static const unsigned int fsid_sclk_out_mux[] = {
1711 FSIDOLR_MARK, FSIDOBT_MARK,
1712 };
1713 static const unsigned int fsid_data_in_pins[] = {
1714
1715 48,
1716 };
1717 static const unsigned int fsid_data_in_mux[] = {
1718 FSIDISLD_MARK,
1719 };
1720
1721 static const unsigned int i2c2_0_pins[] = {
1722
1723 237, 236,
1724 };
1725 static const unsigned int i2c2_0_mux[] = {
1726 PORT237_I2C_SCL2_MARK, PORT236_I2C_SDA2_MARK,
1727 };
1728 static const unsigned int i2c2_1_pins[] = {
1729
1730 27, 28,
1731 };
1732 static const unsigned int i2c2_1_mux[] = {
1733 PORT27_I2C_SCL2_MARK, PORT28_I2C_SDA2_MARK,
1734 };
1735 static const unsigned int i2c2_2_pins[] = {
1736
1737 115, 116,
1738 };
1739 static const unsigned int i2c2_2_mux[] = {
1740 PORT115_I2C_SCL2_MARK, PORT116_I2C_SDA2_MARK,
1741 };
1742
1743 static const unsigned int i2c3_0_pins[] = {
1744
1745 248, 249,
1746 };
1747 static const unsigned int i2c3_0_mux[] = {
1748 PORT248_I2C_SCL3_MARK, PORT249_I2C_SDA3_MARK,
1749 };
1750 static const unsigned int i2c3_1_pins[] = {
1751
1752 27, 28,
1753 };
1754 static const unsigned int i2c3_1_mux[] = {
1755 PORT27_I2C_SCL3_MARK, PORT28_I2C_SDA3_MARK,
1756 };
1757 static const unsigned int i2c3_2_pins[] = {
1758
1759 115, 116,
1760 };
1761 static const unsigned int i2c3_2_mux[] = {
1762 PORT115_I2C_SCL3_MARK, PORT116_I2C_SDA3_MARK,
1763 };
1764
1765 static const unsigned int irda_0_pins[] = {
1766
1767 241, 242, 243,
1768 };
1769 static const unsigned int irda_0_mux[] = {
1770 PORT241_IRDA_OUT_MARK, PORT242_IRDA_IN_MARK, PORT243_IRDA_FIRSEL_MARK,
1771 };
1772 static const unsigned int irda_1_pins[] = {
1773
1774 49, 53, 54,
1775 };
1776 static const unsigned int irda_1_mux[] = {
1777 PORT49_IRDA_OUT_MARK, PORT53_IRDA_IN_MARK, PORT54_IRDA_FIRSEL_MARK,
1778 };
1779
1780 static const unsigned int keysc_in_pins[] = {
1781
1782 66, 67, 68, 69, 70, 71, 72, 73,
1783 };
1784 static const unsigned int keysc_in_mux[] = {
1785 KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK,
1786 KEYIN4_MARK, KEYIN5_MARK, KEYIN6_MARK, KEYIN7_MARK,
1787 };
1788 static const unsigned int keysc_out04_pins[] = {
1789
1790 65, 64, 63, 62, 61,
1791 };
1792 static const unsigned int keysc_out04_mux[] = {
1793 KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, KEYOUT4_MARK,
1794 };
1795 static const unsigned int keysc_out5_pins[] = {
1796
1797 60,
1798 };
1799 static const unsigned int keysc_out5_mux[] = {
1800 KEYOUT5_MARK,
1801 };
1802 static const unsigned int keysc_out6_0_pins[] = {
1803
1804 59,
1805 };
1806 static const unsigned int keysc_out6_0_mux[] = {
1807 PORT59_KEYOUT6_MARK,
1808 };
1809 static const unsigned int keysc_out6_1_pins[] = {
1810
1811 131,
1812 };
1813 static const unsigned int keysc_out6_1_mux[] = {
1814 PORT131_KEYOUT6_MARK,
1815 };
1816 static const unsigned int keysc_out6_2_pins[] = {
1817
1818 143,
1819 };
1820 static const unsigned int keysc_out6_2_mux[] = {
1821 PORT143_KEYOUT6_MARK,
1822 };
1823 static const unsigned int keysc_out7_0_pins[] = {
1824
1825 58,
1826 };
1827 static const unsigned int keysc_out7_0_mux[] = {
1828 PORT58_KEYOUT7_MARK,
1829 };
1830 static const unsigned int keysc_out7_1_pins[] = {
1831
1832 132,
1833 };
1834 static const unsigned int keysc_out7_1_mux[] = {
1835 PORT132_KEYOUT7_MARK,
1836 };
1837 static const unsigned int keysc_out7_2_pins[] = {
1838
1839 144,
1840 };
1841 static const unsigned int keysc_out7_2_mux[] = {
1842 PORT144_KEYOUT7_MARK,
1843 };
1844 static const unsigned int keysc_out8_0_pins[] = {
1845
1846 PIN_A11,
1847 };
1848 static const unsigned int keysc_out8_0_mux[] = {
1849 KEYOUT8_MARK,
1850 };
1851 static const unsigned int keysc_out8_1_pins[] = {
1852
1853 136,
1854 };
1855 static const unsigned int keysc_out8_1_mux[] = {
1856 PORT136_KEYOUT8_MARK,
1857 };
1858 static const unsigned int keysc_out8_2_pins[] = {
1859
1860 138,
1861 };
1862 static const unsigned int keysc_out8_2_mux[] = {
1863 PORT138_KEYOUT8_MARK,
1864 };
1865 static const unsigned int keysc_out9_0_pins[] = {
1866
1867 137,
1868 };
1869 static const unsigned int keysc_out9_0_mux[] = {
1870 PORT137_KEYOUT9_MARK,
1871 };
1872 static const unsigned int keysc_out9_1_pins[] = {
1873
1874 139,
1875 };
1876 static const unsigned int keysc_out9_1_mux[] = {
1877 PORT139_KEYOUT9_MARK,
1878 };
1879 static const unsigned int keysc_out9_2_pins[] = {
1880
1881 149,
1882 };
1883 static const unsigned int keysc_out9_2_mux[] = {
1884 PORT149_KEYOUT9_MARK,
1885 };
1886 static const unsigned int keysc_out10_0_pins[] = {
1887
1888 132,
1889 };
1890 static const unsigned int keysc_out10_0_mux[] = {
1891 PORT132_KEYOUT10_MARK,
1892 };
1893 static const unsigned int keysc_out10_1_pins[] = {
1894
1895 142,
1896 };
1897 static const unsigned int keysc_out10_1_mux[] = {
1898 PORT142_KEYOUT10_MARK,
1899 };
1900 static const unsigned int keysc_out11_0_pins[] = {
1901
1902 131,
1903 };
1904 static const unsigned int keysc_out11_0_mux[] = {
1905 PORT131_KEYOUT11_MARK,
1906 };
1907 static const unsigned int keysc_out11_1_pins[] = {
1908
1909 143,
1910 };
1911 static const unsigned int keysc_out11_1_mux[] = {
1912 PORT143_KEYOUT11_MARK,
1913 };
1914
1915 static const unsigned int lcd_data_pins[] = {
1916
1917 192, 193, 194, 195, 196, 197, 198, 199,
1918 200, 201, 202, 203, 204, 205, 206, 207,
1919 208, 209, 210, 211, 212, 213, 214, 215
1920 };
1921 static const unsigned int lcd_data_mux[] = {
1922 LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK,
1923 LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK,
1924 LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK,
1925 LCDD12_MARK, LCDD13_MARK, LCDD14_MARK, LCDD15_MARK,
1926 LCDD16_MARK, LCDD17_MARK, LCDD18_MARK, LCDD19_MARK,
1927 LCDD20_MARK, LCDD21_MARK, LCDD22_MARK, LCDD23_MARK,
1928 };
1929 static const unsigned int lcd_display_pins[] = {
1930
1931 222,
1932 };
1933 static const unsigned int lcd_display_mux[] = {
1934 LCDDON_MARK,
1935 };
1936 static const unsigned int lcd_lclk_pins[] = {
1937
1938 221,
1939 };
1940 static const unsigned int lcd_lclk_mux[] = {
1941 LCDLCLK_MARK,
1942 };
1943 static const unsigned int lcd_sync_pins[] = {
1944
1945 220, 218, 216, 219,
1946 };
1947 static const unsigned int lcd_sync_mux[] = {
1948 LCDVSYN_MARK, LCDHSYN_MARK, LCDDCK_MARK, LCDDISP_MARK,
1949 };
1950 static const unsigned int lcd_sys_pins[] = {
1951
1952 218, 216, 217, 219,
1953 };
1954 static const unsigned int lcd_sys_mux[] = {
1955 LCDCS__MARK, LCDWR__MARK, LCDRD__MARK, LCDRS_MARK,
1956 };
1957
1958 static const unsigned int lcd2_data_pins[] = {
1959
1960 128, 129, 142, 143, 144, 145, 138, 139,
1961 140, 141, 130, 131, 132, 133, 134, 135,
1962 136, 137, 146, 147, 234, 235, 238, 239
1963 };
1964 static const unsigned int lcd2_data_mux[] = {
1965 LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK,
1966 LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK,
1967 LCD2D8_MARK, LCD2D9_MARK, LCD2D10_MARK, LCD2D11_MARK,
1968 LCD2D12_MARK, LCD2D13_MARK, LCD2D14_MARK, LCD2D15_MARK,
1969 LCD2D16_MARK, LCD2D17_MARK, LCD2D18_MARK, LCD2D19_MARK,
1970 LCD2D20_MARK, LCD2D21_MARK, LCD2D22_MARK, LCD2D23_MARK,
1971 };
1972 static const unsigned int lcd2_sync_0_pins[] = {
1973
1974 128, 129, 146, 145,
1975 };
1976 static const unsigned int lcd2_sync_0_mux[] = {
1977 PORT128_LCD2VSYN_MARK, PORT129_LCD2HSYN_MARK,
1978 LCD2DCK_MARK, PORT145_LCD2DISP_MARK,
1979 };
1980 static const unsigned int lcd2_sync_1_pins[] = {
1981
1982 222, 221, 219, 217,
1983 };
1984 static const unsigned int lcd2_sync_1_mux[] = {
1985 PORT222_LCD2VSYN_MARK, PORT221_LCD2HSYN_MARK,
1986 LCD2DCK_2_MARK, PORT217_LCD2DISP_MARK,
1987 };
1988 static const unsigned int lcd2_sys_0_pins[] = {
1989
1990 129, 146, 147, 145,
1991 };
1992 static const unsigned int lcd2_sys_0_mux[] = {
1993 PORT129_LCD2CS__MARK, PORT146_LCD2WR__MARK,
1994 LCD2RD__MARK, PORT145_LCD2RS_MARK,
1995 };
1996 static const unsigned int lcd2_sys_1_pins[] = {
1997
1998 221, 219, 147, 217,
1999 };
2000 static const unsigned int lcd2_sys_1_mux[] = {
2001 PORT221_LCD2CS__MARK, PORT219_LCD2WR__MARK,
2002 LCD2RD__MARK, PORT217_LCD2RS_MARK,
2003 };
2004
2005 static const unsigned int mmc0_data_0_pins[] = {
2006
2007 271, 272, 273, 274, 275, 276, 277, 278,
2008 };
2009 static const unsigned int mmc0_data_0_mux[] = {
2010 MMCD0_0_MARK, MMCD0_1_MARK, MMCD0_2_MARK, MMCD0_3_MARK,
2011 MMCD0_4_MARK, MMCD0_5_MARK, MMCD0_6_MARK, MMCD0_7_MARK,
2012 };
2013 static const unsigned int mmc0_ctrl_0_pins[] = {
2014
2015 279, 270,
2016 };
2017 static const unsigned int mmc0_ctrl_0_mux[] = {
2018 MMCCMD0_MARK, MMCCLK0_MARK,
2019 };
2020
2021 static const unsigned int mmc0_data_1_pins[] = {
2022
2023 305, 304, 303, 302, 301, 300, 299, 298,
2024 };
2025 static const unsigned int mmc0_data_1_mux[] = {
2026 MMCD1_0_MARK, MMCD1_1_MARK, MMCD1_2_MARK, MMCD1_3_MARK,
2027 MMCD1_4_MARK, MMCD1_5_MARK, MMCD1_6_MARK, MMCD1_7_MARK,
2028 };
2029 static const unsigned int mmc0_ctrl_1_pins[] = {
2030
2031 297, 289,
2032 };
2033 static const unsigned int mmc0_ctrl_1_mux[] = {
2034 MMCCMD1_MARK, MMCCLK1_MARK,
2035 };
2036
2037 static const unsigned int msiof0_rsck_pins[] = {
2038
2039 66,
2040 };
2041 static const unsigned int msiof0_rsck_mux[] = {
2042 MSIOF0_RSCK_MARK,
2043 };
2044 static const unsigned int msiof0_tsck_pins[] = {
2045
2046 64,
2047 };
2048 static const unsigned int msiof0_tsck_mux[] = {
2049 MSIOF0_TSCK_MARK,
2050 };
2051 static const unsigned int msiof0_rsync_pins[] = {
2052
2053 67,
2054 };
2055 static const unsigned int msiof0_rsync_mux[] = {
2056 MSIOF0_RSYNC_MARK,
2057 };
2058 static const unsigned int msiof0_tsync_pins[] = {
2059
2060 63,
2061 };
2062 static const unsigned int msiof0_tsync_mux[] = {
2063 MSIOF0_TSYNC_MARK,
2064 };
2065 static const unsigned int msiof0_ss1_pins[] = {
2066
2067 62,
2068 };
2069 static const unsigned int msiof0_ss1_mux[] = {
2070 MSIOF0_SS1_MARK,
2071 };
2072 static const unsigned int msiof0_ss2_pins[] = {
2073
2074 71,
2075 };
2076 static const unsigned int msiof0_ss2_mux[] = {
2077 MSIOF0_SS2_MARK,
2078 };
2079 static const unsigned int msiof0_rxd_pins[] = {
2080
2081 70,
2082 };
2083 static const unsigned int msiof0_rxd_mux[] = {
2084 MSIOF0_RXD_MARK,
2085 };
2086 static const unsigned int msiof0_txd_pins[] = {
2087
2088 65,
2089 };
2090 static const unsigned int msiof0_txd_mux[] = {
2091 MSIOF0_TXD_MARK,
2092 };
2093 static const unsigned int msiof0_mck0_pins[] = {
2094
2095 68,
2096 };
2097 static const unsigned int msiof0_mck0_mux[] = {
2098 MSIOF0_MCK0_MARK,
2099 };
2100
2101 static const unsigned int msiof0_mck1_pins[] = {
2102
2103 69,
2104 };
2105 static const unsigned int msiof0_mck1_mux[] = {
2106 MSIOF0_MCK1_MARK,
2107 };
2108
2109 static const unsigned int msiof0l_rsck_pins[] = {
2110
2111 214,
2112 };
2113 static const unsigned int msiof0l_rsck_mux[] = {
2114 MSIOF0L_RSCK_MARK,
2115 };
2116 static const unsigned int msiof0l_tsck_pins[] = {
2117
2118 219,
2119 };
2120 static const unsigned int msiof0l_tsck_mux[] = {
2121 MSIOF0L_TSCK_MARK,
2122 };
2123 static const unsigned int msiof0l_rsync_pins[] = {
2124
2125 215,
2126 };
2127 static const unsigned int msiof0l_rsync_mux[] = {
2128 MSIOF0L_RSYNC_MARK,
2129 };
2130 static const unsigned int msiof0l_tsync_pins[] = {
2131
2132 217,
2133 };
2134 static const unsigned int msiof0l_tsync_mux[] = {
2135 MSIOF0L_TSYNC_MARK,
2136 };
2137 static const unsigned int msiof0l_ss1_a_pins[] = {
2138
2139 207,
2140 };
2141 static const unsigned int msiof0l_ss1_a_mux[] = {
2142 PORT207_MSIOF0L_SS1_MARK,
2143 };
2144 static const unsigned int msiof0l_ss1_b_pins[] = {
2145
2146 210,
2147 };
2148 static const unsigned int msiof0l_ss1_b_mux[] = {
2149 PORT210_MSIOF0L_SS1_MARK,
2150 };
2151 static const unsigned int msiof0l_ss2_a_pins[] = {
2152
2153 208,
2154 };
2155 static const unsigned int msiof0l_ss2_a_mux[] = {
2156 PORT208_MSIOF0L_SS2_MARK,
2157 };
2158 static const unsigned int msiof0l_ss2_b_pins[] = {
2159
2160 211,
2161 };
2162 static const unsigned int msiof0l_ss2_b_mux[] = {
2163 PORT211_MSIOF0L_SS2_MARK,
2164 };
2165 static const unsigned int msiof0l_rxd_pins[] = {
2166
2167 221,
2168 };
2169 static const unsigned int msiof0l_rxd_mux[] = {
2170 MSIOF0L_RXD_MARK,
2171 };
2172 static const unsigned int msiof0l_txd_pins[] = {
2173
2174 222,
2175 };
2176 static const unsigned int msiof0l_txd_mux[] = {
2177 MSIOF0L_TXD_MARK,
2178 };
2179 static const unsigned int msiof0l_mck0_pins[] = {
2180
2181 212,
2182 };
2183 static const unsigned int msiof0l_mck0_mux[] = {
2184 MSIOF0L_MCK0_MARK,
2185 };
2186 static const unsigned int msiof0l_mck1_pins[] = {
2187
2188 213,
2189 };
2190 static const unsigned int msiof0l_mck1_mux[] = {
2191 MSIOF0L_MCK1_MARK,
2192 };
2193
2194 static const unsigned int msiof1_rsck_pins[] = {
2195
2196 234,
2197 };
2198 static const unsigned int msiof1_rsck_mux[] = {
2199 MSIOF1_RSCK_MARK,
2200 };
2201 static const unsigned int msiof1_tsck_pins[] = {
2202
2203 232,
2204 };
2205 static const unsigned int msiof1_tsck_mux[] = {
2206 MSIOF1_TSCK_MARK,
2207 };
2208 static const unsigned int msiof1_rsync_pins[] = {
2209
2210 235,
2211 };
2212 static const unsigned int msiof1_rsync_mux[] = {
2213 MSIOF1_RSYNC_MARK,
2214 };
2215 static const unsigned int msiof1_tsync_pins[] = {
2216
2217 231,
2218 };
2219 static const unsigned int msiof1_tsync_mux[] = {
2220 MSIOF1_TSYNC_MARK,
2221 };
2222 static const unsigned int msiof1_ss1_pins[] = {
2223
2224 238,
2225 };
2226 static const unsigned int msiof1_ss1_mux[] = {
2227 MSIOF1_SS1_MARK,
2228 };
2229 static const unsigned int msiof1_ss2_pins[] = {
2230
2231 239,
2232 };
2233 static const unsigned int msiof1_ss2_mux[] = {
2234 MSIOF1_SS2_MARK,
2235 };
2236 static const unsigned int msiof1_rxd_pins[] = {
2237
2238 233,
2239 };
2240 static const unsigned int msiof1_rxd_mux[] = {
2241 MSIOF1_RXD_MARK,
2242 };
2243 static const unsigned int msiof1_txd_pins[] = {
2244
2245 230,
2246 };
2247 static const unsigned int msiof1_txd_mux[] = {
2248 MSIOF1_TXD_MARK,
2249 };
2250 static const unsigned int msiof1_mck0_pins[] = {
2251
2252 236,
2253 };
2254 static const unsigned int msiof1_mck0_mux[] = {
2255 MSIOF1_MCK0_MARK,
2256 };
2257 static const unsigned int msiof1_mck1_pins[] = {
2258
2259 237,
2260 };
2261 static const unsigned int msiof1_mck1_mux[] = {
2262 MSIOF1_MCK1_MARK,
2263 };
2264
2265 static const unsigned int msiof2_rsck_pins[] = {
2266
2267 151,
2268 };
2269 static const unsigned int msiof2_rsck_mux[] = {
2270 MSIOF2_RSCK_MARK,
2271 };
2272 static const unsigned int msiof2_tsck_pins[] = {
2273
2274 135,
2275 };
2276 static const unsigned int msiof2_tsck_mux[] = {
2277 MSIOF2_TSCK_MARK,
2278 };
2279 static const unsigned int msiof2_rsync_pins[] = {
2280
2281 152,
2282 };
2283 static const unsigned int msiof2_rsync_mux[] = {
2284 MSIOF2_RSYNC_MARK,
2285 };
2286 static const unsigned int msiof2_tsync_pins[] = {
2287
2288 133,
2289 };
2290 static const unsigned int msiof2_tsync_mux[] = {
2291 MSIOF2_TSYNC_MARK,
2292 };
2293 static const unsigned int msiof2_ss1_a_pins[] = {
2294
2295 131,
2296 };
2297 static const unsigned int msiof2_ss1_a_mux[] = {
2298 PORT131_MSIOF2_SS1_MARK,
2299 };
2300 static const unsigned int msiof2_ss1_b_pins[] = {
2301
2302 153,
2303 };
2304 static const unsigned int msiof2_ss1_b_mux[] = {
2305 PORT153_MSIOF2_SS1_MARK,
2306 };
2307 static const unsigned int msiof2_ss2_a_pins[] = {
2308
2309 132,
2310 };
2311 static const unsigned int msiof2_ss2_a_mux[] = {
2312 PORT132_MSIOF2_SS2_MARK,
2313 };
2314 static const unsigned int msiof2_ss2_b_pins[] = {
2315
2316 156,
2317 };
2318 static const unsigned int msiof2_ss2_b_mux[] = {
2319 PORT156_MSIOF2_SS2_MARK,
2320 };
2321 static const unsigned int msiof2_rxd_a_pins[] = {
2322
2323 130,
2324 };
2325 static const unsigned int msiof2_rxd_a_mux[] = {
2326 PORT130_MSIOF2_RXD_MARK,
2327 };
2328 static const unsigned int msiof2_rxd_b_pins[] = {
2329
2330 157,
2331 };
2332 static const unsigned int msiof2_rxd_b_mux[] = {
2333 PORT157_MSIOF2_RXD_MARK,
2334 };
2335 static const unsigned int msiof2_txd_pins[] = {
2336
2337 134,
2338 };
2339 static const unsigned int msiof2_txd_mux[] = {
2340 MSIOF2_TXD_MARK,
2341 };
2342 static const unsigned int msiof2_mck0_pins[] = {
2343
2344 154,
2345 };
2346 static const unsigned int msiof2_mck0_mux[] = {
2347 MSIOF2_MCK0_MARK,
2348 };
2349 static const unsigned int msiof2_mck1_pins[] = {
2350
2351 155,
2352 };
2353 static const unsigned int msiof2_mck1_mux[] = {
2354 MSIOF2_MCK1_MARK,
2355 };
2356
2357 static const unsigned int msiof2r_tsck_pins[] = {
2358
2359 248,
2360 };
2361 static const unsigned int msiof2r_tsck_mux[] = {
2362 MSIOF2R_TSCK_MARK,
2363 };
2364 static const unsigned int msiof2r_tsync_pins[] = {
2365
2366 249,
2367 };
2368 static const unsigned int msiof2r_tsync_mux[] = {
2369 MSIOF2R_TSYNC_MARK,
2370 };
2371 static const unsigned int msiof2r_rxd_pins[] = {
2372
2373 244,
2374 };
2375 static const unsigned int msiof2r_rxd_mux[] = {
2376 MSIOF2R_RXD_MARK,
2377 };
2378 static const unsigned int msiof2r_txd_pins[] = {
2379
2380 245,
2381 };
2382 static const unsigned int msiof2r_txd_mux[] = {
2383 MSIOF2R_TXD_MARK,
2384 };
2385
2386 static const unsigned int msiof3_rsck_pins[] = {
2387
2388 115,
2389 };
2390 static const unsigned int msiof3_rsck_mux[] = {
2391 BBIF1_RSCK_MARK,
2392 };
2393 static const unsigned int msiof3_tsck_pins[] = {
2394
2395 112,
2396 };
2397 static const unsigned int msiof3_tsck_mux[] = {
2398 BBIF1_TSCK_MARK,
2399 };
2400 static const unsigned int msiof3_rsync_pins[] = {
2401
2402 116,
2403 };
2404 static const unsigned int msiof3_rsync_mux[] = {
2405 BBIF1_RSYNC_MARK,
2406 };
2407 static const unsigned int msiof3_tsync_pins[] = {
2408
2409 113,
2410 };
2411 static const unsigned int msiof3_tsync_mux[] = {
2412 BBIF1_TSYNC_MARK,
2413 };
2414 static const unsigned int msiof3_ss1_pins[] = {
2415
2416 117,
2417 };
2418 static const unsigned int msiof3_ss1_mux[] = {
2419 BBIF1_SS1_MARK,
2420 };
2421 static const unsigned int msiof3_ss2_pins[] = {
2422
2423 109,
2424 };
2425 static const unsigned int msiof3_ss2_mux[] = {
2426 BBIF1_SS2_MARK,
2427 };
2428 static const unsigned int msiof3_rxd_pins[] = {
2429
2430 111,
2431 };
2432 static const unsigned int msiof3_rxd_mux[] = {
2433 BBIF1_RXD_MARK,
2434 };
2435 static const unsigned int msiof3_txd_pins[] = {
2436
2437 114,
2438 };
2439 static const unsigned int msiof3_txd_mux[] = {
2440 BBIF1_TXD_MARK,
2441 };
2442 static const unsigned int msiof3_flow_pins[] = {
2443
2444 117,
2445 };
2446 static const unsigned int msiof3_flow_mux[] = {
2447 BBIF1_FLOW_MARK,
2448 };
2449
2450
2451 static const unsigned int scifa0_data_pins[] = {
2452
2453 43, 17,
2454 };
2455 static const unsigned int scifa0_data_mux[] = {
2456 SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
2457 };
2458 static const unsigned int scifa0_clk_pins[] = {
2459
2460 16,
2461 };
2462 static const unsigned int scifa0_clk_mux[] = {
2463 SCIFA0_SCK_MARK,
2464 };
2465 static const unsigned int scifa0_ctrl_pins[] = {
2466
2467 42, 44,
2468 };
2469 static const unsigned int scifa0_ctrl_mux[] = {
2470 SCIFA0_RTS__MARK, SCIFA0_CTS__MARK,
2471 };
2472
2473 static const unsigned int scifa1_data_pins[] = {
2474
2475 228, 225,
2476 };
2477 static const unsigned int scifa1_data_mux[] = {
2478 SCIFA1_RXD_MARK, SCIFA1_TXD_MARK,
2479 };
2480 static const unsigned int scifa1_clk_pins[] = {
2481
2482 226,
2483 };
2484 static const unsigned int scifa1_clk_mux[] = {
2485 SCIFA1_SCK_MARK,
2486 };
2487 static const unsigned int scifa1_ctrl_pins[] = {
2488
2489 227, 229,
2490 };
2491 static const unsigned int scifa1_ctrl_mux[] = {
2492 SCIFA1_RTS__MARK, SCIFA1_CTS__MARK,
2493 };
2494
2495 static const unsigned int scifa2_data_0_pins[] = {
2496
2497 155, 154,
2498 };
2499 static const unsigned int scifa2_data_0_mux[] = {
2500 SCIFA2_RXD1_MARK, SCIFA2_TXD1_MARK,
2501 };
2502 static const unsigned int scifa2_clk_0_pins[] = {
2503
2504 158,
2505 };
2506 static const unsigned int scifa2_clk_0_mux[] = {
2507 SCIFA2_SCK1_MARK,
2508 };
2509 static const unsigned int scifa2_ctrl_0_pins[] = {
2510
2511 156, 157,
2512 };
2513 static const unsigned int scifa2_ctrl_0_mux[] = {
2514 SCIFA2_RTS1__MARK, SCIFA2_CTS1__MARK,
2515 };
2516 static const unsigned int scifa2_data_1_pins[] = {
2517
2518 233, 230,
2519 };
2520 static const unsigned int scifa2_data_1_mux[] = {
2521 SCIFA2_RXD2_MARK, SCIFA2_TXD2_MARK,
2522 };
2523 static const unsigned int scifa2_clk_1_pins[] = {
2524
2525 232,
2526 };
2527 static const unsigned int scifa2_clk_1_mux[] = {
2528 SCIFA2_SCK2_MARK,
2529 };
2530 static const unsigned int scifa2_ctrl_1_pins[] = {
2531
2532 234, 231,
2533 };
2534 static const unsigned int scifa2_ctrl_1_mux[] = {
2535 SCIFA2_RTS2__MARK, SCIFA2_CTS2__MARK,
2536 };
2537
2538 static const unsigned int scifa3_data_pins[] = {
2539
2540 108, 110,
2541 };
2542 static const unsigned int scifa3_data_mux[] = {
2543 SCIFA3_RXD_MARK, SCIFA3_TXD_MARK,
2544 };
2545 static const unsigned int scifa3_ctrl_pins[] = {
2546
2547 109, 107,
2548 };
2549 static const unsigned int scifa3_ctrl_mux[] = {
2550 SCIFA3_RTS__MARK, SCIFA3_CTS__MARK,
2551 };
2552
2553 static const unsigned int scifa4_data_pins[] = {
2554
2555 33, 32,
2556 };
2557 static const unsigned int scifa4_data_mux[] = {
2558 SCIFA4_RXD_MARK, SCIFA4_TXD_MARK,
2559 };
2560 static const unsigned int scifa4_ctrl_pins[] = {
2561
2562 34, 35,
2563 };
2564 static const unsigned int scifa4_ctrl_mux[] = {
2565 SCIFA4_RTS__MARK, SCIFA4_CTS__MARK,
2566 };
2567
2568 static const unsigned int scifa5_data_0_pins[] = {
2569
2570 246, 247,
2571 };
2572 static const unsigned int scifa5_data_0_mux[] = {
2573 PORT246_SCIFA5_RXD_MARK, PORT247_SCIFA5_TXD_MARK,
2574 };
2575 static const unsigned int scifa5_clk_0_pins[] = {
2576
2577 248,
2578 };
2579 static const unsigned int scifa5_clk_0_mux[] = {
2580 PORT248_SCIFA5_SCK_MARK,
2581 };
2582 static const unsigned int scifa5_ctrl_0_pins[] = {
2583
2584 245, 244,
2585 };
2586 static const unsigned int scifa5_ctrl_0_mux[] = {
2587 PORT245_SCIFA5_RTS__MARK, PORT244_SCIFA5_CTS__MARK,
2588 };
2589 static const unsigned int scifa5_data_1_pins[] = {
2590
2591 195, 196,
2592 };
2593 static const unsigned int scifa5_data_1_mux[] = {
2594 PORT195_SCIFA5_RXD_MARK, PORT196_SCIFA5_TXD_MARK,
2595 };
2596 static const unsigned int scifa5_clk_1_pins[] = {
2597
2598 197,
2599 };
2600 static const unsigned int scifa5_clk_1_mux[] = {
2601 PORT197_SCIFA5_SCK_MARK,
2602 };
2603 static const unsigned int scifa5_ctrl_1_pins[] = {
2604
2605 194, 193,
2606 };
2607 static const unsigned int scifa5_ctrl_1_mux[] = {
2608 PORT194_SCIFA5_RTS__MARK, PORT193_SCIFA5_CTS__MARK,
2609 };
2610 static const unsigned int scifa5_data_2_pins[] = {
2611
2612 162, 160,
2613 };
2614 static const unsigned int scifa5_data_2_mux[] = {
2615 PORT162_SCIFA5_RXD_MARK, PORT160_SCIFA5_TXD_MARK,
2616 };
2617 static const unsigned int scifa5_clk_2_pins[] = {
2618
2619 159,
2620 };
2621 static const unsigned int scifa5_clk_2_mux[] = {
2622 PORT159_SCIFA5_SCK_MARK,
2623 };
2624 static const unsigned int scifa5_ctrl_2_pins[] = {
2625
2626 163, 161,
2627 };
2628 static const unsigned int scifa5_ctrl_2_mux[] = {
2629 PORT163_SCIFA5_RTS__MARK, PORT161_SCIFA5_CTS__MARK,
2630 };
2631
2632 static const unsigned int scifa6_pins[] = {
2633
2634 240,
2635 };
2636 static const unsigned int scifa6_mux[] = {
2637 SCIFA6_TXD_MARK,
2638 };
2639
2640 static const unsigned int scifa7_data_pins[] = {
2641
2642 12, 18,
2643 };
2644 static const unsigned int scifa7_data_mux[] = {
2645 SCIFA7_RXD_MARK, SCIFA7_TXD_MARK,
2646 };
2647 static const unsigned int scifa7_ctrl_pins[] = {
2648
2649 19, 13,
2650 };
2651 static const unsigned int scifa7_ctrl_mux[] = {
2652 SCIFA7_RTS__MARK, SCIFA7_CTS__MARK,
2653 };
2654
2655 static const unsigned int scifb_data_0_pins[] = {
2656
2657 162, 160,
2658 };
2659 static const unsigned int scifb_data_0_mux[] = {
2660 PORT162_SCIFB_RXD_MARK, PORT160_SCIFB_TXD_MARK,
2661 };
2662 static const unsigned int scifb_clk_0_pins[] = {
2663
2664 159,
2665 };
2666 static const unsigned int scifb_clk_0_mux[] = {
2667 PORT159_SCIFB_SCK_MARK,
2668 };
2669 static const unsigned int scifb_ctrl_0_pins[] = {
2670
2671 163, 161,
2672 };
2673 static const unsigned int scifb_ctrl_0_mux[] = {
2674 PORT163_SCIFB_RTS__MARK, PORT161_SCIFB_CTS__MARK,
2675 };
2676 static const unsigned int scifb_data_1_pins[] = {
2677
2678 246, 247,
2679 };
2680 static const unsigned int scifb_data_1_mux[] = {
2681 PORT246_SCIFB_RXD_MARK, PORT247_SCIFB_TXD_MARK,
2682 };
2683 static const unsigned int scifb_clk_1_pins[] = {
2684
2685 248,
2686 };
2687 static const unsigned int scifb_clk_1_mux[] = {
2688 PORT248_SCIFB_SCK_MARK,
2689 };
2690 static const unsigned int scifb_ctrl_1_pins[] = {
2691
2692 245, 244,
2693 };
2694 static const unsigned int scifb_ctrl_1_mux[] = {
2695 PORT245_SCIFB_RTS__MARK, PORT244_SCIFB_CTS__MARK,
2696 };
2697
2698 static const unsigned int sdhi0_data_pins[] = {
2699
2700 252, 253, 254, 255,
2701 };
2702 static const unsigned int sdhi0_data_mux[] = {
2703 SDHID0_0_MARK, SDHID0_1_MARK, SDHID0_2_MARK, SDHID0_3_MARK,
2704 };
2705 static const unsigned int sdhi0_ctrl_pins[] = {
2706
2707 256, 250,
2708 };
2709 static const unsigned int sdhi0_ctrl_mux[] = {
2710 SDHICMD0_MARK, SDHICLK0_MARK,
2711 };
2712 static const unsigned int sdhi0_cd_pins[] = {
2713
2714 251,
2715 };
2716 static const unsigned int sdhi0_cd_mux[] = {
2717 SDHICD0_MARK,
2718 };
2719 static const unsigned int sdhi0_wp_pins[] = {
2720
2721 257,
2722 };
2723 static const unsigned int sdhi0_wp_mux[] = {
2724 SDHIWP0_MARK,
2725 };
2726
2727 static const unsigned int sdhi1_data_pins[] = {
2728
2729 259, 260, 261, 262,
2730 };
2731 static const unsigned int sdhi1_data_mux[] = {
2732 SDHID1_0_MARK, SDHID1_1_MARK, SDHID1_2_MARK, SDHID1_3_MARK,
2733 };
2734 static const unsigned int sdhi1_ctrl_pins[] = {
2735
2736 263, 258,
2737 };
2738 static const unsigned int sdhi1_ctrl_mux[] = {
2739 SDHICMD1_MARK, SDHICLK1_MARK,
2740 };
2741
2742 static const unsigned int sdhi2_data_pins[] = {
2743
2744 265, 266, 267, 268,
2745 };
2746 static const unsigned int sdhi2_data_mux[] = {
2747 SDHID2_0_MARK, SDHID2_1_MARK, SDHID2_2_MARK, SDHID2_3_MARK,
2748 };
2749 static const unsigned int sdhi2_ctrl_pins[] = {
2750
2751 269, 264,
2752 };
2753 static const unsigned int sdhi2_ctrl_mux[] = {
2754 SDHICMD2_MARK, SDHICLK2_MARK,
2755 };
2756
2757 static const unsigned int tpu0_to0_pins[] = {
2758
2759 55,
2760 };
2761 static const unsigned int tpu0_to0_mux[] = {
2762 TPU0TO0_MARK,
2763 };
2764 static const unsigned int tpu0_to1_pins[] = {
2765
2766 59,
2767 };
2768 static const unsigned int tpu0_to1_mux[] = {
2769 TPU0TO1_MARK,
2770 };
2771 static const unsigned int tpu0_to2_pins[] = {
2772
2773 140,
2774 };
2775 static const unsigned int tpu0_to2_mux[] = {
2776 TPU0TO2_MARK,
2777 };
2778 static const unsigned int tpu0_to3_pins[] = {
2779
2780 141,
2781 };
2782 static const unsigned int tpu0_to3_mux[] = {
2783 TPU0TO3_MARK,
2784 };
2785
2786 static const unsigned int tpu1_to0_pins[] = {
2787
2788 246,
2789 };
2790 static const unsigned int tpu1_to0_mux[] = {
2791 TPU1TO0_MARK,
2792 };
2793 static const unsigned int tpu1_to1_0_pins[] = {
2794
2795 28,
2796 };
2797 static const unsigned int tpu1_to1_0_mux[] = {
2798 PORT28_TPU1TO1_MARK,
2799 };
2800 static const unsigned int tpu1_to1_1_pins[] = {
2801
2802 29,
2803 };
2804 static const unsigned int tpu1_to1_1_mux[] = {
2805 PORT29_TPU1TO1_MARK,
2806 };
2807 static const unsigned int tpu1_to2_pins[] = {
2808
2809 153,
2810 };
2811 static const unsigned int tpu1_to2_mux[] = {
2812 TPU1TO2_MARK,
2813 };
2814 static const unsigned int tpu1_to3_pins[] = {
2815
2816 145,
2817 };
2818 static const unsigned int tpu1_to3_mux[] = {
2819 TPU1TO3_MARK,
2820 };
2821
2822 static const unsigned int tpu2_to0_pins[] = {
2823
2824 248,
2825 };
2826 static const unsigned int tpu2_to0_mux[] = {
2827 TPU2TO0_MARK,
2828 };
2829 static const unsigned int tpu2_to1_pins[] = {
2830
2831 197,
2832 };
2833 static const unsigned int tpu2_to1_mux[] = {
2834 TPU2TO1_MARK,
2835 };
2836 static const unsigned int tpu2_to2_pins[] = {
2837
2838 50,
2839 };
2840 static const unsigned int tpu2_to2_mux[] = {
2841 TPU2TO2_MARK,
2842 };
2843 static const unsigned int tpu2_to3_pins[] = {
2844
2845 51,
2846 };
2847 static const unsigned int tpu2_to3_mux[] = {
2848 TPU2TO3_MARK,
2849 };
2850
2851 static const unsigned int tpu3_to0_pins[] = {
2852
2853 163,
2854 };
2855 static const unsigned int tpu3_to0_mux[] = {
2856 TPU3TO0_MARK,
2857 };
2858 static const unsigned int tpu3_to1_pins[] = {
2859
2860 247,
2861 };
2862 static const unsigned int tpu3_to1_mux[] = {
2863 TPU3TO1_MARK,
2864 };
2865 static const unsigned int tpu3_to2_pins[] = {
2866
2867 54,
2868 };
2869 static const unsigned int tpu3_to2_mux[] = {
2870 TPU3TO2_MARK,
2871 };
2872 static const unsigned int tpu3_to3_pins[] = {
2873
2874 53,
2875 };
2876 static const unsigned int tpu3_to3_mux[] = {
2877 TPU3TO3_MARK,
2878 };
2879
2880 static const unsigned int tpu4_to0_pins[] = {
2881
2882 241,
2883 };
2884 static const unsigned int tpu4_to0_mux[] = {
2885 TPU4TO0_MARK,
2886 };
2887 static const unsigned int tpu4_to1_pins[] = {
2888
2889 199,
2890 };
2891 static const unsigned int tpu4_to1_mux[] = {
2892 TPU4TO1_MARK,
2893 };
2894 static const unsigned int tpu4_to2_pins[] = {
2895
2896 58,
2897 };
2898 static const unsigned int tpu4_to2_mux[] = {
2899 TPU4TO2_MARK,
2900 };
2901 static const unsigned int tpu4_to3_pins[] = {
2902
2903 PIN_A11,
2904 };
2905 static const unsigned int tpu4_to3_mux[] = {
2906 TPU4TO3_MARK,
2907 };
2908
2909 static const unsigned int usb_vbus_pins[] = {
2910
2911 0,
2912 };
2913 static const unsigned int usb_vbus_mux[] = {
2914 VBUS_0_MARK,
2915 };
2916
2917 static const struct sh_pfc_pin_group pinmux_groups[] = {
2918 SH_PFC_PIN_GROUP(bsc_data_0_7),
2919 SH_PFC_PIN_GROUP(bsc_data_8_15),
2920 SH_PFC_PIN_GROUP(bsc_cs4),
2921 SH_PFC_PIN_GROUP(bsc_cs5_a),
2922 SH_PFC_PIN_GROUP(bsc_cs5_b),
2923 SH_PFC_PIN_GROUP(bsc_cs6_a),
2924 SH_PFC_PIN_GROUP(bsc_cs6_b),
2925 SH_PFC_PIN_GROUP(bsc_rd),
2926 SH_PFC_PIN_GROUP(bsc_rdwr_0),
2927 SH_PFC_PIN_GROUP(bsc_rdwr_1),
2928 SH_PFC_PIN_GROUP(bsc_rdwr_2),
2929 SH_PFC_PIN_GROUP(bsc_we0),
2930 SH_PFC_PIN_GROUP(bsc_we1),
2931 SH_PFC_PIN_GROUP(fsia_mclk_in),
2932 SH_PFC_PIN_GROUP(fsia_mclk_out),
2933 SH_PFC_PIN_GROUP(fsia_sclk_in),
2934 SH_PFC_PIN_GROUP(fsia_sclk_out),
2935 SH_PFC_PIN_GROUP(fsia_data_in),
2936 SH_PFC_PIN_GROUP(fsia_data_out),
2937 SH_PFC_PIN_GROUP(fsia_spdif),
2938 SH_PFC_PIN_GROUP(fsib_mclk_in),
2939 SH_PFC_PIN_GROUP(fsib_mclk_out),
2940 SH_PFC_PIN_GROUP(fsib_sclk_in),
2941 SH_PFC_PIN_GROUP(fsib_sclk_out),
2942 SH_PFC_PIN_GROUP(fsib_data_in),
2943 SH_PFC_PIN_GROUP(fsib_data_out),
2944 SH_PFC_PIN_GROUP(fsib_spdif),
2945 SH_PFC_PIN_GROUP(fsic_mclk_in),
2946 SH_PFC_PIN_GROUP(fsic_mclk_out),
2947 SH_PFC_PIN_GROUP(fsic_sclk_in),
2948 SH_PFC_PIN_GROUP(fsic_sclk_out),
2949 SH_PFC_PIN_GROUP(fsic_data_in),
2950 SH_PFC_PIN_GROUP(fsic_data_out),
2951 SH_PFC_PIN_GROUP(fsic_spdif_0),
2952 SH_PFC_PIN_GROUP(fsic_spdif_1),
2953 SH_PFC_PIN_GROUP(fsid_sclk_in),
2954 SH_PFC_PIN_GROUP(fsid_sclk_out),
2955 SH_PFC_PIN_GROUP(fsid_data_in),
2956 SH_PFC_PIN_GROUP(i2c2_0),
2957 SH_PFC_PIN_GROUP(i2c2_1),
2958 SH_PFC_PIN_GROUP(i2c2_2),
2959 SH_PFC_PIN_GROUP(i2c3_0),
2960 SH_PFC_PIN_GROUP(i2c3_1),
2961 SH_PFC_PIN_GROUP(i2c3_2),
2962 SH_PFC_PIN_GROUP(irda_0),
2963 SH_PFC_PIN_GROUP(irda_1),
2964 BUS_DATA_PIN_GROUP(keysc_in, 5),
2965 BUS_DATA_PIN_GROUP(keysc_in, 6),
2966 BUS_DATA_PIN_GROUP(keysc_in, 7),
2967 BUS_DATA_PIN_GROUP(keysc_in, 8),
2968 SH_PFC_PIN_GROUP(keysc_out04),
2969 SH_PFC_PIN_GROUP(keysc_out5),
2970 SH_PFC_PIN_GROUP(keysc_out6_0),
2971 SH_PFC_PIN_GROUP(keysc_out6_1),
2972 SH_PFC_PIN_GROUP(keysc_out6_2),
2973 SH_PFC_PIN_GROUP(keysc_out7_0),
2974 SH_PFC_PIN_GROUP(keysc_out7_1),
2975 SH_PFC_PIN_GROUP(keysc_out7_2),
2976 SH_PFC_PIN_GROUP(keysc_out8_0),
2977 SH_PFC_PIN_GROUP(keysc_out8_1),
2978 SH_PFC_PIN_GROUP(keysc_out8_2),
2979 SH_PFC_PIN_GROUP(keysc_out9_0),
2980 SH_PFC_PIN_GROUP(keysc_out9_1),
2981 SH_PFC_PIN_GROUP(keysc_out9_2),
2982 SH_PFC_PIN_GROUP(keysc_out10_0),
2983 SH_PFC_PIN_GROUP(keysc_out10_1),
2984 SH_PFC_PIN_GROUP(keysc_out11_0),
2985 SH_PFC_PIN_GROUP(keysc_out11_1),
2986 BUS_DATA_PIN_GROUP(lcd_data, 8),
2987 BUS_DATA_PIN_GROUP(lcd_data, 9),
2988 BUS_DATA_PIN_GROUP(lcd_data, 12),
2989 BUS_DATA_PIN_GROUP(lcd_data, 16),
2990 BUS_DATA_PIN_GROUP(lcd_data, 18),
2991 BUS_DATA_PIN_GROUP(lcd_data, 24),
2992 SH_PFC_PIN_GROUP(lcd_display),
2993 SH_PFC_PIN_GROUP(lcd_lclk),
2994 SH_PFC_PIN_GROUP(lcd_sync),
2995 SH_PFC_PIN_GROUP(lcd_sys),
2996 BUS_DATA_PIN_GROUP(lcd2_data, 8),
2997 BUS_DATA_PIN_GROUP(lcd2_data, 9),
2998 BUS_DATA_PIN_GROUP(lcd2_data, 12),
2999 BUS_DATA_PIN_GROUP(lcd2_data, 16),
3000 BUS_DATA_PIN_GROUP(lcd2_data, 18),
3001 BUS_DATA_PIN_GROUP(lcd2_data, 24),
3002 SH_PFC_PIN_GROUP(lcd2_sync_0),
3003 SH_PFC_PIN_GROUP(lcd2_sync_1),
3004 SH_PFC_PIN_GROUP(lcd2_sys_0),
3005 SH_PFC_PIN_GROUP(lcd2_sys_1),
3006 BUS_DATA_PIN_GROUP(mmc0_data, 1, _0),
3007 BUS_DATA_PIN_GROUP(mmc0_data, 4, _0),
3008 BUS_DATA_PIN_GROUP(mmc0_data, 8, _0),
3009 SH_PFC_PIN_GROUP(mmc0_ctrl_0),
3010 BUS_DATA_PIN_GROUP(mmc0_data, 1, _1),
3011 BUS_DATA_PIN_GROUP(mmc0_data, 4, _1),
3012 BUS_DATA_PIN_GROUP(mmc0_data, 8, _1),
3013 SH_PFC_PIN_GROUP(mmc0_ctrl_1),
3014 SH_PFC_PIN_GROUP(msiof0_rsck),
3015 SH_PFC_PIN_GROUP(msiof0_tsck),
3016 SH_PFC_PIN_GROUP(msiof0_rsync),
3017 SH_PFC_PIN_GROUP(msiof0_tsync),
3018 SH_PFC_PIN_GROUP(msiof0_ss1),
3019 SH_PFC_PIN_GROUP(msiof0_ss2),
3020 SH_PFC_PIN_GROUP(msiof0_rxd),
3021 SH_PFC_PIN_GROUP(msiof0_txd),
3022 SH_PFC_PIN_GROUP(msiof0_mck0),
3023 SH_PFC_PIN_GROUP(msiof0_mck1),
3024 SH_PFC_PIN_GROUP(msiof0l_rsck),
3025 SH_PFC_PIN_GROUP(msiof0l_tsck),
3026 SH_PFC_PIN_GROUP(msiof0l_rsync),
3027 SH_PFC_PIN_GROUP(msiof0l_tsync),
3028 SH_PFC_PIN_GROUP(msiof0l_ss1_a),
3029 SH_PFC_PIN_GROUP(msiof0l_ss1_b),
3030 SH_PFC_PIN_GROUP(msiof0l_ss2_a),
3031 SH_PFC_PIN_GROUP(msiof0l_ss2_b),
3032 SH_PFC_PIN_GROUP(msiof0l_rxd),
3033 SH_PFC_PIN_GROUP(msiof0l_txd),
3034 SH_PFC_PIN_GROUP(msiof0l_mck0),
3035 SH_PFC_PIN_GROUP(msiof0l_mck1),
3036 SH_PFC_PIN_GROUP(msiof1_rsck),
3037 SH_PFC_PIN_GROUP(msiof1_tsck),
3038 SH_PFC_PIN_GROUP(msiof1_rsync),
3039 SH_PFC_PIN_GROUP(msiof1_tsync),
3040 SH_PFC_PIN_GROUP(msiof1_ss1),
3041 SH_PFC_PIN_GROUP(msiof1_ss2),
3042 SH_PFC_PIN_GROUP(msiof1_rxd),
3043 SH_PFC_PIN_GROUP(msiof1_txd),
3044 SH_PFC_PIN_GROUP(msiof1_mck0),
3045 SH_PFC_PIN_GROUP(msiof1_mck1),
3046 SH_PFC_PIN_GROUP(msiof2_rsck),
3047 SH_PFC_PIN_GROUP(msiof2_tsck),
3048 SH_PFC_PIN_GROUP(msiof2_rsync),
3049 SH_PFC_PIN_GROUP(msiof2_tsync),
3050 SH_PFC_PIN_GROUP(msiof2_ss1_a),
3051 SH_PFC_PIN_GROUP(msiof2_ss1_b),
3052 SH_PFC_PIN_GROUP(msiof2_ss2_a),
3053 SH_PFC_PIN_GROUP(msiof2_ss2_b),
3054 SH_PFC_PIN_GROUP(msiof2_rxd_a),
3055 SH_PFC_PIN_GROUP(msiof2_rxd_b),
3056 SH_PFC_PIN_GROUP(msiof2_txd),
3057 SH_PFC_PIN_GROUP(msiof2_mck0),
3058 SH_PFC_PIN_GROUP(msiof2_mck1),
3059 SH_PFC_PIN_GROUP(msiof2r_tsck),
3060 SH_PFC_PIN_GROUP(msiof2r_tsync),
3061 SH_PFC_PIN_GROUP(msiof2r_rxd),
3062 SH_PFC_PIN_GROUP(msiof2r_txd),
3063 SH_PFC_PIN_GROUP(msiof3_rsck),
3064 SH_PFC_PIN_GROUP(msiof3_tsck),
3065 SH_PFC_PIN_GROUP(msiof3_rsync),
3066 SH_PFC_PIN_GROUP(msiof3_tsync),
3067 SH_PFC_PIN_GROUP(msiof3_ss1),
3068 SH_PFC_PIN_GROUP(msiof3_ss2),
3069 SH_PFC_PIN_GROUP(msiof3_rxd),
3070 SH_PFC_PIN_GROUP(msiof3_txd),
3071 SH_PFC_PIN_GROUP(msiof3_flow),
3072 SH_PFC_PIN_GROUP(scifa0_data),
3073 SH_PFC_PIN_GROUP(scifa0_clk),
3074 SH_PFC_PIN_GROUP(scifa0_ctrl),
3075 SH_PFC_PIN_GROUP(scifa1_data),
3076 SH_PFC_PIN_GROUP(scifa1_clk),
3077 SH_PFC_PIN_GROUP(scifa1_ctrl),
3078 SH_PFC_PIN_GROUP(scifa2_data_0),
3079 SH_PFC_PIN_GROUP(scifa2_clk_0),
3080 SH_PFC_PIN_GROUP(scifa2_ctrl_0),
3081 SH_PFC_PIN_GROUP(scifa2_data_1),
3082 SH_PFC_PIN_GROUP(scifa2_clk_1),
3083 SH_PFC_PIN_GROUP(scifa2_ctrl_1),
3084 SH_PFC_PIN_GROUP(scifa3_data),
3085 SH_PFC_PIN_GROUP(scifa3_ctrl),
3086 SH_PFC_PIN_GROUP(scifa4_data),
3087 SH_PFC_PIN_GROUP(scifa4_ctrl),
3088 SH_PFC_PIN_GROUP(scifa5_data_0),
3089 SH_PFC_PIN_GROUP(scifa5_clk_0),
3090 SH_PFC_PIN_GROUP(scifa5_ctrl_0),
3091 SH_PFC_PIN_GROUP(scifa5_data_1),
3092 SH_PFC_PIN_GROUP(scifa5_clk_1),
3093 SH_PFC_PIN_GROUP(scifa5_ctrl_1),
3094 SH_PFC_PIN_GROUP(scifa5_data_2),
3095 SH_PFC_PIN_GROUP(scifa5_clk_2),
3096 SH_PFC_PIN_GROUP(scifa5_ctrl_2),
3097 SH_PFC_PIN_GROUP(scifa6),
3098 SH_PFC_PIN_GROUP(scifa7_data),
3099 SH_PFC_PIN_GROUP(scifa7_ctrl),
3100 SH_PFC_PIN_GROUP(scifb_data_0),
3101 SH_PFC_PIN_GROUP(scifb_clk_0),
3102 SH_PFC_PIN_GROUP(scifb_ctrl_0),
3103 SH_PFC_PIN_GROUP(scifb_data_1),
3104 SH_PFC_PIN_GROUP(scifb_clk_1),
3105 SH_PFC_PIN_GROUP(scifb_ctrl_1),
3106 BUS_DATA_PIN_GROUP(sdhi0_data, 1),
3107 BUS_DATA_PIN_GROUP(sdhi0_data, 4),
3108 SH_PFC_PIN_GROUP(sdhi0_ctrl),
3109 SH_PFC_PIN_GROUP(sdhi0_cd),
3110 SH_PFC_PIN_GROUP(sdhi0_wp),
3111 BUS_DATA_PIN_GROUP(sdhi1_data, 1),
3112 BUS_DATA_PIN_GROUP(sdhi1_data, 4),
3113 SH_PFC_PIN_GROUP(sdhi1_ctrl),
3114 BUS_DATA_PIN_GROUP(sdhi2_data, 1),
3115 BUS_DATA_PIN_GROUP(sdhi2_data, 4),
3116 SH_PFC_PIN_GROUP(sdhi2_ctrl),
3117 SH_PFC_PIN_GROUP(tpu0_to0),
3118 SH_PFC_PIN_GROUP(tpu0_to1),
3119 SH_PFC_PIN_GROUP(tpu0_to2),
3120 SH_PFC_PIN_GROUP(tpu0_to3),
3121 SH_PFC_PIN_GROUP(tpu1_to0),
3122 SH_PFC_PIN_GROUP(tpu1_to1_0),
3123 SH_PFC_PIN_GROUP(tpu1_to1_1),
3124 SH_PFC_PIN_GROUP(tpu1_to2),
3125 SH_PFC_PIN_GROUP(tpu1_to3),
3126 SH_PFC_PIN_GROUP(tpu2_to0),
3127 SH_PFC_PIN_GROUP(tpu2_to1),
3128 SH_PFC_PIN_GROUP(tpu2_to2),
3129 SH_PFC_PIN_GROUP(tpu2_to3),
3130 SH_PFC_PIN_GROUP(tpu3_to0),
3131 SH_PFC_PIN_GROUP(tpu3_to1),
3132 SH_PFC_PIN_GROUP(tpu3_to2),
3133 SH_PFC_PIN_GROUP(tpu3_to3),
3134 SH_PFC_PIN_GROUP(tpu4_to0),
3135 SH_PFC_PIN_GROUP(tpu4_to1),
3136 SH_PFC_PIN_GROUP(tpu4_to2),
3137 SH_PFC_PIN_GROUP(tpu4_to3),
3138 SH_PFC_PIN_GROUP(usb_vbus),
3139 };
3140
3141 static const char * const bsc_groups[] = {
3142 "bsc_data_0_7",
3143 "bsc_data_8_15",
3144 "bsc_cs4",
3145 "bsc_cs5_a",
3146 "bsc_cs5_b",
3147 "bsc_cs6_a",
3148 "bsc_cs6_b",
3149 "bsc_rd",
3150 "bsc_rdwr_0",
3151 "bsc_rdwr_1",
3152 "bsc_rdwr_2",
3153 "bsc_we0",
3154 "bsc_we1",
3155 };
3156
3157 static const char * const fsia_groups[] = {
3158 "fsia_mclk_in",
3159 "fsia_mclk_out",
3160 "fsia_sclk_in",
3161 "fsia_sclk_out",
3162 "fsia_data_in",
3163 "fsia_data_out",
3164 "fsia_spdif",
3165 };
3166
3167 static const char * const fsib_groups[] = {
3168 "fsib_mclk_in",
3169 "fsib_mclk_out",
3170 "fsib_sclk_in",
3171 "fsib_sclk_out",
3172 "fsib_data_in",
3173 "fsib_data_out",
3174 "fsib_spdif",
3175 };
3176
3177 static const char * const fsic_groups[] = {
3178 "fsic_mclk_in",
3179 "fsic_mclk_out",
3180 "fsic_sclk_in",
3181 "fsic_sclk_out",
3182 "fsic_data_in",
3183 "fsic_data_out",
3184 "fsic_spdif_0",
3185 "fsic_spdif_1",
3186 };
3187
3188 static const char * const fsid_groups[] = {
3189 "fsid_sclk_in",
3190 "fsid_sclk_out",
3191 "fsid_data_in",
3192 };
3193
3194 static const char * const i2c2_groups[] = {
3195 "i2c2_0",
3196 "i2c2_1",
3197 "i2c2_2",
3198 };
3199
3200 static const char * const i2c3_groups[] = {
3201 "i2c3_0",
3202 "i2c3_1",
3203 "i2c3_2",
3204 };
3205
3206 static const char * const irda_groups[] = {
3207 "irda_0",
3208 "irda_1",
3209 };
3210
3211 static const char * const keysc_groups[] = {
3212 "keysc_in5",
3213 "keysc_in6",
3214 "keysc_in7",
3215 "keysc_in8",
3216 "keysc_out04",
3217 "keysc_out5",
3218 "keysc_out6_0",
3219 "keysc_out6_1",
3220 "keysc_out6_2",
3221 "keysc_out7_0",
3222 "keysc_out7_1",
3223 "keysc_out7_2",
3224 "keysc_out8_0",
3225 "keysc_out8_1",
3226 "keysc_out8_2",
3227 "keysc_out9_0",
3228 "keysc_out9_1",
3229 "keysc_out9_2",
3230 "keysc_out10_0",
3231 "keysc_out10_1",
3232 "keysc_out11_0",
3233 "keysc_out11_1",
3234 };
3235
3236 static const char * const lcd_groups[] = {
3237 "lcd_data8",
3238 "lcd_data9",
3239 "lcd_data12",
3240 "lcd_data16",
3241 "lcd_data18",
3242 "lcd_data24",
3243 "lcd_display",
3244 "lcd_lclk",
3245 "lcd_sync",
3246 "lcd_sys",
3247 };
3248
3249 static const char * const lcd2_groups[] = {
3250 "lcd2_data8",
3251 "lcd2_data9",
3252 "lcd2_data12",
3253 "lcd2_data16",
3254 "lcd2_data18",
3255 "lcd2_data24",
3256 "lcd2_sync_0",
3257 "lcd2_sync_1",
3258 "lcd2_sys_0",
3259 "lcd2_sys_1",
3260 };
3261
3262 static const char * const mmc0_groups[] = {
3263 "mmc0_data1_0",
3264 "mmc0_data4_0",
3265 "mmc0_data8_0",
3266 "mmc0_ctrl_0",
3267 "mmc0_data1_1",
3268 "mmc0_data4_1",
3269 "mmc0_data8_1",
3270 "mmc0_ctrl_1",
3271 };
3272
3273 static const char * const msiof0_groups[] = {
3274 "msiof0_rsck",
3275 "msiof0_tsck",
3276 "msiof0_rsync",
3277 "msiof0_tsync",
3278 "msiof0_ss1",
3279 "msiof0_ss2",
3280 "msiof0_rxd",
3281 "msiof0_txd",
3282 "msiof0_mck0",
3283 "msiof0_mck1",
3284 "msiof0l_rsck",
3285 "msiof0l_tsck",
3286 "msiof0l_rsync",
3287 "msiof0l_tsync",
3288 "msiof0l_ss1_a",
3289 "msiof0l_ss1_b",
3290 "msiof0l_ss2_a",
3291 "msiof0l_ss2_b",
3292 "msiof0l_rxd",
3293 "msiof0l_txd",
3294 "msiof0l_mck0",
3295 "msiof0l_mck1",
3296 };
3297
3298 static const char * const msiof1_groups[] = {
3299 "msiof1_rsck",
3300 "msiof1_tsck",
3301 "msiof1_rsync",
3302 "msiof1_tsync",
3303 "msiof1_ss1",
3304 "msiof1_ss2",
3305 "msiof1_rxd",
3306 "msiof1_txd",
3307 "msiof1_mck0",
3308 "msiof1_mck1",
3309 };
3310
3311 static const char * const msiof2_groups[] = {
3312 "msiof2_rsck",
3313 "msiof2_tsck",
3314 "msiof2_rsync",
3315 "msiof2_tsync",
3316 "msiof2_ss1_a",
3317 "msiof2_ss1_b",
3318 "msiof2_ss2_a",
3319 "msiof2_ss2_b",
3320 "msiof2_rxd_a",
3321 "msiof2_rxd_b",
3322 "msiof2_txd",
3323 "msiof2_mck0",
3324 "msiof2_mck1",
3325 "msiof2r_tsck",
3326 "msiof2r_tsync",
3327 "msiof2r_rxd",
3328 "msiof2r_txd",
3329 };
3330
3331 static const char * const msiof3_groups[] = {
3332 "msiof3_rsck",
3333 "msiof3_tsck",
3334 "msiof3_rsync",
3335 "msiof3_tsync",
3336 "msiof3_ss1",
3337 "msiof3_ss2",
3338 "msiof3_rxd",
3339 "msiof3_txd",
3340 "msiof3_flow",
3341 };
3342
3343 static const char * const scifa0_groups[] = {
3344 "scifa0_data",
3345 "scifa0_clk",
3346 "scifa0_ctrl",
3347 };
3348
3349 static const char * const scifa1_groups[] = {
3350 "scifa1_data",
3351 "scifa1_clk",
3352 "scifa1_ctrl",
3353 };
3354
3355 static const char * const scifa2_groups[] = {
3356 "scifa2_data_0",
3357 "scifa2_clk_0",
3358 "scifa2_ctrl_0",
3359 "scifa2_data_1",
3360 "scifa2_clk_1",
3361 "scifa2_ctrl_1",
3362 };
3363
3364 static const char * const scifa3_groups[] = {
3365 "scifa3_data",
3366 "scifa3_ctrl",
3367 };
3368
3369 static const char * const scifa4_groups[] = {
3370 "scifa4_data",
3371 "scifa4_ctrl",
3372 };
3373
3374 static const char * const scifa5_groups[] = {
3375 "scifa5_data_0",
3376 "scifa5_clk_0",
3377 "scifa5_ctrl_0",
3378 "scifa5_data_1",
3379 "scifa5_clk_1",
3380 "scifa5_ctrl_1",
3381 "scifa5_data_2",
3382 "scifa5_clk_2",
3383 "scifa5_ctrl_2",
3384 };
3385
3386 static const char * const scifa6_groups[] = {
3387 "scifa6",
3388 };
3389
3390 static const char * const scifa7_groups[] = {
3391 "scifa7_data",
3392 "scifa7_ctrl",
3393 };
3394
3395 static const char * const scifb_groups[] = {
3396 "scifb_data_0",
3397 "scifb_clk_0",
3398 "scifb_ctrl_0",
3399 "scifb_data_1",
3400 "scifb_clk_1",
3401 "scifb_ctrl_1",
3402 };
3403
3404 static const char * const sdhi0_groups[] = {
3405 "sdhi0_data1",
3406 "sdhi0_data4",
3407 "sdhi0_ctrl",
3408 "sdhi0_cd",
3409 "sdhi0_wp",
3410 };
3411
3412 static const char * const sdhi1_groups[] = {
3413 "sdhi1_data1",
3414 "sdhi1_data4",
3415 "sdhi1_ctrl",
3416 };
3417
3418 static const char * const sdhi2_groups[] = {
3419 "sdhi2_data1",
3420 "sdhi2_data4",
3421 "sdhi2_ctrl",
3422 };
3423
3424 static const char * const usb_groups[] = {
3425 "usb_vbus",
3426 };
3427
3428 static const char * const tpu0_groups[] = {
3429 "tpu0_to0",
3430 "tpu0_to1",
3431 "tpu0_to2",
3432 "tpu0_to3",
3433 };
3434
3435 static const char * const tpu1_groups[] = {
3436 "tpu1_to0",
3437 "tpu1_to1_0",
3438 "tpu1_to1_1",
3439 "tpu1_to2",
3440 "tpu1_to3",
3441 };
3442
3443 static const char * const tpu2_groups[] = {
3444 "tpu2_to0",
3445 "tpu2_to1",
3446 "tpu2_to2",
3447 "tpu2_to3",
3448 };
3449
3450 static const char * const tpu3_groups[] = {
3451 "tpu3_to0",
3452 "tpu3_to1",
3453 "tpu3_to2",
3454 "tpu3_to3",
3455 };
3456
3457 static const char * const tpu4_groups[] = {
3458 "tpu4_to0",
3459 "tpu4_to1",
3460 "tpu4_to2",
3461 "tpu4_to3",
3462 };
3463
3464 static const struct sh_pfc_function pinmux_functions[] = {
3465 SH_PFC_FUNCTION(bsc),
3466 SH_PFC_FUNCTION(fsia),
3467 SH_PFC_FUNCTION(fsib),
3468 SH_PFC_FUNCTION(fsic),
3469 SH_PFC_FUNCTION(fsid),
3470 SH_PFC_FUNCTION(i2c2),
3471 SH_PFC_FUNCTION(i2c3),
3472 SH_PFC_FUNCTION(irda),
3473 SH_PFC_FUNCTION(keysc),
3474 SH_PFC_FUNCTION(lcd),
3475 SH_PFC_FUNCTION(lcd2),
3476 SH_PFC_FUNCTION(mmc0),
3477 SH_PFC_FUNCTION(msiof0),
3478 SH_PFC_FUNCTION(msiof1),
3479 SH_PFC_FUNCTION(msiof2),
3480 SH_PFC_FUNCTION(msiof3),
3481 SH_PFC_FUNCTION(scifa0),
3482 SH_PFC_FUNCTION(scifa1),
3483 SH_PFC_FUNCTION(scifa2),
3484 SH_PFC_FUNCTION(scifa3),
3485 SH_PFC_FUNCTION(scifa4),
3486 SH_PFC_FUNCTION(scifa5),
3487 SH_PFC_FUNCTION(scifa6),
3488 SH_PFC_FUNCTION(scifa7),
3489 SH_PFC_FUNCTION(scifb),
3490 SH_PFC_FUNCTION(sdhi0),
3491 SH_PFC_FUNCTION(sdhi1),
3492 SH_PFC_FUNCTION(sdhi2),
3493 SH_PFC_FUNCTION(tpu0),
3494 SH_PFC_FUNCTION(tpu1),
3495 SH_PFC_FUNCTION(tpu2),
3496 SH_PFC_FUNCTION(tpu3),
3497 SH_PFC_FUNCTION(tpu4),
3498 SH_PFC_FUNCTION(usb),
3499 };
3500
3501 static const struct pinmux_cfg_reg pinmux_config_regs[] = {
3502 PORTCR(0, 0xe6050000),
3503 PORTCR(1, 0xe6050001),
3504 PORTCR(2, 0xe6050002),
3505 PORTCR(3, 0xe6050003),
3506 PORTCR(4, 0xe6050004),
3507 PORTCR(5, 0xe6050005),
3508 PORTCR(6, 0xe6050006),
3509 PORTCR(7, 0xe6050007),
3510 PORTCR(8, 0xe6050008),
3511 PORTCR(9, 0xe6050009),
3512
3513 PORTCR(10, 0xe605000a),
3514 PORTCR(11, 0xe605000b),
3515 PORTCR(12, 0xe605000c),
3516 PORTCR(13, 0xe605000d),
3517 PORTCR(14, 0xe605000e),
3518 PORTCR(15, 0xe605000f),
3519 PORTCR(16, 0xe6050010),
3520 PORTCR(17, 0xe6050011),
3521 PORTCR(18, 0xe6050012),
3522 PORTCR(19, 0xe6050013),
3523
3524 PORTCR(20, 0xe6050014),
3525 PORTCR(21, 0xe6050015),
3526 PORTCR(22, 0xe6050016),
3527 PORTCR(23, 0xe6050017),
3528 PORTCR(24, 0xe6050018),
3529 PORTCR(25, 0xe6050019),
3530 PORTCR(26, 0xe605001a),
3531 PORTCR(27, 0xe605001b),
3532 PORTCR(28, 0xe605001c),
3533 PORTCR(29, 0xe605001d),
3534
3535 PORTCR(30, 0xe605001e),
3536 PORTCR(31, 0xe605001f),
3537 PORTCR(32, 0xe6051020),
3538 PORTCR(33, 0xe6051021),
3539 PORTCR(34, 0xe6051022),
3540 PORTCR(35, 0xe6051023),
3541 PORTCR(36, 0xe6051024),
3542 PORTCR(37, 0xe6051025),
3543 PORTCR(38, 0xe6051026),
3544 PORTCR(39, 0xe6051027),
3545
3546 PORTCR(40, 0xe6051028),
3547 PORTCR(41, 0xe6051029),
3548 PORTCR(42, 0xe605102a),
3549 PORTCR(43, 0xe605102b),
3550 PORTCR(44, 0xe605102c),
3551 PORTCR(45, 0xe605102d),
3552 PORTCR(46, 0xe605102e),
3553 PORTCR(47, 0xe605102f),
3554 PORTCR(48, 0xe6051030),
3555 PORTCR(49, 0xe6051031),
3556
3557 PORTCR(50, 0xe6051032),
3558 PORTCR(51, 0xe6051033),
3559 PORTCR(52, 0xe6051034),
3560 PORTCR(53, 0xe6051035),
3561 PORTCR(54, 0xe6051036),
3562 PORTCR(55, 0xe6051037),
3563 PORTCR(56, 0xe6051038),
3564 PORTCR(57, 0xe6051039),
3565 PORTCR(58, 0xe605103a),
3566 PORTCR(59, 0xe605103b),
3567
3568 PORTCR(60, 0xe605103c),
3569 PORTCR(61, 0xe605103d),
3570 PORTCR(62, 0xe605103e),
3571 PORTCR(63, 0xe605103f),
3572 PORTCR(64, 0xe6051040),
3573 PORTCR(65, 0xe6051041),
3574 PORTCR(66, 0xe6051042),
3575 PORTCR(67, 0xe6051043),
3576 PORTCR(68, 0xe6051044),
3577 PORTCR(69, 0xe6051045),
3578
3579 PORTCR(70, 0xe6051046),
3580 PORTCR(71, 0xe6051047),
3581 PORTCR(72, 0xe6051048),
3582 PORTCR(73, 0xe6051049),
3583 PORTCR(74, 0xe605104a),
3584 PORTCR(75, 0xe605104b),
3585 PORTCR(76, 0xe605104c),
3586 PORTCR(77, 0xe605104d),
3587 PORTCR(78, 0xe605104e),
3588 PORTCR(79, 0xe605104f),
3589
3590 PORTCR(80, 0xe6051050),
3591 PORTCR(81, 0xe6051051),
3592 PORTCR(82, 0xe6051052),
3593 PORTCR(83, 0xe6051053),
3594 PORTCR(84, 0xe6051054),
3595 PORTCR(85, 0xe6051055),
3596 PORTCR(86, 0xe6051056),
3597 PORTCR(87, 0xe6051057),
3598 PORTCR(88, 0xe6051058),
3599 PORTCR(89, 0xe6051059),
3600
3601 PORTCR(90, 0xe605105a),
3602 PORTCR(91, 0xe605105b),
3603 PORTCR(92, 0xe605105c),
3604 PORTCR(93, 0xe605105d),
3605 PORTCR(94, 0xe605105e),
3606 PORTCR(95, 0xe605105f),
3607 PORTCR(96, 0xe6052060),
3608 PORTCR(97, 0xe6052061),
3609 PORTCR(98, 0xe6052062),
3610 PORTCR(99, 0xe6052063),
3611
3612 PORTCR(100, 0xe6052064),
3613 PORTCR(101, 0xe6052065),
3614 PORTCR(102, 0xe6052066),
3615 PORTCR(103, 0xe6052067),
3616 PORTCR(104, 0xe6052068),
3617 PORTCR(105, 0xe6052069),
3618 PORTCR(106, 0xe605206a),
3619 PORTCR(107, 0xe605206b),
3620 PORTCR(108, 0xe605206c),
3621 PORTCR(109, 0xe605206d),
3622
3623 PORTCR(110, 0xe605206e),
3624 PORTCR(111, 0xe605206f),
3625 PORTCR(112, 0xe6052070),
3626 PORTCR(113, 0xe6052071),
3627 PORTCR(114, 0xe6052072),
3628 PORTCR(115, 0xe6052073),
3629 PORTCR(116, 0xe6052074),
3630 PORTCR(117, 0xe6052075),
3631 PORTCR(118, 0xe6052076),
3632
3633 PORTCR(128, 0xe6052080),
3634 PORTCR(129, 0xe6052081),
3635
3636 PORTCR(130, 0xe6052082),
3637 PORTCR(131, 0xe6052083),
3638 PORTCR(132, 0xe6052084),
3639 PORTCR(133, 0xe6052085),
3640 PORTCR(134, 0xe6052086),
3641 PORTCR(135, 0xe6052087),
3642 PORTCR(136, 0xe6052088),
3643 PORTCR(137, 0xe6052089),
3644 PORTCR(138, 0xe605208a),
3645 PORTCR(139, 0xe605208b),
3646
3647 PORTCR(140, 0xe605208c),
3648 PORTCR(141, 0xe605208d),
3649 PORTCR(142, 0xe605208e),
3650 PORTCR(143, 0xe605208f),
3651 PORTCR(144, 0xe6052090),
3652 PORTCR(145, 0xe6052091),
3653 PORTCR(146, 0xe6052092),
3654 PORTCR(147, 0xe6052093),
3655 PORTCR(148, 0xe6052094),
3656 PORTCR(149, 0xe6052095),
3657
3658 PORTCR(150, 0xe6052096),
3659 PORTCR(151, 0xe6052097),
3660 PORTCR(152, 0xe6052098),
3661 PORTCR(153, 0xe6052099),
3662 PORTCR(154, 0xe605209a),
3663 PORTCR(155, 0xe605209b),
3664 PORTCR(156, 0xe605209c),
3665 PORTCR(157, 0xe605209d),
3666 PORTCR(158, 0xe605209e),
3667 PORTCR(159, 0xe605209f),
3668
3669 PORTCR(160, 0xe60520a0),
3670 PORTCR(161, 0xe60520a1),
3671 PORTCR(162, 0xe60520a2),
3672 PORTCR(163, 0xe60520a3),
3673 PORTCR(164, 0xe60520a4),
3674
3675 PORTCR(192, 0xe60520c0),
3676 PORTCR(193, 0xe60520c1),
3677 PORTCR(194, 0xe60520c2),
3678 PORTCR(195, 0xe60520c3),
3679 PORTCR(196, 0xe60520c4),
3680 PORTCR(197, 0xe60520c5),
3681 PORTCR(198, 0xe60520c6),
3682 PORTCR(199, 0xe60520c7),
3683
3684 PORTCR(200, 0xe60520c8),
3685 PORTCR(201, 0xe60520c9),
3686 PORTCR(202, 0xe60520ca),
3687 PORTCR(203, 0xe60520cb),
3688 PORTCR(204, 0xe60520cc),
3689 PORTCR(205, 0xe60520cd),
3690 PORTCR(206, 0xe60520ce),
3691 PORTCR(207, 0xe60520cf),
3692 PORTCR(208, 0xe60520d0),
3693 PORTCR(209, 0xe60520d1),
3694
3695 PORTCR(210, 0xe60520d2),
3696 PORTCR(211, 0xe60520d3),
3697 PORTCR(212, 0xe60520d4),
3698 PORTCR(213, 0xe60520d5),
3699 PORTCR(214, 0xe60520d6),
3700 PORTCR(215, 0xe60520d7),
3701 PORTCR(216, 0xe60520d8),
3702 PORTCR(217, 0xe60520d9),
3703 PORTCR(218, 0xe60520da),
3704 PORTCR(219, 0xe60520db),
3705
3706 PORTCR(220, 0xe60520dc),
3707 PORTCR(221, 0xe60520dd),
3708 PORTCR(222, 0xe60520de),
3709 PORTCR(223, 0xe60520df),
3710 PORTCR(224, 0xe60530e0),
3711 PORTCR(225, 0xe60530e1),
3712 PORTCR(226, 0xe60530e2),
3713 PORTCR(227, 0xe60530e3),
3714 PORTCR(228, 0xe60530e4),
3715 PORTCR(229, 0xe60530e5),
3716
3717 PORTCR(230, 0xe60530e6),
3718 PORTCR(231, 0xe60530e7),
3719 PORTCR(232, 0xe60530e8),
3720 PORTCR(233, 0xe60530e9),
3721 PORTCR(234, 0xe60530ea),
3722 PORTCR(235, 0xe60530eb),
3723 PORTCR(236, 0xe60530ec),
3724 PORTCR(237, 0xe60530ed),
3725 PORTCR(238, 0xe60530ee),
3726 PORTCR(239, 0xe60530ef),
3727
3728 PORTCR(240, 0xe60530f0),
3729 PORTCR(241, 0xe60530f1),
3730 PORTCR(242, 0xe60530f2),
3731 PORTCR(243, 0xe60530f3),
3732 PORTCR(244, 0xe60530f4),
3733 PORTCR(245, 0xe60530f5),
3734 PORTCR(246, 0xe60530f6),
3735 PORTCR(247, 0xe60530f7),
3736 PORTCR(248, 0xe60530f8),
3737 PORTCR(249, 0xe60530f9),
3738
3739 PORTCR(250, 0xe60530fa),
3740 PORTCR(251, 0xe60530fb),
3741 PORTCR(252, 0xe60530fc),
3742 PORTCR(253, 0xe60530fd),
3743 PORTCR(254, 0xe60530fe),
3744 PORTCR(255, 0xe60530ff),
3745 PORTCR(256, 0xe6053100),
3746 PORTCR(257, 0xe6053101),
3747 PORTCR(258, 0xe6053102),
3748 PORTCR(259, 0xe6053103),
3749
3750 PORTCR(260, 0xe6053104),
3751 PORTCR(261, 0xe6053105),
3752 PORTCR(262, 0xe6053106),
3753 PORTCR(263, 0xe6053107),
3754 PORTCR(264, 0xe6053108),
3755 PORTCR(265, 0xe6053109),
3756 PORTCR(266, 0xe605310a),
3757 PORTCR(267, 0xe605310b),
3758 PORTCR(268, 0xe605310c),
3759 PORTCR(269, 0xe605310d),
3760
3761 PORTCR(270, 0xe605310e),
3762 PORTCR(271, 0xe605310f),
3763 PORTCR(272, 0xe6053110),
3764 PORTCR(273, 0xe6053111),
3765 PORTCR(274, 0xe6053112),
3766 PORTCR(275, 0xe6053113),
3767 PORTCR(276, 0xe6053114),
3768 PORTCR(277, 0xe6053115),
3769 PORTCR(278, 0xe6053116),
3770 PORTCR(279, 0xe6053117),
3771
3772 PORTCR(280, 0xe6053118),
3773 PORTCR(281, 0xe6053119),
3774 PORTCR(282, 0xe605311a),
3775
3776 PORTCR(288, 0xe6052120),
3777 PORTCR(289, 0xe6052121),
3778
3779 PORTCR(290, 0xe6052122),
3780 PORTCR(291, 0xe6052123),
3781 PORTCR(292, 0xe6052124),
3782 PORTCR(293, 0xe6052125),
3783 PORTCR(294, 0xe6052126),
3784 PORTCR(295, 0xe6052127),
3785 PORTCR(296, 0xe6052128),
3786 PORTCR(297, 0xe6052129),
3787 PORTCR(298, 0xe605212a),
3788 PORTCR(299, 0xe605212b),
3789
3790 PORTCR(300, 0xe605212c),
3791 PORTCR(301, 0xe605212d),
3792 PORTCR(302, 0xe605212e),
3793 PORTCR(303, 0xe605212f),
3794 PORTCR(304, 0xe6052130),
3795 PORTCR(305, 0xe6052131),
3796 PORTCR(306, 0xe6052132),
3797 PORTCR(307, 0xe6052133),
3798 PORTCR(308, 0xe6052134),
3799 PORTCR(309, 0xe6052135),
3800
3801 { PINMUX_CFG_REG_VAR("MSEL2CR", 0xe605801c, 32,
3802 GROUP(-12, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1,
3803 1, 1, 1, 1, 1, 1, 1, 1, 1),
3804 GROUP(
3805
3806 MSEL2CR_MSEL19_0, MSEL2CR_MSEL19_1,
3807 MSEL2CR_MSEL18_0, MSEL2CR_MSEL18_1,
3808 MSEL2CR_MSEL17_0, MSEL2CR_MSEL17_1,
3809 MSEL2CR_MSEL16_0, MSEL2CR_MSEL16_1,
3810
3811 MSEL2CR_MSEL14_0, MSEL2CR_MSEL14_1,
3812 MSEL2CR_MSEL13_0, MSEL2CR_MSEL13_1,
3813 MSEL2CR_MSEL12_0, MSEL2CR_MSEL12_1,
3814 MSEL2CR_MSEL11_0, MSEL2CR_MSEL11_1,
3815 MSEL2CR_MSEL10_0, MSEL2CR_MSEL10_1,
3816 MSEL2CR_MSEL9_0, MSEL2CR_MSEL9_1,
3817 MSEL2CR_MSEL8_0, MSEL2CR_MSEL8_1,
3818 MSEL2CR_MSEL7_0, MSEL2CR_MSEL7_1,
3819 MSEL2CR_MSEL6_0, MSEL2CR_MSEL6_1,
3820 MSEL2CR_MSEL5_0, MSEL2CR_MSEL5_1,
3821 MSEL2CR_MSEL4_0, MSEL2CR_MSEL4_1,
3822 MSEL2CR_MSEL3_0, MSEL2CR_MSEL3_1,
3823 MSEL2CR_MSEL2_0, MSEL2CR_MSEL2_1,
3824 MSEL2CR_MSEL1_0, MSEL2CR_MSEL1_1,
3825 MSEL2CR_MSEL0_0, MSEL2CR_MSEL0_1,
3826 ))
3827 },
3828 { PINMUX_CFG_REG_VAR("MSEL3CR", 0xe6058020, 32,
3829 GROUP(-3, 1, -12, 1, -3, 1, -1, 1, -2, 1, -3, 1,
3830 -2),
3831 GROUP(
3832
3833 MSEL3CR_MSEL28_0, MSEL3CR_MSEL28_1,
3834
3835 MSEL3CR_MSEL15_0, MSEL3CR_MSEL15_1,
3836
3837 MSEL3CR_MSEL11_0, MSEL3CR_MSEL11_1,
3838
3839 MSEL3CR_MSEL9_0, MSEL3CR_MSEL9_1,
3840
3841 MSEL3CR_MSEL6_0, MSEL3CR_MSEL6_1,
3842
3843 MSEL3CR_MSEL2_0, MSEL3CR_MSEL2_1,
3844
3845 ))
3846 },
3847 { PINMUX_CFG_REG_VAR("MSEL4CR", 0xe6058024, 32,
3848 GROUP(-2, 1, -1, 1, 1, -3, 1, 1, 1, 1, -3, 1,
3849 -1, 1, 1, 1, 1, 1, 1, 1, -2, 1, -2, 1,
3850 -1),
3851 GROUP(
3852
3853 MSEL4CR_MSEL29_0, MSEL4CR_MSEL29_1,
3854
3855 MSEL4CR_MSEL27_0, MSEL4CR_MSEL27_1,
3856 MSEL4CR_MSEL26_0, MSEL4CR_MSEL26_1,
3857
3858 MSEL4CR_MSEL22_0, MSEL4CR_MSEL22_1,
3859 MSEL4CR_MSEL21_0, MSEL4CR_MSEL21_1,
3860 MSEL4CR_MSEL20_0, MSEL4CR_MSEL20_1,
3861 MSEL4CR_MSEL19_0, MSEL4CR_MSEL19_1,
3862
3863 MSEL4CR_MSEL15_0, MSEL4CR_MSEL15_1,
3864
3865 MSEL4CR_MSEL13_0, MSEL4CR_MSEL13_1,
3866 MSEL4CR_MSEL12_0, MSEL4CR_MSEL12_1,
3867 MSEL4CR_MSEL11_0, MSEL4CR_MSEL11_1,
3868 MSEL4CR_MSEL10_0, MSEL4CR_MSEL10_1,
3869 MSEL4CR_MSEL9_0, MSEL4CR_MSEL9_1,
3870 MSEL4CR_MSEL8_0, MSEL4CR_MSEL8_1,
3871 MSEL4CR_MSEL7_0, MSEL4CR_MSEL7_1,
3872
3873 MSEL4CR_MSEL4_0, MSEL4CR_MSEL4_1,
3874
3875 MSEL4CR_MSEL1_0, MSEL4CR_MSEL1_1,
3876
3877 ))
3878 },
3879 { },
3880 };
3881
3882 static const struct pinmux_data_reg pinmux_data_regs[] = {
3883 { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054000, 32, GROUP(
3884 PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA,
3885 PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA,
3886 PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA,
3887 PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA,
3888 PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA,
3889 PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA,
3890 PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA,
3891 PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA ))
3892 },
3893 { PINMUX_DATA_REG("PORTD063_032DR", 0xe6055000, 32, GROUP(
3894 PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA,
3895 PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA,
3896 PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA,
3897 PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA,
3898 PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA,
3899 PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA,
3900 PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA,
3901 PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA ))
3902 },
3903 { PINMUX_DATA_REG("PORTD095_064DR", 0xe6055004, 32, GROUP(
3904 PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA,
3905 PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA,
3906 PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA,
3907 PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA,
3908 PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA,
3909 PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA,
3910 PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA,
3911 PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA ))
3912 },
3913 { PINMUX_DATA_REG("PORTR127_096DR", 0xe6056000, 32, GROUP(
3914 0, 0, 0, 0,
3915 0, 0, 0, 0,
3916 0, PORT118_DATA, PORT117_DATA, PORT116_DATA,
3917 PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA,
3918 PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA,
3919 PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA,
3920 PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA,
3921 PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA ))
3922 },
3923 { PINMUX_DATA_REG("PORTR159_128DR", 0xe6056004, 32, GROUP(
3924 PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA,
3925 PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA,
3926 PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA,
3927 PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA,
3928 PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA,
3929 PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA,
3930 PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA,
3931 PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA ))
3932 },
3933 { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056008, 32, GROUP(
3934 0, 0, 0, 0,
3935 0, 0, 0, 0,
3936 0, 0, 0, 0,
3937 0, 0, 0, 0,
3938 0, 0, 0, 0,
3939 0, 0, 0, 0,
3940 0, 0, 0, PORT164_DATA,
3941 PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA ))
3942 },
3943 { PINMUX_DATA_REG("PORTR223_192DR", 0xe605600C, 32, GROUP(
3944 PORT223_DATA, PORT222_DATA, PORT221_DATA, PORT220_DATA,
3945 PORT219_DATA, PORT218_DATA, PORT217_DATA, PORT216_DATA,
3946 PORT215_DATA, PORT214_DATA, PORT213_DATA, PORT212_DATA,
3947 PORT211_DATA, PORT210_DATA, PORT209_DATA, PORT208_DATA,
3948 PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA,
3949 PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA,
3950 PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA,
3951 PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA ))
3952 },
3953 { PINMUX_DATA_REG("PORTU255_224DR", 0xe6057000, 32, GROUP(
3954 PORT255_DATA, PORT254_DATA, PORT253_DATA, PORT252_DATA,
3955 PORT251_DATA, PORT250_DATA, PORT249_DATA, PORT248_DATA,
3956 PORT247_DATA, PORT246_DATA, PORT245_DATA, PORT244_DATA,
3957 PORT243_DATA, PORT242_DATA, PORT241_DATA, PORT240_DATA,
3958 PORT239_DATA, PORT238_DATA, PORT237_DATA, PORT236_DATA,
3959 PORT235_DATA, PORT234_DATA, PORT233_DATA, PORT232_DATA,
3960 PORT231_DATA, PORT230_DATA, PORT229_DATA, PORT228_DATA,
3961 PORT227_DATA, PORT226_DATA, PORT225_DATA, PORT224_DATA ))
3962 },
3963 { PINMUX_DATA_REG("PORTU287_256DR", 0xe6057004, 32, GROUP(
3964 0, 0, 0, 0,
3965 0, PORT282_DATA, PORT281_DATA, PORT280_DATA,
3966 PORT279_DATA, PORT278_DATA, PORT277_DATA, PORT276_DATA,
3967 PORT275_DATA, PORT274_DATA, PORT273_DATA, PORT272_DATA,
3968 PORT271_DATA, PORT270_DATA, PORT269_DATA, PORT268_DATA,
3969 PORT267_DATA, PORT266_DATA, PORT265_DATA, PORT264_DATA,
3970 PORT263_DATA, PORT262_DATA, PORT261_DATA, PORT260_DATA,
3971 PORT259_DATA, PORT258_DATA, PORT257_DATA, PORT256_DATA ))
3972 },
3973 { PINMUX_DATA_REG("PORTR319_288DR", 0xe6056010, 32, GROUP(
3974 0, 0, 0, 0,
3975 0, 0, 0, 0,
3976 0, 0, PORT309_DATA, PORT308_DATA,
3977 PORT307_DATA, PORT306_DATA, PORT305_DATA, PORT304_DATA,
3978 PORT303_DATA, PORT302_DATA, PORT301_DATA, PORT300_DATA,
3979 PORT299_DATA, PORT298_DATA, PORT297_DATA, PORT296_DATA,
3980 PORT295_DATA, PORT294_DATA, PORT293_DATA, PORT292_DATA,
3981 PORT291_DATA, PORT290_DATA, PORT289_DATA, PORT288_DATA ))
3982 },
3983 { },
3984 };
3985
3986 static const struct pinmux_irq pinmux_irqs[] = {
3987 PINMUX_IRQ(11),
3988 PINMUX_IRQ(10),
3989 PINMUX_IRQ(149),
3990 PINMUX_IRQ(224),
3991 PINMUX_IRQ(159),
3992 PINMUX_IRQ(227),
3993 PINMUX_IRQ(147),
3994 PINMUX_IRQ(150),
3995 PINMUX_IRQ(223),
3996 PINMUX_IRQ(56, 308),
3997 PINMUX_IRQ(54),
3998 PINMUX_IRQ(238),
3999 PINMUX_IRQ(156),
4000 PINMUX_IRQ(239),
4001 PINMUX_IRQ(251),
4002 PINMUX_IRQ(0),
4003 PINMUX_IRQ(249),
4004 PINMUX_IRQ(234),
4005 PINMUX_IRQ(13),
4006 PINMUX_IRQ(9),
4007 PINMUX_IRQ(14),
4008 PINMUX_IRQ(15),
4009 PINMUX_IRQ(40),
4010 PINMUX_IRQ(53),
4011 PINMUX_IRQ(118),
4012 PINMUX_IRQ(164),
4013 PINMUX_IRQ(115),
4014 PINMUX_IRQ(116),
4015 PINMUX_IRQ(117),
4016 PINMUX_IRQ(28),
4017 PINMUX_IRQ(27),
4018 PINMUX_IRQ(26),
4019 };
4020
4021
4022
4023
4024
4025 static void sh73a0_vccq_mc0_endisable(struct regulator_dev *reg, bool enable)
4026 {
4027 struct sh_pfc *pfc = reg->reg_data;
4028 void __iomem *addr = pfc->windows[1].virt + 4;
4029 unsigned long flags;
4030 u32 value;
4031
4032 spin_lock_irqsave(&pfc->lock, flags);
4033
4034 value = ioread32(addr);
4035
4036 if (enable)
4037 value |= BIT(28);
4038 else
4039 value &= ~BIT(28);
4040
4041 iowrite32(value, addr);
4042
4043 spin_unlock_irqrestore(&pfc->lock, flags);
4044 }
4045
4046 static int sh73a0_vccq_mc0_enable(struct regulator_dev *reg)
4047 {
4048 sh73a0_vccq_mc0_endisable(reg, true);
4049 return 0;
4050 }
4051
4052 static int sh73a0_vccq_mc0_disable(struct regulator_dev *reg)
4053 {
4054 sh73a0_vccq_mc0_endisable(reg, false);
4055 return 0;
4056 }
4057
4058 static int sh73a0_vccq_mc0_is_enabled(struct regulator_dev *reg)
4059 {
4060 struct sh_pfc *pfc = reg->reg_data;
4061 void __iomem *addr = pfc->windows[1].virt + 4;
4062 unsigned long flags;
4063 u32 value;
4064
4065 spin_lock_irqsave(&pfc->lock, flags);
4066 value = ioread32(addr);
4067 spin_unlock_irqrestore(&pfc->lock, flags);
4068
4069 return !!(value & BIT(28));
4070 }
4071
4072 static int sh73a0_vccq_mc0_get_voltage(struct regulator_dev *reg)
4073 {
4074 return 3300000;
4075 }
4076
4077 static const struct regulator_ops sh73a0_vccq_mc0_ops = {
4078 .enable = sh73a0_vccq_mc0_enable,
4079 .disable = sh73a0_vccq_mc0_disable,
4080 .is_enabled = sh73a0_vccq_mc0_is_enabled,
4081 .get_voltage = sh73a0_vccq_mc0_get_voltage,
4082 };
4083
4084 static const struct regulator_desc sh73a0_vccq_mc0_desc = {
4085 .owner = THIS_MODULE,
4086 .name = "vccq_mc0",
4087 .type = REGULATOR_VOLTAGE,
4088 .ops = &sh73a0_vccq_mc0_ops,
4089 };
4090
4091 static struct regulator_consumer_supply sh73a0_vccq_mc0_consumers[] = {
4092 REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"),
4093 REGULATOR_SUPPLY("vqmmc", "ee100000.sdhi"),
4094 };
4095
4096 static const struct regulator_init_data sh73a0_vccq_mc0_init_data = {
4097 .constraints = {
4098 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
4099 },
4100 .num_consumer_supplies = ARRAY_SIZE(sh73a0_vccq_mc0_consumers),
4101 .consumer_supplies = sh73a0_vccq_mc0_consumers,
4102 };
4103
4104
4105
4106
4107
4108 static const unsigned int sh73a0_portcr_offsets[] = {
4109 0x00000000, 0x00001000, 0x00001000, 0x00002000, 0x00002000,
4110 0x00002000, 0x00002000, 0x00003000, 0x00003000, 0x00002000,
4111 };
4112
4113 static int sh73a0_pin_to_portcr(unsigned int pin)
4114 {
4115 return sh73a0_portcr_offsets[pin >> 5] + pin;
4116 }
4117
4118
4119
4120
4121
4122 static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc)
4123 {
4124 struct regulator_config cfg = { };
4125 struct regulator_dev *vccq;
4126 int ret;
4127
4128 cfg.dev = pfc->dev;
4129 cfg.init_data = &sh73a0_vccq_mc0_init_data;
4130 cfg.driver_data = pfc;
4131
4132 vccq = devm_regulator_register(pfc->dev, &sh73a0_vccq_mc0_desc, &cfg);
4133 if (IS_ERR(vccq)) {
4134 ret = PTR_ERR(vccq);
4135 dev_err(pfc->dev, "Failed to register VCCQ MC0 regulator: %d\n",
4136 ret);
4137 return ret;
4138 }
4139
4140 return 0;
4141 }
4142
4143 static const struct sh_pfc_soc_operations sh73a0_pfc_ops = {
4144 .init = sh73a0_pinmux_soc_init,
4145 .get_bias = rmobile_pinmux_get_bias,
4146 .set_bias = rmobile_pinmux_set_bias,
4147 .pin_to_portcr = sh73a0_pin_to_portcr,
4148 };
4149
4150 const struct sh_pfc_soc_info sh73a0_pinmux_info = {
4151 .name = "sh73a0_pfc",
4152 .ops = &sh73a0_pfc_ops,
4153
4154 .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
4155 .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
4156 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
4157
4158 .pins = pinmux_pins,
4159 .nr_pins = ARRAY_SIZE(pinmux_pins),
4160 .groups = pinmux_groups,
4161 .nr_groups = ARRAY_SIZE(pinmux_groups),
4162 .functions = pinmux_functions,
4163 .nr_functions = ARRAY_SIZE(pinmux_functions),
4164
4165 .cfg_regs = pinmux_config_regs,
4166 .data_regs = pinmux_data_regs,
4167
4168 .pinmux_data = pinmux_data,
4169 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
4170
4171 .gpio_irq = pinmux_irqs,
4172 .gpio_irq_size = ARRAY_SIZE(pinmux_irqs),
4173 };