1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright (C) 2011 Renesas Solutions Corp. 3*4882a593Smuzhiyun * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun #ifndef __ASM_R8A7740_H__ 9*4882a593Smuzhiyun #define __ASM_R8A7740_H__ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun /* 12*4882a593Smuzhiyun * MD_CKx pin 13*4882a593Smuzhiyun */ 14*4882a593Smuzhiyun #define MD_CK2 (1 << 2) 15*4882a593Smuzhiyun #define MD_CK1 (1 << 1) 16*4882a593Smuzhiyun #define MD_CK0 (1 << 0) 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun /* 19*4882a593Smuzhiyun * Pin Function Controller: 20*4882a593Smuzhiyun * GPIO_FN_xx - GPIO used to select pin function 21*4882a593Smuzhiyun * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun enum { 24*4882a593Smuzhiyun /* PORT */ 25*4882a593Smuzhiyun GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, 26*4882a593Smuzhiyun GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, 29*4882a593Smuzhiyun GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, 32*4882a593Smuzhiyun GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, 35*4882a593Smuzhiyun GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, 38*4882a593Smuzhiyun GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, 41*4882a593Smuzhiyun GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, 44*4882a593Smuzhiyun GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, 47*4882a593Smuzhiyun GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, 50*4882a593Smuzhiyun GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, 53*4882a593Smuzhiyun GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, 56*4882a593Smuzhiyun GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, 59*4882a593Smuzhiyun GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, 62*4882a593Smuzhiyun GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, 65*4882a593Smuzhiyun GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, 68*4882a593Smuzhiyun GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, 71*4882a593Smuzhiyun GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, 74*4882a593Smuzhiyun GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, 77*4882a593Smuzhiyun GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, 78*4882a593Smuzhiyun 79*4882a593Smuzhiyun GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, 80*4882a593Smuzhiyun GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun GPIO_PORT190, GPIO_PORT191, GPIO_PORT192, GPIO_PORT193, GPIO_PORT194, 83*4882a593Smuzhiyun GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199, 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204, 86*4882a593Smuzhiyun GPIO_PORT205, GPIO_PORT206, GPIO_PORT207, GPIO_PORT208, GPIO_PORT209, 87*4882a593Smuzhiyun 88*4882a593Smuzhiyun GPIO_PORT210, GPIO_PORT211, 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun /* IRQ */ 91*4882a593Smuzhiyun GPIO_FN_IRQ0_PORT2, GPIO_FN_IRQ0_PORT13, 92*4882a593Smuzhiyun GPIO_FN_IRQ1, 93*4882a593Smuzhiyun GPIO_FN_IRQ2_PORT11, GPIO_FN_IRQ2_PORT12, 94*4882a593Smuzhiyun GPIO_FN_IRQ3_PORT10, GPIO_FN_IRQ3_PORT14, 95*4882a593Smuzhiyun GPIO_FN_IRQ4_PORT15, GPIO_FN_IRQ4_PORT172, 96*4882a593Smuzhiyun GPIO_FN_IRQ5_PORT0, GPIO_FN_IRQ5_PORT1, 97*4882a593Smuzhiyun GPIO_FN_IRQ6_PORT121, GPIO_FN_IRQ6_PORT173, 98*4882a593Smuzhiyun GPIO_FN_IRQ7_PORT120, GPIO_FN_IRQ7_PORT209, 99*4882a593Smuzhiyun GPIO_FN_IRQ8, 100*4882a593Smuzhiyun GPIO_FN_IRQ9_PORT118, GPIO_FN_IRQ9_PORT210, 101*4882a593Smuzhiyun GPIO_FN_IRQ10, 102*4882a593Smuzhiyun GPIO_FN_IRQ11, 103*4882a593Smuzhiyun GPIO_FN_IRQ12_PORT42, GPIO_FN_IRQ12_PORT97, 104*4882a593Smuzhiyun GPIO_FN_IRQ13_PORT64, GPIO_FN_IRQ13_PORT98, 105*4882a593Smuzhiyun GPIO_FN_IRQ14_PORT63, GPIO_FN_IRQ14_PORT99, 106*4882a593Smuzhiyun GPIO_FN_IRQ15_PORT62, GPIO_FN_IRQ15_PORT100, 107*4882a593Smuzhiyun GPIO_FN_IRQ16_PORT68, GPIO_FN_IRQ16_PORT211, 108*4882a593Smuzhiyun GPIO_FN_IRQ17, 109*4882a593Smuzhiyun GPIO_FN_IRQ18, 110*4882a593Smuzhiyun GPIO_FN_IRQ19, 111*4882a593Smuzhiyun GPIO_FN_IRQ20, 112*4882a593Smuzhiyun GPIO_FN_IRQ21, 113*4882a593Smuzhiyun GPIO_FN_IRQ22, 114*4882a593Smuzhiyun GPIO_FN_IRQ23, 115*4882a593Smuzhiyun GPIO_FN_IRQ24, 116*4882a593Smuzhiyun GPIO_FN_IRQ25, 117*4882a593Smuzhiyun GPIO_FN_IRQ26_PORT58, GPIO_FN_IRQ26_PORT81, 118*4882a593Smuzhiyun GPIO_FN_IRQ27_PORT57, GPIO_FN_IRQ27_PORT168, 119*4882a593Smuzhiyun GPIO_FN_IRQ28_PORT56, GPIO_FN_IRQ28_PORT169, 120*4882a593Smuzhiyun GPIO_FN_IRQ29_PORT50, GPIO_FN_IRQ29_PORT170, 121*4882a593Smuzhiyun GPIO_FN_IRQ30_PORT49, GPIO_FN_IRQ30_PORT171, 122*4882a593Smuzhiyun GPIO_FN_IRQ31_PORT41, GPIO_FN_IRQ31_PORT167, 123*4882a593Smuzhiyun 124*4882a593Smuzhiyun /* Function */ 125*4882a593Smuzhiyun 126*4882a593Smuzhiyun /* DBGT */ 127*4882a593Smuzhiyun GPIO_FN_DBGMDT2, GPIO_FN_DBGMDT1, GPIO_FN_DBGMDT0, 128*4882a593Smuzhiyun GPIO_FN_DBGMD10, GPIO_FN_DBGMD11, GPIO_FN_DBGMD20, 129*4882a593Smuzhiyun GPIO_FN_DBGMD21, 130*4882a593Smuzhiyun 131*4882a593Smuzhiyun /* FSI */ 132*4882a593Smuzhiyun GPIO_FN_FSIAISLD_PORT0, /* FSIAISLD Port 0/5 */ 133*4882a593Smuzhiyun GPIO_FN_FSIAISLD_PORT5, 134*4882a593Smuzhiyun GPIO_FN_FSIASPDIF_PORT9, /* FSIASPDIF Port 9/18 */ 135*4882a593Smuzhiyun GPIO_FN_FSIASPDIF_PORT18, 136*4882a593Smuzhiyun GPIO_FN_FSIAOSLD1, GPIO_FN_FSIAOSLD2, 137*4882a593Smuzhiyun GPIO_FN_FSIAOLR, GPIO_FN_FSIAOBT, 138*4882a593Smuzhiyun GPIO_FN_FSIAOSLD, GPIO_FN_FSIAOMC, 139*4882a593Smuzhiyun GPIO_FN_FSIACK, GPIO_FN_FSIAILR, 140*4882a593Smuzhiyun GPIO_FN_FSIAIBT, 141*4882a593Smuzhiyun 142*4882a593Smuzhiyun /* FMSI */ 143*4882a593Smuzhiyun GPIO_FN_FMSISLD_PORT1, /* FMSISLD Port 1/6 */ 144*4882a593Smuzhiyun GPIO_FN_FMSISLD_PORT6, 145*4882a593Smuzhiyun GPIO_FN_FMSIILR, GPIO_FN_FMSIIBT, 146*4882a593Smuzhiyun GPIO_FN_FMSIOLR, GPIO_FN_FMSIOBT, 147*4882a593Smuzhiyun GPIO_FN_FMSICK, GPIO_FN_FMSOILR, 148*4882a593Smuzhiyun GPIO_FN_FMSOIBT, GPIO_FN_FMSOOLR, 149*4882a593Smuzhiyun GPIO_FN_FMSOOBT, GPIO_FN_FMSOSLD, 150*4882a593Smuzhiyun GPIO_FN_FMSOCK, 151*4882a593Smuzhiyun 152*4882a593Smuzhiyun /* SCIFA0 */ 153*4882a593Smuzhiyun GPIO_FN_SCIFA0_SCK, GPIO_FN_SCIFA0_CTS, 154*4882a593Smuzhiyun GPIO_FN_SCIFA0_RTS, GPIO_FN_SCIFA0_RXD, 155*4882a593Smuzhiyun GPIO_FN_SCIFA0_TXD, 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun /* SCIFA1 */ 158*4882a593Smuzhiyun GPIO_FN_SCIFA1_CTS, GPIO_FN_SCIFA1_SCK, 159*4882a593Smuzhiyun GPIO_FN_SCIFA1_RXD, GPIO_FN_SCIFA1_TXD, 160*4882a593Smuzhiyun GPIO_FN_SCIFA1_RTS, 161*4882a593Smuzhiyun 162*4882a593Smuzhiyun /* SCIFA2 */ 163*4882a593Smuzhiyun GPIO_FN_SCIFA2_SCK_PORT22, /* SCIFA2_SCK Port 22/199 */ 164*4882a593Smuzhiyun GPIO_FN_SCIFA2_SCK_PORT199, 165*4882a593Smuzhiyun GPIO_FN_SCIFA2_RXD, GPIO_FN_SCIFA2_TXD, 166*4882a593Smuzhiyun GPIO_FN_SCIFA2_CTS, GPIO_FN_SCIFA2_RTS, 167*4882a593Smuzhiyun 168*4882a593Smuzhiyun /* SCIFA3 */ 169*4882a593Smuzhiyun GPIO_FN_SCIFA3_RTS_PORT105, /* MSEL5CR_8_0 */ 170*4882a593Smuzhiyun GPIO_FN_SCIFA3_SCK_PORT116, 171*4882a593Smuzhiyun GPIO_FN_SCIFA3_CTS_PORT117, 172*4882a593Smuzhiyun GPIO_FN_SCIFA3_RXD_PORT174, 173*4882a593Smuzhiyun GPIO_FN_SCIFA3_TXD_PORT175, 174*4882a593Smuzhiyun 175*4882a593Smuzhiyun GPIO_FN_SCIFA3_RTS_PORT161, /* MSEL5CR_8_1 */ 176*4882a593Smuzhiyun GPIO_FN_SCIFA3_SCK_PORT158, 177*4882a593Smuzhiyun GPIO_FN_SCIFA3_CTS_PORT162, 178*4882a593Smuzhiyun GPIO_FN_SCIFA3_RXD_PORT159, 179*4882a593Smuzhiyun GPIO_FN_SCIFA3_TXD_PORT160, 180*4882a593Smuzhiyun 181*4882a593Smuzhiyun /* SCIFA4 */ 182*4882a593Smuzhiyun GPIO_FN_SCIFA4_RXD_PORT12, /* MSEL5CR[12:11] = 00 */ 183*4882a593Smuzhiyun GPIO_FN_SCIFA4_TXD_PORT13, 184*4882a593Smuzhiyun 185*4882a593Smuzhiyun GPIO_FN_SCIFA4_RXD_PORT204, /* MSEL5CR[12:11] = 01 */ 186*4882a593Smuzhiyun GPIO_FN_SCIFA4_TXD_PORT203, 187*4882a593Smuzhiyun 188*4882a593Smuzhiyun GPIO_FN_SCIFA4_RXD_PORT94, /* MSEL5CR[12:11] = 10 */ 189*4882a593Smuzhiyun GPIO_FN_SCIFA4_TXD_PORT93, 190*4882a593Smuzhiyun 191*4882a593Smuzhiyun GPIO_FN_SCIFA4_SCK_PORT21, /* SCIFA4_SCK Port 21/205 */ 192*4882a593Smuzhiyun GPIO_FN_SCIFA4_SCK_PORT205, 193*4882a593Smuzhiyun 194*4882a593Smuzhiyun /* SCIFA5 */ 195*4882a593Smuzhiyun GPIO_FN_SCIFA5_TXD_PORT20, /* MSEL5CR[15:14] = 00 */ 196*4882a593Smuzhiyun GPIO_FN_SCIFA5_RXD_PORT10, 197*4882a593Smuzhiyun 198*4882a593Smuzhiyun GPIO_FN_SCIFA5_RXD_PORT207, /* MSEL5CR[15:14] = 01 */ 199*4882a593Smuzhiyun GPIO_FN_SCIFA5_TXD_PORT208, 200*4882a593Smuzhiyun 201*4882a593Smuzhiyun GPIO_FN_SCIFA5_TXD_PORT91, /* MSEL5CR[15:14] = 10 */ 202*4882a593Smuzhiyun GPIO_FN_SCIFA5_RXD_PORT92, 203*4882a593Smuzhiyun 204*4882a593Smuzhiyun GPIO_FN_SCIFA5_SCK_PORT23, /* SCIFA5_SCK Port 23/206 */ 205*4882a593Smuzhiyun GPIO_FN_SCIFA5_SCK_PORT206, 206*4882a593Smuzhiyun 207*4882a593Smuzhiyun /* SCIFA6 */ 208*4882a593Smuzhiyun GPIO_FN_SCIFA6_SCK, GPIO_FN_SCIFA6_RXD, GPIO_FN_SCIFA6_TXD, 209*4882a593Smuzhiyun 210*4882a593Smuzhiyun /* SCIFA7 */ 211*4882a593Smuzhiyun GPIO_FN_SCIFA7_TXD, GPIO_FN_SCIFA7_RXD, 212*4882a593Smuzhiyun 213*4882a593Smuzhiyun /* SCIFAB */ 214*4882a593Smuzhiyun GPIO_FN_SCIFB_SCK_PORT190, /* MSEL5CR_17_0 */ 215*4882a593Smuzhiyun GPIO_FN_SCIFB_RXD_PORT191, 216*4882a593Smuzhiyun GPIO_FN_SCIFB_TXD_PORT192, 217*4882a593Smuzhiyun GPIO_FN_SCIFB_RTS_PORT186, 218*4882a593Smuzhiyun GPIO_FN_SCIFB_CTS_PORT187, 219*4882a593Smuzhiyun 220*4882a593Smuzhiyun GPIO_FN_SCIFB_SCK_PORT2, /* MSEL5CR_17_1 */ 221*4882a593Smuzhiyun GPIO_FN_SCIFB_RXD_PORT3, 222*4882a593Smuzhiyun GPIO_FN_SCIFB_TXD_PORT4, 223*4882a593Smuzhiyun GPIO_FN_SCIFB_RTS_PORT172, 224*4882a593Smuzhiyun GPIO_FN_SCIFB_CTS_PORT173, 225*4882a593Smuzhiyun 226*4882a593Smuzhiyun /* LCD0 */ 227*4882a593Smuzhiyun GPIO_FN_LCDC0_SELECT, 228*4882a593Smuzhiyun GPIO_FN_LCD0_D0, GPIO_FN_LCD0_D1, GPIO_FN_LCD0_D2, 229*4882a593Smuzhiyun GPIO_FN_LCD0_D3, GPIO_FN_LCD0_D4, GPIO_FN_LCD0_D5, 230*4882a593Smuzhiyun GPIO_FN_LCD0_D6, GPIO_FN_LCD0_D7, GPIO_FN_LCD0_D8, 231*4882a593Smuzhiyun GPIO_FN_LCD0_D9, GPIO_FN_LCD0_D10, GPIO_FN_LCD0_D11, 232*4882a593Smuzhiyun GPIO_FN_LCD0_D12, GPIO_FN_LCD0_D13, GPIO_FN_LCD0_D14, 233*4882a593Smuzhiyun GPIO_FN_LCD0_D15, GPIO_FN_LCD0_D16, GPIO_FN_LCD0_D17, 234*4882a593Smuzhiyun GPIO_FN_LCD0_DON, GPIO_FN_LCD0_VCPWC, GPIO_FN_LCD0_VEPWC, 235*4882a593Smuzhiyun 236*4882a593Smuzhiyun GPIO_FN_LCD0_DCK, GPIO_FN_LCD0_VSYN, /* for RGB */ 237*4882a593Smuzhiyun GPIO_FN_LCD0_HSYN, GPIO_FN_LCD0_DISP, /* for RGB */ 238*4882a593Smuzhiyun 239*4882a593Smuzhiyun GPIO_FN_LCD0_WR, GPIO_FN_LCD0_RD, /* for SYS */ 240*4882a593Smuzhiyun GPIO_FN_LCD0_CS, GPIO_FN_LCD0_RS, /* for SYS */ 241*4882a593Smuzhiyun 242*4882a593Smuzhiyun GPIO_FN_LCD0_D18_PORT163, GPIO_FN_LCD0_D19_PORT162, 243*4882a593Smuzhiyun GPIO_FN_LCD0_D20_PORT161, GPIO_FN_LCD0_D21_PORT158, 244*4882a593Smuzhiyun GPIO_FN_LCD0_D22_PORT160, GPIO_FN_LCD0_D23_PORT159, 245*4882a593Smuzhiyun GPIO_FN_LCD0_LCLK_PORT165, /* MSEL5CR_6_1 */ 246*4882a593Smuzhiyun 247*4882a593Smuzhiyun GPIO_FN_LCD0_D18_PORT40, GPIO_FN_LCD0_D19_PORT4, 248*4882a593Smuzhiyun GPIO_FN_LCD0_D20_PORT3, GPIO_FN_LCD0_D21_PORT2, 249*4882a593Smuzhiyun GPIO_FN_LCD0_D22_PORT0, GPIO_FN_LCD0_D23_PORT1, 250*4882a593Smuzhiyun GPIO_FN_LCD0_LCLK_PORT102, /* MSEL5CR_6_0 */ 251*4882a593Smuzhiyun 252*4882a593Smuzhiyun /* LCD1 */ 253*4882a593Smuzhiyun GPIO_FN_LCDC1_SELECT, 254*4882a593Smuzhiyun GPIO_FN_LCD1_D0, GPIO_FN_LCD1_D1, GPIO_FN_LCD1_D2, 255*4882a593Smuzhiyun GPIO_FN_LCD1_D3, GPIO_FN_LCD1_D4, GPIO_FN_LCD1_D5, 256*4882a593Smuzhiyun GPIO_FN_LCD1_D6, GPIO_FN_LCD1_D7, GPIO_FN_LCD1_D8, 257*4882a593Smuzhiyun GPIO_FN_LCD1_D9, GPIO_FN_LCD1_D10, GPIO_FN_LCD1_D11, 258*4882a593Smuzhiyun GPIO_FN_LCD1_D12, GPIO_FN_LCD1_D13, GPIO_FN_LCD1_D14, 259*4882a593Smuzhiyun GPIO_FN_LCD1_D15, GPIO_FN_LCD1_D16, GPIO_FN_LCD1_D17, 260*4882a593Smuzhiyun GPIO_FN_LCD1_D18, GPIO_FN_LCD1_D19, GPIO_FN_LCD1_D20, 261*4882a593Smuzhiyun GPIO_FN_LCD1_D21, GPIO_FN_LCD1_D22, GPIO_FN_LCD1_D23, 262*4882a593Smuzhiyun GPIO_FN_LCD1_DON, GPIO_FN_LCD1_VCPWC, 263*4882a593Smuzhiyun GPIO_FN_LCD1_LCLK, GPIO_FN_LCD1_VEPWC, 264*4882a593Smuzhiyun 265*4882a593Smuzhiyun GPIO_FN_LCD1_DCK, GPIO_FN_LCD1_VSYN, /* for RGB */ 266*4882a593Smuzhiyun GPIO_FN_LCD1_HSYN, GPIO_FN_LCD1_DISP, /* for RGB */ 267*4882a593Smuzhiyun 268*4882a593Smuzhiyun GPIO_FN_LCD1_WR, GPIO_FN_LCD1_RD, /* for SYS */ 269*4882a593Smuzhiyun GPIO_FN_LCD1_CS, GPIO_FN_LCD1_RS, /* for SYS */ 270*4882a593Smuzhiyun 271*4882a593Smuzhiyun /* RSPI */ 272*4882a593Smuzhiyun GPIO_FN_RSPI_SSL0_A, GPIO_FN_RSPI_SSL1_A, 273*4882a593Smuzhiyun GPIO_FN_RSPI_SSL2_A, GPIO_FN_RSPI_SSL3_A, 274*4882a593Smuzhiyun GPIO_FN_RSPI_MOSI_A, GPIO_FN_RSPI_MISO_A, 275*4882a593Smuzhiyun GPIO_FN_RSPI_CK_A, 276*4882a593Smuzhiyun 277*4882a593Smuzhiyun /* VIO CKO */ 278*4882a593Smuzhiyun GPIO_FN_VIO_CKO1, 279*4882a593Smuzhiyun GPIO_FN_VIO_CKO2, 280*4882a593Smuzhiyun GPIO_FN_VIO_CKO_1, 281*4882a593Smuzhiyun GPIO_FN_VIO_CKO, 282*4882a593Smuzhiyun 283*4882a593Smuzhiyun /* VIO0 */ 284*4882a593Smuzhiyun GPIO_FN_VIO0_D0, GPIO_FN_VIO0_D1, GPIO_FN_VIO0_D2, 285*4882a593Smuzhiyun GPIO_FN_VIO0_D3, GPIO_FN_VIO0_D4, GPIO_FN_VIO0_D5, 286*4882a593Smuzhiyun GPIO_FN_VIO0_D6, GPIO_FN_VIO0_D7, GPIO_FN_VIO0_D8, 287*4882a593Smuzhiyun GPIO_FN_VIO0_D9, GPIO_FN_VIO0_D10, GPIO_FN_VIO0_D11, 288*4882a593Smuzhiyun GPIO_FN_VIO0_D12, GPIO_FN_VIO0_VD, GPIO_FN_VIO0_HD, 289*4882a593Smuzhiyun GPIO_FN_VIO0_CLK, GPIO_FN_VIO0_FIELD, 290*4882a593Smuzhiyun 291*4882a593Smuzhiyun GPIO_FN_VIO0_D13_PORT26, /* MSEL5CR_27_0 */ 292*4882a593Smuzhiyun GPIO_FN_VIO0_D14_PORT25, 293*4882a593Smuzhiyun GPIO_FN_VIO0_D15_PORT24, 294*4882a593Smuzhiyun 295*4882a593Smuzhiyun GPIO_FN_VIO0_D13_PORT22, /* MSEL5CR_27_1 */ 296*4882a593Smuzhiyun GPIO_FN_VIO0_D14_PORT95, 297*4882a593Smuzhiyun GPIO_FN_VIO0_D15_PORT96, 298*4882a593Smuzhiyun 299*4882a593Smuzhiyun /* VIO1 */ 300*4882a593Smuzhiyun GPIO_FN_VIO1_D0, GPIO_FN_VIO1_D1, GPIO_FN_VIO1_D2, 301*4882a593Smuzhiyun GPIO_FN_VIO1_D3, GPIO_FN_VIO1_D4, GPIO_FN_VIO1_D5, 302*4882a593Smuzhiyun GPIO_FN_VIO1_D6, GPIO_FN_VIO1_D7, GPIO_FN_VIO1_VD, 303*4882a593Smuzhiyun GPIO_FN_VIO1_HD, GPIO_FN_VIO1_CLK, GPIO_FN_VIO1_FIELD, 304*4882a593Smuzhiyun 305*4882a593Smuzhiyun /* TPU0 */ 306*4882a593Smuzhiyun GPIO_FN_TPU0TO0, GPIO_FN_TPU0TO1, 307*4882a593Smuzhiyun GPIO_FN_TPU0TO3, 308*4882a593Smuzhiyun GPIO_FN_TPU0TO2_PORT66, /* TPU0TO2 Port 66/202 */ 309*4882a593Smuzhiyun GPIO_FN_TPU0TO2_PORT202, 310*4882a593Smuzhiyun 311*4882a593Smuzhiyun /* SSP1 0 */ 312*4882a593Smuzhiyun GPIO_FN_STP0_IPD0, GPIO_FN_STP0_IPD1, GPIO_FN_STP0_IPD2, 313*4882a593Smuzhiyun GPIO_FN_STP0_IPD3, GPIO_FN_STP0_IPD4, GPIO_FN_STP0_IPD5, 314*4882a593Smuzhiyun GPIO_FN_STP0_IPD6, GPIO_FN_STP0_IPD7, GPIO_FN_STP0_IPEN, 315*4882a593Smuzhiyun GPIO_FN_STP0_IPCLK, GPIO_FN_STP0_IPSYNC, 316*4882a593Smuzhiyun 317*4882a593Smuzhiyun /* SSP1 1 */ 318*4882a593Smuzhiyun GPIO_FN_STP1_IPD1, GPIO_FN_STP1_IPD2, GPIO_FN_STP1_IPD3, 319*4882a593Smuzhiyun GPIO_FN_STP1_IPD4, GPIO_FN_STP1_IPD5, GPIO_FN_STP1_IPD6, 320*4882a593Smuzhiyun GPIO_FN_STP1_IPD7, GPIO_FN_STP1_IPCLK, GPIO_FN_STP1_IPSYNC, 321*4882a593Smuzhiyun 322*4882a593Smuzhiyun GPIO_FN_STP1_IPD0_PORT186, /* MSEL5CR_23_0 */ 323*4882a593Smuzhiyun GPIO_FN_STP1_IPEN_PORT187, 324*4882a593Smuzhiyun 325*4882a593Smuzhiyun GPIO_FN_STP1_IPD0_PORT194, /* MSEL5CR_23_1 */ 326*4882a593Smuzhiyun GPIO_FN_STP1_IPEN_PORT193, 327*4882a593Smuzhiyun 328*4882a593Smuzhiyun /* SIM */ 329*4882a593Smuzhiyun GPIO_FN_SIM_RST, GPIO_FN_SIM_CLK, 330*4882a593Smuzhiyun GPIO_FN_SIM_D_PORT22, /* SIM_D Port 22/199 */ 331*4882a593Smuzhiyun GPIO_FN_SIM_D_PORT199, 332*4882a593Smuzhiyun 333*4882a593Smuzhiyun /* SDHI0 */ 334*4882a593Smuzhiyun GPIO_FN_SDHI0_D0, GPIO_FN_SDHI0_D1, GPIO_FN_SDHI0_D2, 335*4882a593Smuzhiyun GPIO_FN_SDHI0_D3, GPIO_FN_SDHI0_CD, GPIO_FN_SDHI0_WP, 336*4882a593Smuzhiyun GPIO_FN_SDHI0_CMD, GPIO_FN_SDHI0_CLK, 337*4882a593Smuzhiyun 338*4882a593Smuzhiyun /* SDHI1 */ 339*4882a593Smuzhiyun GPIO_FN_SDHI1_D0, GPIO_FN_SDHI1_D1, GPIO_FN_SDHI1_D2, 340*4882a593Smuzhiyun GPIO_FN_SDHI1_D3, GPIO_FN_SDHI1_CD, GPIO_FN_SDHI1_WP, 341*4882a593Smuzhiyun GPIO_FN_SDHI1_CMD, GPIO_FN_SDHI1_CLK, 342*4882a593Smuzhiyun 343*4882a593Smuzhiyun /* SDHI2 */ 344*4882a593Smuzhiyun GPIO_FN_SDHI2_D0, GPIO_FN_SDHI2_D1, GPIO_FN_SDHI2_D2, 345*4882a593Smuzhiyun GPIO_FN_SDHI2_D3, GPIO_FN_SDHI2_CLK, GPIO_FN_SDHI2_CMD, 346*4882a593Smuzhiyun 347*4882a593Smuzhiyun GPIO_FN_SDHI2_CD_PORT24, /* MSEL5CR_19_0 */ 348*4882a593Smuzhiyun GPIO_FN_SDHI2_WP_PORT25, 349*4882a593Smuzhiyun 350*4882a593Smuzhiyun GPIO_FN_SDHI2_WP_PORT177, /* MSEL5CR_19_1 */ 351*4882a593Smuzhiyun GPIO_FN_SDHI2_CD_PORT202, 352*4882a593Smuzhiyun 353*4882a593Smuzhiyun /* MSIOF2 */ 354*4882a593Smuzhiyun GPIO_FN_MSIOF2_TXD, GPIO_FN_MSIOF2_RXD, GPIO_FN_MSIOF2_TSCK, 355*4882a593Smuzhiyun GPIO_FN_MSIOF2_SS2, GPIO_FN_MSIOF2_TSYNC, GPIO_FN_MSIOF2_SS1, 356*4882a593Smuzhiyun GPIO_FN_MSIOF2_MCK1, GPIO_FN_MSIOF2_MCK0, GPIO_FN_MSIOF2_RSYNC, 357*4882a593Smuzhiyun GPIO_FN_MSIOF2_RSCK, 358*4882a593Smuzhiyun 359*4882a593Smuzhiyun /* KEYSC */ 360*4882a593Smuzhiyun GPIO_FN_KEYIN4, GPIO_FN_KEYIN5, 361*4882a593Smuzhiyun GPIO_FN_KEYIN6, GPIO_FN_KEYIN7, 362*4882a593Smuzhiyun GPIO_FN_KEYOUT0, GPIO_FN_KEYOUT1, GPIO_FN_KEYOUT2, 363*4882a593Smuzhiyun GPIO_FN_KEYOUT3, GPIO_FN_KEYOUT4, GPIO_FN_KEYOUT5, 364*4882a593Smuzhiyun GPIO_FN_KEYOUT6, GPIO_FN_KEYOUT7, 365*4882a593Smuzhiyun 366*4882a593Smuzhiyun GPIO_FN_KEYIN0_PORT43, /* MSEL4CR_18_0 */ 367*4882a593Smuzhiyun GPIO_FN_KEYIN1_PORT44, 368*4882a593Smuzhiyun GPIO_FN_KEYIN2_PORT45, 369*4882a593Smuzhiyun GPIO_FN_KEYIN3_PORT46, 370*4882a593Smuzhiyun 371*4882a593Smuzhiyun GPIO_FN_KEYIN0_PORT58, /* MSEL4CR_18_1 */ 372*4882a593Smuzhiyun GPIO_FN_KEYIN1_PORT57, 373*4882a593Smuzhiyun GPIO_FN_KEYIN2_PORT56, 374*4882a593Smuzhiyun GPIO_FN_KEYIN3_PORT55, 375*4882a593Smuzhiyun 376*4882a593Smuzhiyun /* VOU */ 377*4882a593Smuzhiyun GPIO_FN_DV_D0, GPIO_FN_DV_D1, GPIO_FN_DV_D2, GPIO_FN_DV_D3, 378*4882a593Smuzhiyun GPIO_FN_DV_D4, GPIO_FN_DV_D5, GPIO_FN_DV_D6, GPIO_FN_DV_D7, 379*4882a593Smuzhiyun GPIO_FN_DV_D8, GPIO_FN_DV_D9, GPIO_FN_DV_D10, GPIO_FN_DV_D11, 380*4882a593Smuzhiyun GPIO_FN_DV_D12, GPIO_FN_DV_D13, GPIO_FN_DV_D14, GPIO_FN_DV_D15, 381*4882a593Smuzhiyun GPIO_FN_DV_CLK, 382*4882a593Smuzhiyun GPIO_FN_DV_VSYNC, 383*4882a593Smuzhiyun GPIO_FN_DV_HSYNC, 384*4882a593Smuzhiyun 385*4882a593Smuzhiyun /* MEMC */ 386*4882a593Smuzhiyun GPIO_FN_MEMC_AD0, GPIO_FN_MEMC_AD1, GPIO_FN_MEMC_AD2, 387*4882a593Smuzhiyun GPIO_FN_MEMC_AD3, GPIO_FN_MEMC_AD4, GPIO_FN_MEMC_AD5, 388*4882a593Smuzhiyun GPIO_FN_MEMC_AD6, GPIO_FN_MEMC_AD7, GPIO_FN_MEMC_AD8, 389*4882a593Smuzhiyun GPIO_FN_MEMC_AD9, GPIO_FN_MEMC_AD10, GPIO_FN_MEMC_AD11, 390*4882a593Smuzhiyun GPIO_FN_MEMC_AD12, GPIO_FN_MEMC_AD13, GPIO_FN_MEMC_AD14, 391*4882a593Smuzhiyun GPIO_FN_MEMC_AD15, GPIO_FN_MEMC_CS0, GPIO_FN_MEMC_INT, 392*4882a593Smuzhiyun GPIO_FN_MEMC_NWE, GPIO_FN_MEMC_NOE, 393*4882a593Smuzhiyun 394*4882a593Smuzhiyun GPIO_FN_MEMC_CS1, /* MSEL4CR_6_0 */ 395*4882a593Smuzhiyun GPIO_FN_MEMC_ADV, 396*4882a593Smuzhiyun GPIO_FN_MEMC_WAIT, 397*4882a593Smuzhiyun GPIO_FN_MEMC_BUSCLK, 398*4882a593Smuzhiyun 399*4882a593Smuzhiyun GPIO_FN_MEMC_A1, /* MSEL4CR_6_1 */ 400*4882a593Smuzhiyun GPIO_FN_MEMC_DREQ0, 401*4882a593Smuzhiyun GPIO_FN_MEMC_DREQ1, 402*4882a593Smuzhiyun GPIO_FN_MEMC_A0, 403*4882a593Smuzhiyun 404*4882a593Smuzhiyun /* MMC */ 405*4882a593Smuzhiyun GPIO_FN_MMC0_D0_PORT68, GPIO_FN_MMC0_D1_PORT69, 406*4882a593Smuzhiyun GPIO_FN_MMC0_D2_PORT70, GPIO_FN_MMC0_D3_PORT71, 407*4882a593Smuzhiyun GPIO_FN_MMC0_D4_PORT72, GPIO_FN_MMC0_D5_PORT73, 408*4882a593Smuzhiyun GPIO_FN_MMC0_D6_PORT74, GPIO_FN_MMC0_D7_PORT75, 409*4882a593Smuzhiyun GPIO_FN_MMC0_CLK_PORT66, 410*4882a593Smuzhiyun GPIO_FN_MMC0_CMD_PORT67, /* MSEL4CR_15_0 */ 411*4882a593Smuzhiyun 412*4882a593Smuzhiyun GPIO_FN_MMC1_D0_PORT149, GPIO_FN_MMC1_D1_PORT148, 413*4882a593Smuzhiyun GPIO_FN_MMC1_D2_PORT147, GPIO_FN_MMC1_D3_PORT146, 414*4882a593Smuzhiyun GPIO_FN_MMC1_D4_PORT145, GPIO_FN_MMC1_D5_PORT144, 415*4882a593Smuzhiyun GPIO_FN_MMC1_D6_PORT143, GPIO_FN_MMC1_D7_PORT142, 416*4882a593Smuzhiyun GPIO_FN_MMC1_CLK_PORT103, 417*4882a593Smuzhiyun GPIO_FN_MMC1_CMD_PORT104, /* MSEL4CR_15_1 */ 418*4882a593Smuzhiyun 419*4882a593Smuzhiyun /* MSIOF0 */ 420*4882a593Smuzhiyun GPIO_FN_MSIOF0_SS1, GPIO_FN_MSIOF0_SS2, 421*4882a593Smuzhiyun GPIO_FN_MSIOF0_RXD, GPIO_FN_MSIOF0_TXD, 422*4882a593Smuzhiyun GPIO_FN_MSIOF0_MCK0, GPIO_FN_MSIOF0_MCK1, 423*4882a593Smuzhiyun GPIO_FN_MSIOF0_RSYNC, GPIO_FN_MSIOF0_RSCK, 424*4882a593Smuzhiyun GPIO_FN_MSIOF0_TSCK, GPIO_FN_MSIOF0_TSYNC, 425*4882a593Smuzhiyun 426*4882a593Smuzhiyun /* MSIOF1 */ 427*4882a593Smuzhiyun GPIO_FN_MSIOF1_RSCK, GPIO_FN_MSIOF1_RSYNC, 428*4882a593Smuzhiyun GPIO_FN_MSIOF1_MCK0, GPIO_FN_MSIOF1_MCK1, 429*4882a593Smuzhiyun 430*4882a593Smuzhiyun GPIO_FN_MSIOF1_SS2_PORT116, GPIO_FN_MSIOF1_SS1_PORT117, 431*4882a593Smuzhiyun GPIO_FN_MSIOF1_RXD_PORT118, GPIO_FN_MSIOF1_TXD_PORT119, 432*4882a593Smuzhiyun GPIO_FN_MSIOF1_TSYNC_PORT120, 433*4882a593Smuzhiyun GPIO_FN_MSIOF1_TSCK_PORT121, /* MSEL4CR_10_0 */ 434*4882a593Smuzhiyun 435*4882a593Smuzhiyun GPIO_FN_MSIOF1_SS1_PORT67, GPIO_FN_MSIOF1_TSCK_PORT72, 436*4882a593Smuzhiyun GPIO_FN_MSIOF1_TSYNC_PORT73, GPIO_FN_MSIOF1_TXD_PORT74, 437*4882a593Smuzhiyun GPIO_FN_MSIOF1_RXD_PORT75, 438*4882a593Smuzhiyun GPIO_FN_MSIOF1_SS2_PORT202, /* MSEL4CR_10_1 */ 439*4882a593Smuzhiyun 440*4882a593Smuzhiyun /* GPIO */ 441*4882a593Smuzhiyun GPIO_FN_GPO0, GPIO_FN_GPI0, 442*4882a593Smuzhiyun GPIO_FN_GPO1, GPIO_FN_GPI1, 443*4882a593Smuzhiyun 444*4882a593Smuzhiyun /* USB0 */ 445*4882a593Smuzhiyun GPIO_FN_USB0_OCI, GPIO_FN_USB0_PPON, GPIO_FN_VBUS, 446*4882a593Smuzhiyun 447*4882a593Smuzhiyun /* USB1 */ 448*4882a593Smuzhiyun GPIO_FN_USB1_OCI, GPIO_FN_USB1_PPON, 449*4882a593Smuzhiyun 450*4882a593Smuzhiyun /* BBIF1 */ 451*4882a593Smuzhiyun GPIO_FN_BBIF1_RXD, GPIO_FN_BBIF1_TXD, GPIO_FN_BBIF1_TSYNC, 452*4882a593Smuzhiyun GPIO_FN_BBIF1_TSCK, GPIO_FN_BBIF1_RSCK, GPIO_FN_BBIF1_RSYNC, 453*4882a593Smuzhiyun GPIO_FN_BBIF1_FLOW, GPIO_FN_BBIF1_RX_FLOW_N, 454*4882a593Smuzhiyun 455*4882a593Smuzhiyun /* BBIF2 */ 456*4882a593Smuzhiyun GPIO_FN_BBIF2_TXD2_PORT5, /* MSEL5CR_0_0 */ 457*4882a593Smuzhiyun GPIO_FN_BBIF2_RXD2_PORT60, 458*4882a593Smuzhiyun GPIO_FN_BBIF2_TSYNC2_PORT6, 459*4882a593Smuzhiyun GPIO_FN_BBIF2_TSCK2_PORT59, 460*4882a593Smuzhiyun 461*4882a593Smuzhiyun GPIO_FN_BBIF2_RXD2_PORT90, /* MSEL5CR_0_1 */ 462*4882a593Smuzhiyun GPIO_FN_BBIF2_TXD2_PORT183, 463*4882a593Smuzhiyun GPIO_FN_BBIF2_TSCK2_PORT89, 464*4882a593Smuzhiyun GPIO_FN_BBIF2_TSYNC2_PORT184, 465*4882a593Smuzhiyun 466*4882a593Smuzhiyun /* BSC / FLCTL / PCMCIA */ 467*4882a593Smuzhiyun GPIO_FN_CS0, GPIO_FN_CS2, GPIO_FN_CS4, 468*4882a593Smuzhiyun GPIO_FN_CS5B, GPIO_FN_CS6A, 469*4882a593Smuzhiyun GPIO_FN_CS5A_PORT105, /* CS5A PORT 19/105 */ 470*4882a593Smuzhiyun GPIO_FN_CS5A_PORT19, 471*4882a593Smuzhiyun GPIO_FN_IOIS16, /* ? */ 472*4882a593Smuzhiyun 473*4882a593Smuzhiyun GPIO_FN_A0, GPIO_FN_A1, GPIO_FN_A2, GPIO_FN_A3, 474*4882a593Smuzhiyun GPIO_FN_A4_FOE, /* share with FLCTL */ 475*4882a593Smuzhiyun GPIO_FN_A5_FCDE, /* share with FLCTL */ 476*4882a593Smuzhiyun GPIO_FN_A6, GPIO_FN_A7, GPIO_FN_A8, GPIO_FN_A9, 477*4882a593Smuzhiyun GPIO_FN_A10, GPIO_FN_A11, GPIO_FN_A12, GPIO_FN_A13, 478*4882a593Smuzhiyun GPIO_FN_A14, GPIO_FN_A15, GPIO_FN_A16, GPIO_FN_A17, 479*4882a593Smuzhiyun GPIO_FN_A18, GPIO_FN_A19, GPIO_FN_A20, GPIO_FN_A21, 480*4882a593Smuzhiyun GPIO_FN_A22, GPIO_FN_A23, GPIO_FN_A24, GPIO_FN_A25, 481*4882a593Smuzhiyun GPIO_FN_A26, 482*4882a593Smuzhiyun 483*4882a593Smuzhiyun GPIO_FN_D0_NAF0, GPIO_FN_D1_NAF1, /* share with FLCTL */ 484*4882a593Smuzhiyun GPIO_FN_D2_NAF2, GPIO_FN_D3_NAF3, /* share with FLCTL */ 485*4882a593Smuzhiyun GPIO_FN_D4_NAF4, GPIO_FN_D5_NAF5, /* share with FLCTL */ 486*4882a593Smuzhiyun GPIO_FN_D6_NAF6, GPIO_FN_D7_NAF7, /* share with FLCTL */ 487*4882a593Smuzhiyun GPIO_FN_D8_NAF8, GPIO_FN_D9_NAF9, /* share with FLCTL */ 488*4882a593Smuzhiyun GPIO_FN_D10_NAF10, GPIO_FN_D11_NAF11, /* share with FLCTL */ 489*4882a593Smuzhiyun GPIO_FN_D12_NAF12, GPIO_FN_D13_NAF13, /* share with FLCTL */ 490*4882a593Smuzhiyun GPIO_FN_D14_NAF14, GPIO_FN_D15_NAF15, /* share with FLCTL */ 491*4882a593Smuzhiyun 492*4882a593Smuzhiyun GPIO_FN_D16, GPIO_FN_D17, GPIO_FN_D18, GPIO_FN_D19, 493*4882a593Smuzhiyun GPIO_FN_D20, GPIO_FN_D21, GPIO_FN_D22, GPIO_FN_D23, 494*4882a593Smuzhiyun GPIO_FN_D24, GPIO_FN_D25, GPIO_FN_D26, GPIO_FN_D27, 495*4882a593Smuzhiyun GPIO_FN_D28, GPIO_FN_D29, GPIO_FN_D30, GPIO_FN_D31, 496*4882a593Smuzhiyun 497*4882a593Smuzhiyun GPIO_FN_WE0_FWE, /* share with FLCTL */ 498*4882a593Smuzhiyun GPIO_FN_WE1, 499*4882a593Smuzhiyun GPIO_FN_WE2_ICIORD, /* share with PCMCIA */ 500*4882a593Smuzhiyun GPIO_FN_WE3_ICIOWR, /* share with PCMCIA */ 501*4882a593Smuzhiyun GPIO_FN_CKO, GPIO_FN_BS, GPIO_FN_RDWR, 502*4882a593Smuzhiyun GPIO_FN_RD_FSC, /* share with FLCTL */ 503*4882a593Smuzhiyun GPIO_FN_WAIT_PORT177, /* WAIT Port 90/177 */ 504*4882a593Smuzhiyun GPIO_FN_WAIT_PORT90, 505*4882a593Smuzhiyun 506*4882a593Smuzhiyun GPIO_FN_FCE0, GPIO_FN_FCE1, GPIO_FN_FRB, /* FLCTL */ 507*4882a593Smuzhiyun 508*4882a593Smuzhiyun /* IRDA */ 509*4882a593Smuzhiyun GPIO_FN_IRDA_FIRSEL, GPIO_FN_IRDA_IN, GPIO_FN_IRDA_OUT, 510*4882a593Smuzhiyun 511*4882a593Smuzhiyun /* ATAPI */ 512*4882a593Smuzhiyun GPIO_FN_IDE_D0, GPIO_FN_IDE_D1, GPIO_FN_IDE_D2, 513*4882a593Smuzhiyun GPIO_FN_IDE_D3, GPIO_FN_IDE_D4, GPIO_FN_IDE_D5, 514*4882a593Smuzhiyun GPIO_FN_IDE_D6, GPIO_FN_IDE_D7, GPIO_FN_IDE_D8, 515*4882a593Smuzhiyun GPIO_FN_IDE_D9, GPIO_FN_IDE_D10, GPIO_FN_IDE_D11, 516*4882a593Smuzhiyun GPIO_FN_IDE_D12, GPIO_FN_IDE_D13, GPIO_FN_IDE_D14, 517*4882a593Smuzhiyun GPIO_FN_IDE_D15, GPIO_FN_IDE_A0, GPIO_FN_IDE_A1, 518*4882a593Smuzhiyun GPIO_FN_IDE_A2, GPIO_FN_IDE_CS0, GPIO_FN_IDE_CS1, 519*4882a593Smuzhiyun GPIO_FN_IDE_IOWR, GPIO_FN_IDE_IORD, GPIO_FN_IDE_IORDY, 520*4882a593Smuzhiyun GPIO_FN_IDE_INT, GPIO_FN_IDE_RST, GPIO_FN_IDE_DIRECTION, 521*4882a593Smuzhiyun GPIO_FN_IDE_EXBUF_ENB, GPIO_FN_IDE_IODACK, GPIO_FN_IDE_IODREQ, 522*4882a593Smuzhiyun 523*4882a593Smuzhiyun /* RMII */ 524*4882a593Smuzhiyun GPIO_FN_RMII_CRS_DV, GPIO_FN_RMII_RX_ER, GPIO_FN_RMII_RXD0, 525*4882a593Smuzhiyun GPIO_FN_RMII_RXD1, GPIO_FN_RMII_TX_EN, GPIO_FN_RMII_TXD0, 526*4882a593Smuzhiyun GPIO_FN_RMII_MDC, GPIO_FN_RMII_TXD1, GPIO_FN_RMII_MDIO, 527*4882a593Smuzhiyun GPIO_FN_RMII_REF50CK, /* for RMII */ 528*4882a593Smuzhiyun GPIO_FN_RMII_REF125CK, /* for GMII */ 529*4882a593Smuzhiyun 530*4882a593Smuzhiyun /* GEther */ 531*4882a593Smuzhiyun GPIO_FN_ET_TX_CLK, GPIO_FN_ET_TX_EN, GPIO_FN_ET_ETXD0, 532*4882a593Smuzhiyun GPIO_FN_ET_ETXD1, GPIO_FN_ET_ETXD2, GPIO_FN_ET_ETXD3, 533*4882a593Smuzhiyun GPIO_FN_ET_ETXD4, GPIO_FN_ET_ETXD5, /* for GEther */ 534*4882a593Smuzhiyun GPIO_FN_ET_ETXD6, GPIO_FN_ET_ETXD7, /* for GEther */ 535*4882a593Smuzhiyun GPIO_FN_ET_COL, GPIO_FN_ET_TX_ER, 536*4882a593Smuzhiyun GPIO_FN_ET_RX_CLK, GPIO_FN_ET_RX_DV, 537*4882a593Smuzhiyun GPIO_FN_ET_ERXD0, GPIO_FN_ET_ERXD1, 538*4882a593Smuzhiyun GPIO_FN_ET_ERXD2, GPIO_FN_ET_ERXD3, 539*4882a593Smuzhiyun GPIO_FN_ET_ERXD4, GPIO_FN_ET_ERXD5, /* for GEther */ 540*4882a593Smuzhiyun GPIO_FN_ET_ERXD6, GPIO_FN_ET_ERXD7, /* for GEther */ 541*4882a593Smuzhiyun GPIO_FN_ET_RX_ER, GPIO_FN_ET_CRS, 542*4882a593Smuzhiyun GPIO_FN_ET_MDC, GPIO_FN_ET_MDIO, 543*4882a593Smuzhiyun GPIO_FN_ET_LINK, GPIO_FN_ET_PHY_INT, 544*4882a593Smuzhiyun GPIO_FN_ET_WOL, GPIO_FN_ET_GTX_CLK, 545*4882a593Smuzhiyun 546*4882a593Smuzhiyun /* DMA0 */ 547*4882a593Smuzhiyun GPIO_FN_DREQ0, GPIO_FN_DACK0, 548*4882a593Smuzhiyun 549*4882a593Smuzhiyun /* DMA1 */ 550*4882a593Smuzhiyun GPIO_FN_DREQ1, GPIO_FN_DACK1, 551*4882a593Smuzhiyun 552*4882a593Smuzhiyun /* SYSC */ 553*4882a593Smuzhiyun GPIO_FN_RESETOUTS, 554*4882a593Smuzhiyun GPIO_FN_RESETP_PULLUP, 555*4882a593Smuzhiyun GPIO_FN_RESETP_PLAIN, 556*4882a593Smuzhiyun 557*4882a593Smuzhiyun /* SDENC */ 558*4882a593Smuzhiyun GPIO_FN_SDENC_CPG, 559*4882a593Smuzhiyun GPIO_FN_SDENC_DV_CLKI, 560*4882a593Smuzhiyun 561*4882a593Smuzhiyun /* IRREM */ 562*4882a593Smuzhiyun GPIO_FN_IROUT, 563*4882a593Smuzhiyun 564*4882a593Smuzhiyun /* DEBUG */ 565*4882a593Smuzhiyun GPIO_FN_EDEBGREQ_PULLDOWN, 566*4882a593Smuzhiyun GPIO_FN_EDEBGREQ_PULLUP, 567*4882a593Smuzhiyun 568*4882a593Smuzhiyun GPIO_FN_TRACEAUD_FROM_VIO, 569*4882a593Smuzhiyun GPIO_FN_TRACEAUD_FROM_LCDC0, 570*4882a593Smuzhiyun GPIO_FN_TRACEAUD_FROM_MEMC, 571*4882a593Smuzhiyun }; 572*4882a593Smuzhiyun 573*4882a593Smuzhiyun #endif /* __ASM_R8A7740_H__ */ 574