pfc-r8a7796.c 176 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123
  1. /*
  2. * R8A7796 processor support - PFC hardware block.
  3. *
  4. * Copyright (C) 2016 Renesas Electronics Corp.
  5. *
  6. * This file is based on the drivers/pinctrl/sh-pfc/pfc-r8a7795.c
  7. *
  8. * R-Car Gen3 processor support - PFC hardware block.
  9. *
  10. * Copyright (C) 2015 Renesas Electronics Corporation
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation; version 2 of the License.
  15. */
  16. #include <linux/kernel.h>
  17. #include "core.h"
  18. #include "sh_pfc.h"
  19. #define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | \
  20. SH_PFC_PIN_CFG_PULL_UP | \
  21. SH_PFC_PIN_CFG_PULL_DOWN)
  22. #define CPU_ALL_PORT(fn, sfx) \
  23. PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS), \
  24. PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS), \
  25. PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS), \
  26. PORT_GP_CFG_12(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
  27. PORT_GP_CFG_1(3, 12, fn, sfx, CFG_FLAGS), \
  28. PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
  29. PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
  30. PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
  31. PORT_GP_CFG_18(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
  32. PORT_GP_CFG_26(5, fn, sfx, CFG_FLAGS), \
  33. PORT_GP_CFG_32(6, fn, sfx, CFG_FLAGS), \
  34. PORT_GP_CFG_4(7, fn, sfx, CFG_FLAGS)
  35. /*
  36. * F_() : just information
  37. * FM() : macro for FN_xxx / xxx_MARK
  38. */
  39. /* GPSR0 */
  40. #define GPSR0_15 F_(D15, IP7_11_8)
  41. #define GPSR0_14 F_(D14, IP7_7_4)
  42. #define GPSR0_13 F_(D13, IP7_3_0)
  43. #define GPSR0_12 F_(D12, IP6_31_28)
  44. #define GPSR0_11 F_(D11, IP6_27_24)
  45. #define GPSR0_10 F_(D10, IP6_23_20)
  46. #define GPSR0_9 F_(D9, IP6_19_16)
  47. #define GPSR0_8 F_(D8, IP6_15_12)
  48. #define GPSR0_7 F_(D7, IP6_11_8)
  49. #define GPSR0_6 F_(D6, IP6_7_4)
  50. #define GPSR0_5 F_(D5, IP6_3_0)
  51. #define GPSR0_4 F_(D4, IP5_31_28)
  52. #define GPSR0_3 F_(D3, IP5_27_24)
  53. #define GPSR0_2 F_(D2, IP5_23_20)
  54. #define GPSR0_1 F_(D1, IP5_19_16)
  55. #define GPSR0_0 F_(D0, IP5_15_12)
  56. /* GPSR1 */
  57. #define GPSR1_28 FM(CLKOUT)
  58. #define GPSR1_27 F_(EX_WAIT0_A, IP5_11_8)
  59. #define GPSR1_26 F_(WE1_N, IP5_7_4)
  60. #define GPSR1_25 F_(WE0_N, IP5_3_0)
  61. #define GPSR1_24 F_(RD_WR_N, IP4_31_28)
  62. #define GPSR1_23 F_(RD_N, IP4_27_24)
  63. #define GPSR1_22 F_(BS_N, IP4_23_20)
  64. #define GPSR1_21 F_(CS1_N_A26, IP4_19_16)
  65. #define GPSR1_20 F_(CS0_N, IP4_15_12)
  66. #define GPSR1_19 F_(A19, IP4_11_8)
  67. #define GPSR1_18 F_(A18, IP4_7_4)
  68. #define GPSR1_17 F_(A17, IP4_3_0)
  69. #define GPSR1_16 F_(A16, IP3_31_28)
  70. #define GPSR1_15 F_(A15, IP3_27_24)
  71. #define GPSR1_14 F_(A14, IP3_23_20)
  72. #define GPSR1_13 F_(A13, IP3_19_16)
  73. #define GPSR1_12 F_(A12, IP3_15_12)
  74. #define GPSR1_11 F_(A11, IP3_11_8)
  75. #define GPSR1_10 F_(A10, IP3_7_4)
  76. #define GPSR1_9 F_(A9, IP3_3_0)
  77. #define GPSR1_8 F_(A8, IP2_31_28)
  78. #define GPSR1_7 F_(A7, IP2_27_24)
  79. #define GPSR1_6 F_(A6, IP2_23_20)
  80. #define GPSR1_5 F_(A5, IP2_19_16)
  81. #define GPSR1_4 F_(A4, IP2_15_12)
  82. #define GPSR1_3 F_(A3, IP2_11_8)
  83. #define GPSR1_2 F_(A2, IP2_7_4)
  84. #define GPSR1_1 F_(A1, IP2_3_0)
  85. #define GPSR1_0 F_(A0, IP1_31_28)
  86. /* GPSR2 */
  87. #define GPSR2_14 F_(AVB_AVTP_CAPTURE_A, IP0_23_20)
  88. #define GPSR2_13 F_(AVB_AVTP_MATCH_A, IP0_19_16)
  89. #define GPSR2_12 F_(AVB_LINK, IP0_15_12)
  90. #define GPSR2_11 F_(AVB_PHY_INT, IP0_11_8)
  91. #define GPSR2_10 F_(AVB_MAGIC, IP0_7_4)
  92. #define GPSR2_9 F_(AVB_MDC, IP0_3_0)
  93. #define GPSR2_8 F_(PWM2_A, IP1_27_24)
  94. #define GPSR2_7 F_(PWM1_A, IP1_23_20)
  95. #define GPSR2_6 F_(PWM0, IP1_19_16)
  96. #define GPSR2_5 F_(IRQ5, IP1_15_12)
  97. #define GPSR2_4 F_(IRQ4, IP1_11_8)
  98. #define GPSR2_3 F_(IRQ3, IP1_7_4)
  99. #define GPSR2_2 F_(IRQ2, IP1_3_0)
  100. #define GPSR2_1 F_(IRQ1, IP0_31_28)
  101. #define GPSR2_0 F_(IRQ0, IP0_27_24)
  102. /* GPSR3 */
  103. #define GPSR3_15 F_(SD1_WP, IP11_23_20)
  104. #define GPSR3_14 F_(SD1_CD, IP11_19_16)
  105. #define GPSR3_13 F_(SD0_WP, IP11_15_12)
  106. #define GPSR3_12 F_(SD0_CD, IP11_11_8)
  107. #define GPSR3_11 F_(SD1_DAT3, IP8_31_28)
  108. #define GPSR3_10 F_(SD1_DAT2, IP8_27_24)
  109. #define GPSR3_9 F_(SD1_DAT1, IP8_23_20)
  110. #define GPSR3_8 F_(SD1_DAT0, IP8_19_16)
  111. #define GPSR3_7 F_(SD1_CMD, IP8_15_12)
  112. #define GPSR3_6 F_(SD1_CLK, IP8_11_8)
  113. #define GPSR3_5 F_(SD0_DAT3, IP8_7_4)
  114. #define GPSR3_4 F_(SD0_DAT2, IP8_3_0)
  115. #define GPSR3_3 F_(SD0_DAT1, IP7_31_28)
  116. #define GPSR3_2 F_(SD0_DAT0, IP7_27_24)
  117. #define GPSR3_1 F_(SD0_CMD, IP7_23_20)
  118. #define GPSR3_0 F_(SD0_CLK, IP7_19_16)
  119. /* GPSR4 */
  120. #define GPSR4_17 F_(SD3_DS, IP11_7_4)
  121. #define GPSR4_16 F_(SD3_DAT7, IP11_3_0)
  122. #define GPSR4_15 F_(SD3_DAT6, IP10_31_28)
  123. #define GPSR4_14 F_(SD3_DAT5, IP10_27_24)
  124. #define GPSR4_13 F_(SD3_DAT4, IP10_23_20)
  125. #define GPSR4_12 F_(SD3_DAT3, IP10_19_16)
  126. #define GPSR4_11 F_(SD3_DAT2, IP10_15_12)
  127. #define GPSR4_10 F_(SD3_DAT1, IP10_11_8)
  128. #define GPSR4_9 F_(SD3_DAT0, IP10_7_4)
  129. #define GPSR4_8 F_(SD3_CMD, IP10_3_0)
  130. #define GPSR4_7 F_(SD3_CLK, IP9_31_28)
  131. #define GPSR4_6 F_(SD2_DS, IP9_27_24)
  132. #define GPSR4_5 F_(SD2_DAT3, IP9_23_20)
  133. #define GPSR4_4 F_(SD2_DAT2, IP9_19_16)
  134. #define GPSR4_3 F_(SD2_DAT1, IP9_15_12)
  135. #define GPSR4_2 F_(SD2_DAT0, IP9_11_8)
  136. #define GPSR4_1 F_(SD2_CMD, IP9_7_4)
  137. #define GPSR4_0 F_(SD2_CLK, IP9_3_0)
  138. /* GPSR5 */
  139. #define GPSR5_25 F_(MLB_DAT, IP14_19_16)
  140. #define GPSR5_24 F_(MLB_SIG, IP14_15_12)
  141. #define GPSR5_23 F_(MLB_CLK, IP14_11_8)
  142. #define GPSR5_22 FM(MSIOF0_RXD)
  143. #define GPSR5_21 F_(MSIOF0_SS2, IP14_7_4)
  144. #define GPSR5_20 FM(MSIOF0_TXD)
  145. #define GPSR5_19 F_(MSIOF0_SS1, IP14_3_0)
  146. #define GPSR5_18 F_(MSIOF0_SYNC, IP13_31_28)
  147. #define GPSR5_17 FM(MSIOF0_SCK)
  148. #define GPSR5_16 F_(HRTS0_N, IP13_27_24)
  149. #define GPSR5_15 F_(HCTS0_N, IP13_23_20)
  150. #define GPSR5_14 F_(HTX0, IP13_19_16)
  151. #define GPSR5_13 F_(HRX0, IP13_15_12)
  152. #define GPSR5_12 F_(HSCK0, IP13_11_8)
  153. #define GPSR5_11 F_(RX2_A, IP13_7_4)
  154. #define GPSR5_10 F_(TX2_A, IP13_3_0)
  155. #define GPSR5_9 F_(SCK2, IP12_31_28)
  156. #define GPSR5_8 F_(RTS1_N_TANS, IP12_27_24)
  157. #define GPSR5_7 F_(CTS1_N, IP12_23_20)
  158. #define GPSR5_6 F_(TX1_A, IP12_19_16)
  159. #define GPSR5_5 F_(RX1_A, IP12_15_12)
  160. #define GPSR5_4 F_(RTS0_N_TANS, IP12_11_8)
  161. #define GPSR5_3 F_(CTS0_N, IP12_7_4)
  162. #define GPSR5_2 F_(TX0, IP12_3_0)
  163. #define GPSR5_1 F_(RX0, IP11_31_28)
  164. #define GPSR5_0 F_(SCK0, IP11_27_24)
  165. /* GPSR6 */
  166. #define GPSR6_31 F_(GP6_31, IP18_7_4)
  167. #define GPSR6_30 F_(GP6_30, IP18_3_0)
  168. #define GPSR6_29 F_(USB30_OVC, IP17_31_28)
  169. #define GPSR6_28 F_(USB30_PWEN, IP17_27_24)
  170. #define GPSR6_27 F_(USB1_OVC, IP17_23_20)
  171. #define GPSR6_26 F_(USB1_PWEN, IP17_19_16)
  172. #define GPSR6_25 F_(USB0_OVC, IP17_15_12)
  173. #define GPSR6_24 F_(USB0_PWEN, IP17_11_8)
  174. #define GPSR6_23 F_(AUDIO_CLKB_B, IP17_7_4)
  175. #define GPSR6_22 F_(AUDIO_CLKA_A, IP17_3_0)
  176. #define GPSR6_21 F_(SSI_SDATA9_A, IP16_31_28)
  177. #define GPSR6_20 F_(SSI_SDATA8, IP16_27_24)
  178. #define GPSR6_19 F_(SSI_SDATA7, IP16_23_20)
  179. #define GPSR6_18 F_(SSI_WS78, IP16_19_16)
  180. #define GPSR6_17 F_(SSI_SCK78, IP16_15_12)
  181. #define GPSR6_16 F_(SSI_SDATA6, IP16_11_8)
  182. #define GPSR6_15 F_(SSI_WS6, IP16_7_4)
  183. #define GPSR6_14 F_(SSI_SCK6, IP16_3_0)
  184. #define GPSR6_13 FM(SSI_SDATA5)
  185. #define GPSR6_12 FM(SSI_WS5)
  186. #define GPSR6_11 FM(SSI_SCK5)
  187. #define GPSR6_10 F_(SSI_SDATA4, IP15_31_28)
  188. #define GPSR6_9 F_(SSI_WS4, IP15_27_24)
  189. #define GPSR6_8 F_(SSI_SCK4, IP15_23_20)
  190. #define GPSR6_7 F_(SSI_SDATA3, IP15_19_16)
  191. #define GPSR6_6 F_(SSI_WS34, IP15_15_12)
  192. #define GPSR6_5 F_(SSI_SCK34, IP15_11_8)
  193. #define GPSR6_4 F_(SSI_SDATA2_A, IP15_7_4)
  194. #define GPSR6_3 F_(SSI_SDATA1_A, IP15_3_0)
  195. #define GPSR6_2 F_(SSI_SDATA0, IP14_31_28)
  196. #define GPSR6_1 F_(SSI_WS0129, IP14_27_24)
  197. #define GPSR6_0 F_(SSI_SCK0129, IP14_23_20)
  198. /* GPSR7 */
  199. #define GPSR7_3 FM(GP7_03)
  200. #define GPSR7_2 FM(HDMI0_CEC)
  201. #define GPSR7_1 FM(AVS2)
  202. #define GPSR7_0 FM(AVS1)
  203. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  204. #define IP0_3_0 FM(AVB_MDC) F_(0, 0) FM(MSIOF2_SS2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  205. #define IP0_7_4 FM(AVB_MAGIC) F_(0, 0) FM(MSIOF2_SS1_C) FM(SCK4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  206. #define IP0_11_8 FM(AVB_PHY_INT) F_(0, 0) FM(MSIOF2_SYNC_C) FM(RX4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  207. #define IP0_15_12 FM(AVB_LINK) F_(0, 0) FM(MSIOF2_SCK_C) FM(TX4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  208. #define IP0_19_16 FM(AVB_AVTP_MATCH_A) F_(0, 0) FM(MSIOF2_RXD_C) FM(CTS4_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  209. #define IP0_23_20 FM(AVB_AVTP_CAPTURE_A) F_(0, 0) FM(MSIOF2_TXD_C) FM(RTS4_N_TANS_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  210. #define IP0_27_24 FM(IRQ0) FM(QPOLB) F_(0, 0) FM(DU_CDE) FM(VI4_DATA0_B) FM(CAN0_TX_B) FM(CANFD0_TX_B) FM(MSIOF3_SS1_E) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  211. #define IP0_31_28 FM(IRQ1) FM(QPOLA) F_(0, 0) FM(DU_DISP) FM(VI4_DATA1_B) FM(CAN0_RX_B) FM(CANFD0_RX_B) FM(MSIOF3_SS2_E) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  212. #define IP1_3_0 FM(IRQ2) FM(QCPV_QDE) F_(0, 0) FM(DU_EXODDF_DU_ODDF_DISP_CDE) FM(VI4_DATA2_B) F_(0, 0) F_(0, 0) FM(MSIOF3_SYNC_E) F_(0, 0) FM(PWM3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  213. #define IP1_7_4 FM(IRQ3) FM(QSTVB_QVE) FM(A25) FM(DU_DOTCLKOUT1) FM(VI4_DATA3_B) F_(0, 0) F_(0, 0) FM(MSIOF3_SCK_E) F_(0, 0) FM(PWM4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  214. #define IP1_11_8 FM(IRQ4) FM(QSTH_QHS) FM(A24) FM(DU_EXHSYNC_DU_HSYNC) FM(VI4_DATA4_B) F_(0, 0) F_(0, 0) FM(MSIOF3_RXD_E) F_(0, 0) FM(PWM5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  215. #define IP1_15_12 FM(IRQ5) FM(QSTB_QHE) FM(A23) FM(DU_EXVSYNC_DU_VSYNC) FM(VI4_DATA5_B) F_(0, 0) F_(0, 0) FM(MSIOF3_TXD_E) F_(0, 0) FM(PWM6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  216. #define IP1_19_16 FM(PWM0) FM(AVB_AVTP_PPS)FM(A22) F_(0, 0) FM(VI4_DATA6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IECLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  217. #define IP1_23_20 FM(PWM1_A) F_(0, 0) FM(A21) FM(HRX3_D) FM(VI4_DATA7_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IERX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  218. #define IP1_27_24 FM(PWM2_A) F_(0, 0) FM(A20) FM(HTX3_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IETX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  219. #define IP1_31_28 FM(A0) FM(LCDOUT16) FM(MSIOF3_SYNC_B) F_(0, 0) FM(VI4_DATA8) F_(0, 0) FM(DU_DB0) F_(0, 0) F_(0, 0) FM(PWM3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  220. #define IP2_3_0 FM(A1) FM(LCDOUT17) FM(MSIOF3_TXD_B) F_(0, 0) FM(VI4_DATA9) F_(0, 0) FM(DU_DB1) F_(0, 0) F_(0, 0) FM(PWM4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  221. #define IP2_7_4 FM(A2) FM(LCDOUT18) FM(MSIOF3_SCK_B) F_(0, 0) FM(VI4_DATA10) F_(0, 0) FM(DU_DB2) F_(0, 0) F_(0, 0) FM(PWM5_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  222. #define IP2_11_8 FM(A3) FM(LCDOUT19) FM(MSIOF3_RXD_B) F_(0, 0) FM(VI4_DATA11) F_(0, 0) FM(DU_DB3) F_(0, 0) F_(0, 0) FM(PWM6_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  223. #define IP2_15_12 FM(A4) FM(LCDOUT20) FM(MSIOF3_SS1_B) F_(0, 0) FM(VI4_DATA12) FM(VI5_DATA12) FM(DU_DB4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  224. #define IP2_19_16 FM(A5) FM(LCDOUT21) FM(MSIOF3_SS2_B) FM(SCK4_B) FM(VI4_DATA13) FM(VI5_DATA13) FM(DU_DB5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  225. #define IP2_23_20 FM(A6) FM(LCDOUT22) FM(MSIOF2_SS1_A) FM(RX4_B) FM(VI4_DATA14) FM(VI5_DATA14) FM(DU_DB6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  226. #define IP2_27_24 FM(A7) FM(LCDOUT23) FM(MSIOF2_SS2_A) FM(TX4_B) FM(VI4_DATA15) FM(VI5_DATA15) FM(DU_DB7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  227. #define IP2_31_28 FM(A8) FM(RX3_B) FM(MSIOF2_SYNC_A) FM(HRX4_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(SDA6_A) FM(AVB_AVTP_MATCH_B) FM(PWM1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  228. #define IP3_3_0 FM(A9) F_(0, 0) FM(MSIOF2_SCK_A) FM(CTS4_N_B) F_(0, 0) FM(VI5_VSYNC_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  229. #define IP3_7_4 FM(A10) F_(0, 0) FM(MSIOF2_RXD_A) FM(RTS4_N_TANS_B) F_(0, 0) FM(VI5_HSYNC_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  230. #define IP3_11_8 FM(A11) FM(TX3_B) FM(MSIOF2_TXD_A) FM(HTX4_B) FM(HSCK4) FM(VI5_FIELD) F_(0, 0) FM(SCL6_A) FM(AVB_AVTP_CAPTURE_B) FM(PWM2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  231. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  232. #define IP3_15_12 FM(A12) FM(LCDOUT12) FM(MSIOF3_SCK_C) F_(0, 0) FM(HRX4_A) FM(VI5_DATA8) FM(DU_DG4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  233. #define IP3_19_16 FM(A13) FM(LCDOUT13) FM(MSIOF3_SYNC_C) F_(0, 0) FM(HTX4_A) FM(VI5_DATA9) FM(DU_DG5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  234. #define IP3_23_20 FM(A14) FM(LCDOUT14) FM(MSIOF3_RXD_C) F_(0, 0) FM(HCTS4_N) FM(VI5_DATA10) FM(DU_DG6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  235. #define IP3_27_24 FM(A15) FM(LCDOUT15) FM(MSIOF3_TXD_C) F_(0, 0) FM(HRTS4_N) FM(VI5_DATA11) FM(DU_DG7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  236. #define IP3_31_28 FM(A16) FM(LCDOUT8) F_(0, 0) F_(0, 0) FM(VI4_FIELD) F_(0, 0) FM(DU_DG0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  237. #define IP4_3_0 FM(A17) FM(LCDOUT9) F_(0, 0) F_(0, 0) FM(VI4_VSYNC_N) F_(0, 0) FM(DU_DG1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  238. #define IP4_7_4 FM(A18) FM(LCDOUT10) F_(0, 0) F_(0, 0) FM(VI4_HSYNC_N) F_(0, 0) FM(DU_DG2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  239. #define IP4_11_8 FM(A19) FM(LCDOUT11) F_(0, 0) F_(0, 0) FM(VI4_CLKENB) F_(0, 0) FM(DU_DG3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  240. #define IP4_15_12 FM(CS0_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI5_CLKENB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  241. #define IP4_19_16 FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI5_CLK) F_(0, 0) FM(EX_WAIT0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  242. #define IP4_23_20 FM(BS_N) FM(QSTVA_QVS) FM(MSIOF3_SCK_D) FM(SCK3) FM(HSCK3) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN1_TX) FM(CANFD1_TX) FM(IETX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  243. #define IP4_27_24 FM(RD_N) F_(0, 0) FM(MSIOF3_SYNC_D) FM(RX3_A) FM(HRX3_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN0_TX_A) FM(CANFD0_TX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  244. #define IP4_31_28 FM(RD_WR_N) F_(0, 0) FM(MSIOF3_RXD_D) FM(TX3_A) FM(HTX3_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN0_RX_A) FM(CANFD0_RX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  245. #define IP5_3_0 FM(WE0_N) F_(0, 0) FM(MSIOF3_TXD_D) FM(CTS3_N) FM(HCTS3_N) F_(0, 0) F_(0, 0) FM(SCL6_B) FM(CAN_CLK) F_(0, 0) FM(IECLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  246. #define IP5_7_4 FM(WE1_N) F_(0, 0) FM(MSIOF3_SS1_D) FM(RTS3_N_TANS) FM(HRTS3_N) F_(0, 0) F_(0, 0) FM(SDA6_B) FM(CAN1_RX) FM(CANFD1_RX) FM(IERX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  247. #define IP5_11_8 FM(EX_WAIT0_A) FM(QCLK) F_(0, 0) F_(0, 0) FM(VI4_CLK) F_(0, 0) FM(DU_DOTCLKOUT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  248. #define IP5_15_12 FM(D0) FM(MSIOF2_SS1_B)FM(MSIOF3_SCK_A) F_(0, 0) FM(VI4_DATA16) FM(VI5_DATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  249. #define IP5_19_16 FM(D1) FM(MSIOF2_SS2_B)FM(MSIOF3_SYNC_A) F_(0, 0) FM(VI4_DATA17) FM(VI5_DATA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  250. #define IP5_23_20 FM(D2) F_(0, 0) FM(MSIOF3_RXD_A) F_(0, 0) FM(VI4_DATA18) FM(VI5_DATA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  251. #define IP5_27_24 FM(D3) F_(0, 0) FM(MSIOF3_TXD_A) F_(0, 0) FM(VI4_DATA19) FM(VI5_DATA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  252. #define IP5_31_28 FM(D4) FM(MSIOF2_SCK_B)F_(0, 0) F_(0, 0) FM(VI4_DATA20) FM(VI5_DATA4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  253. #define IP6_3_0 FM(D5) FM(MSIOF2_SYNC_B)F_(0, 0) F_(0, 0) FM(VI4_DATA21) FM(VI5_DATA5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  254. #define IP6_7_4 FM(D6) FM(MSIOF2_RXD_B)F_(0, 0) F_(0, 0) FM(VI4_DATA22) FM(VI5_DATA6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  255. #define IP6_11_8 FM(D7) FM(MSIOF2_TXD_B)F_(0, 0) F_(0, 0) FM(VI4_DATA23) FM(VI5_DATA7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  256. #define IP6_15_12 FM(D8) FM(LCDOUT0) FM(MSIOF2_SCK_D) FM(SCK4_C) FM(VI4_DATA0_A) F_(0, 0) FM(DU_DR0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  257. #define IP6_19_16 FM(D9) FM(LCDOUT1) FM(MSIOF2_SYNC_D) F_(0, 0) FM(VI4_DATA1_A) F_(0, 0) FM(DU_DR1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  258. #define IP6_23_20 FM(D10) FM(LCDOUT2) FM(MSIOF2_RXD_D) FM(HRX3_B) FM(VI4_DATA2_A) FM(CTS4_N_C) FM(DU_DR2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  259. #define IP6_27_24 FM(D11) FM(LCDOUT3) FM(MSIOF2_TXD_D) FM(HTX3_B) FM(VI4_DATA3_A) FM(RTS4_N_TANS_C)FM(DU_DR3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  260. #define IP6_31_28 FM(D12) FM(LCDOUT4) FM(MSIOF2_SS1_D) FM(RX4_C) FM(VI4_DATA4_A) F_(0, 0) FM(DU_DR4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  261. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  262. #define IP7_3_0 FM(D13) FM(LCDOUT5) FM(MSIOF2_SS2_D) FM(TX4_C) FM(VI4_DATA5_A) F_(0, 0) FM(DU_DR5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  263. #define IP7_7_4 FM(D14) FM(LCDOUT6) FM(MSIOF3_SS1_A) FM(HRX3_C) FM(VI4_DATA6_A) F_(0, 0) FM(DU_DR6) FM(SCL6_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  264. #define IP7_11_8 FM(D15) FM(LCDOUT7) FM(MSIOF3_SS2_A) FM(HTX3_C) FM(VI4_DATA7_A) F_(0, 0) FM(DU_DR7) FM(SDA6_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  265. #define IP7_15_12 FM(FSCLKST) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  266. #define IP7_19_16 FM(SD0_CLK) F_(0, 0) FM(MSIOF1_SCK_E) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_OPWM_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  267. #define IP7_23_20 FM(SD0_CMD) F_(0, 0) FM(MSIOF1_SYNC_E) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  268. #define IP7_27_24 FM(SD0_DAT0) F_(0, 0) FM(MSIOF1_RXD_E) F_(0, 0) F_(0, 0) FM(TS_SCK0_B) FM(STP_ISCLK_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  269. #define IP7_31_28 FM(SD0_DAT1) F_(0, 0) FM(MSIOF1_TXD_E) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_B)FM(STP_ISSYNC_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  270. #define IP8_3_0 FM(SD0_DAT2) F_(0, 0) FM(MSIOF1_SS1_E) F_(0, 0) F_(0, 0) FM(TS_SDAT0_B) FM(STP_ISD_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  271. #define IP8_7_4 FM(SD0_DAT3) F_(0, 0) FM(MSIOF1_SS2_E) F_(0, 0) F_(0, 0) FM(TS_SDEN0_B) FM(STP_ISEN_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  272. #define IP8_11_8 FM(SD1_CLK) F_(0, 0) FM(MSIOF1_SCK_G) F_(0, 0) F_(0, 0) FM(SIM0_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  273. #define IP8_15_12 FM(SD1_CMD) F_(0, 0) FM(MSIOF1_SYNC_G) FM(NFCE_N_B) F_(0, 0) FM(SIM0_D_A) FM(STP_IVCXO27_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  274. #define IP8_19_16 FM(SD1_DAT0) FM(SD2_DAT4) FM(MSIOF1_RXD_G) FM(NFWP_N_B) F_(0, 0) FM(TS_SCK1_B) FM(STP_ISCLK_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  275. #define IP8_23_20 FM(SD1_DAT1) FM(SD2_DAT5) FM(MSIOF1_TXD_G) FM(NFDATA14_B) F_(0, 0) FM(TS_SPSYNC1_B)FM(STP_ISSYNC_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  276. #define IP8_27_24 FM(SD1_DAT2) FM(SD2_DAT6) FM(MSIOF1_SS1_G) FM(NFDATA15_B) F_(0, 0) FM(TS_SDAT1_B) FM(STP_ISD_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  277. #define IP8_31_28 FM(SD1_DAT3) FM(SD2_DAT7) FM(MSIOF1_SS2_G) FM(NFRB_N_B) F_(0, 0) FM(TS_SDEN1_B) FM(STP_ISEN_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  278. #define IP9_3_0 FM(SD2_CLK) F_(0, 0) F_(0, 0) FM(NFDATA8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  279. #define IP9_7_4 FM(SD2_CMD) F_(0, 0) F_(0, 0) FM(NFDATA9) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  280. #define IP9_11_8 FM(SD2_DAT0) F_(0, 0) F_(0, 0) FM(NFDATA10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  281. #define IP9_15_12 FM(SD2_DAT1) F_(0, 0) F_(0, 0) FM(NFDATA11) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  282. #define IP9_19_16 FM(SD2_DAT2) F_(0, 0) F_(0, 0) FM(NFDATA12) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  283. #define IP9_23_20 FM(SD2_DAT3) F_(0, 0) F_(0, 0) FM(NFDATA13) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  284. #define IP9_27_24 FM(SD2_DS) F_(0, 0) F_(0, 0) FM(NFALE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SATA_DEVSLP_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  285. #define IP9_31_28 FM(SD3_CLK) F_(0, 0) F_(0, 0) FM(NFWE_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  286. #define IP10_3_0 FM(SD3_CMD) F_(0, 0) F_(0, 0) FM(NFRE_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  287. #define IP10_7_4 FM(SD3_DAT0) F_(0, 0) F_(0, 0) FM(NFDATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  288. #define IP10_11_8 FM(SD3_DAT1) F_(0, 0) F_(0, 0) FM(NFDATA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  289. #define IP10_15_12 FM(SD3_DAT2) F_(0, 0) F_(0, 0) FM(NFDATA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  290. #define IP10_19_16 FM(SD3_DAT3) F_(0, 0) F_(0, 0) FM(NFDATA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  291. #define IP10_23_20 FM(SD3_DAT4) FM(SD2_CD_A) F_(0, 0) FM(NFDATA4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  292. #define IP10_27_24 FM(SD3_DAT5) FM(SD2_WP_A) F_(0, 0) FM(NFDATA5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  293. #define IP10_31_28 FM(SD3_DAT6) FM(SD3_CD) F_(0, 0) FM(NFDATA6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  294. #define IP11_3_0 FM(SD3_DAT7) FM(SD3_WP) F_(0, 0) FM(NFDATA7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  295. #define IP11_7_4 FM(SD3_DS) F_(0, 0) F_(0, 0) FM(NFCLE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  296. #define IP11_11_8 FM(SD0_CD) F_(0, 0) FM(NFDATA14_A) F_(0, 0) FM(SCL2_B) FM(SIM0_RST_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  297. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  298. #define IP11_15_12 FM(SD0_WP) F_(0, 0) FM(NFDATA15_A) F_(0, 0) FM(SDA2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  299. #define IP11_19_16 FM(SD1_CD) F_(0, 0) FM(NFRB_N_A) F_(0, 0) F_(0, 0) FM(SIM0_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  300. #define IP11_23_20 FM(SD1_WP) F_(0, 0) FM(NFCE_N_A) F_(0, 0) F_(0, 0) FM(SIM0_D_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  301. #define IP11_27_24 FM(SCK0) FM(HSCK1_B) FM(MSIOF1_SS2_B) FM(AUDIO_CLKC_B) FM(SDA2_A) FM(SIM0_RST_B) FM(STP_OPWM_0_C) FM(RIF0_CLK_B) F_(0, 0) FM(ADICHS2) FM(SCK5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  302. #define IP11_31_28 FM(RX0) FM(HRX1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SCK0_C) FM(STP_ISCLK_0_C) FM(RIF0_D0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  303. #define IP12_3_0 FM(TX0) FM(HTX1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_C)FM(STP_ISSYNC_0_C) FM(RIF0_D1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  304. #define IP12_7_4 FM(CTS0_N) FM(HCTS1_N_B) FM(MSIOF1_SYNC_B) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_C)FM(STP_ISSYNC_1_C) FM(RIF1_SYNC_B) FM(AUDIO_CLKOUT_C) FM(ADICS_SAMP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  305. #define IP12_11_8 FM(RTS0_N_TANS) FM(HRTS1_N_B) FM(MSIOF1_SS1_B) FM(AUDIO_CLKA_B) FM(SCL2_A) F_(0, 0) FM(STP_IVCXO27_1_C) FM(RIF0_SYNC_B) FM(FSO_TOE_A) FM(ADICHS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  306. #define IP12_15_12 FM(RX1_A) FM(HRX1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDAT0_C) FM(STP_ISD_0_C) FM(RIF1_CLK_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  307. #define IP12_19_16 FM(TX1_A) FM(HTX1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDEN0_C) FM(STP_ISEN_0_C) FM(RIF1_D0_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  308. #define IP12_23_20 FM(CTS1_N) FM(HCTS1_N_A) FM(MSIOF1_RXD_B) F_(0, 0) F_(0, 0) FM(TS_SDEN1_C) FM(STP_ISEN_1_C) FM(RIF1_D0_B) F_(0, 0) FM(ADIDATA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  309. #define IP12_27_24 FM(RTS1_N_TANS) FM(HRTS1_N_A) FM(MSIOF1_TXD_B) F_(0, 0) F_(0, 0) FM(TS_SDAT1_C) FM(STP_ISD_1_C) FM(RIF1_D1_B) F_(0, 0) FM(ADICHS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  310. #define IP12_31_28 FM(SCK2) FM(SCIF_CLK_B) FM(MSIOF1_SCK_B) F_(0, 0) F_(0, 0) FM(TS_SCK1_C) FM(STP_ISCLK_1_C) FM(RIF1_CLK_B) F_(0, 0) FM(ADICLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  311. #define IP13_3_0 FM(TX2_A) F_(0, 0) F_(0, 0) FM(SD2_CD_B) FM(SCL1_A) F_(0, 0) FM(FMCLK_A) FM(RIF1_D1_C) F_(0, 0) FM(FSO_CFE_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  312. #define IP13_7_4 FM(RX2_A) F_(0, 0) F_(0, 0) FM(SD2_WP_B) FM(SDA1_A) F_(0, 0) FM(FMIN_A) FM(RIF1_SYNC_C) F_(0, 0) FM(FSO_CFE_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  313. #define IP13_11_8 FM(HSCK0) F_(0, 0) FM(MSIOF1_SCK_D) FM(AUDIO_CLKB_A) FM(SSI_SDATA1_B)FM(TS_SCK0_D) FM(STP_ISCLK_0_D) FM(RIF0_CLK_C) F_(0, 0) F_(0, 0) FM(RX5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  314. #define IP13_15_12 FM(HRX0) F_(0, 0) FM(MSIOF1_RXD_D) F_(0, 0) FM(SSI_SDATA2_B)FM(TS_SDEN0_D) FM(STP_ISEN_0_D) FM(RIF0_D0_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  315. #define IP13_19_16 FM(HTX0) F_(0, 0) FM(MSIOF1_TXD_D) F_(0, 0) FM(SSI_SDATA9_B)FM(TS_SDAT0_D) FM(STP_ISD_0_D) FM(RIF0_D1_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  316. #define IP13_23_20 FM(HCTS0_N) FM(RX2_B) FM(MSIOF1_SYNC_D) F_(0, 0) FM(SSI_SCK9_A) FM(TS_SPSYNC0_D)FM(STP_ISSYNC_0_D) FM(RIF0_SYNC_C) FM(AUDIO_CLKOUT1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  317. #define IP13_27_24 FM(HRTS0_N) FM(TX2_B) FM(MSIOF1_SS1_D) F_(0, 0) FM(SSI_WS9_A) F_(0, 0) FM(STP_IVCXO27_0_D) FM(BPFCLK_A) FM(AUDIO_CLKOUT2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  318. #define IP13_31_28 FM(MSIOF0_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT_A) F_(0, 0) FM(TX5_B) F_(0, 0) F_(0, 0) FM(BPFCLK_D) F_(0, 0) F_(0, 0)
  319. #define IP14_3_0 FM(MSIOF0_SS1) FM(RX5_A) FM(NFWP_N_A) FM(AUDIO_CLKA_C) FM(SSI_SCK2_A) F_(0, 0) FM(STP_IVCXO27_0_C) F_(0, 0) FM(AUDIO_CLKOUT3_A) F_(0, 0) FM(TCLK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  320. #define IP14_7_4 FM(MSIOF0_SS2) FM(TX5_A) FM(MSIOF1_SS2_D) FM(AUDIO_CLKC_A) FM(SSI_WS2_A) F_(0, 0) FM(STP_OPWM_0_D) F_(0, 0) FM(AUDIO_CLKOUT_D) F_(0, 0) FM(SPEEDIN_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  321. #define IP14_11_8 FM(MLB_CLK) F_(0, 0) FM(MSIOF1_SCK_F) F_(0, 0) FM(SCL1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  322. #define IP14_15_12 FM(MLB_SIG) FM(RX1_B) FM(MSIOF1_SYNC_F) F_(0, 0) FM(SDA1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  323. #define IP14_19_16 FM(MLB_DAT) FM(TX1_B) FM(MSIOF1_RXD_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  324. #define IP14_23_20 FM(SSI_SCK0129) F_(0, 0) FM(MSIOF1_TXD_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  325. #define IP14_27_24 FM(SSI_WS0129) F_(0, 0) FM(MSIOF1_SS1_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  326. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  327. #define IP14_31_28 FM(SSI_SDATA0) F_(0, 0) FM(MSIOF1_SS2_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  328. #define IP15_3_0 FM(SSI_SDATA1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  329. #define IP15_7_4 FM(SSI_SDATA2_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(SSI_SCK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  330. #define IP15_11_8 FM(SSI_SCK34) F_(0, 0) FM(MSIOF1_SS1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_OPWM_0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  331. #define IP15_15_12 FM(SSI_WS34) FM(HCTS2_N_A) FM(MSIOF1_SS2_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  332. #define IP15_19_16 FM(SSI_SDATA3) FM(HRTS2_N_A) FM(MSIOF1_TXD_A) F_(0, 0) F_(0, 0) FM(TS_SCK0_A) FM(STP_ISCLK_0_A) FM(RIF0_D1_A) FM(RIF2_D0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  333. #define IP15_23_20 FM(SSI_SCK4) FM(HRX2_A) FM(MSIOF1_SCK_A) F_(0, 0) F_(0, 0) FM(TS_SDAT0_A) FM(STP_ISD_0_A) FM(RIF0_CLK_A) FM(RIF2_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  334. #define IP15_27_24 FM(SSI_WS4) FM(HTX2_A) FM(MSIOF1_SYNC_A) F_(0, 0) F_(0, 0) FM(TS_SDEN0_A) FM(STP_ISEN_0_A) FM(RIF0_SYNC_A) FM(RIF2_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  335. #define IP15_31_28 FM(SSI_SDATA4) FM(HSCK2_A) FM(MSIOF1_RXD_A) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_A)FM(STP_ISSYNC_0_A) FM(RIF0_D0_A) FM(RIF2_D1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  336. #define IP16_3_0 FM(SSI_SCK6) F_(0, 0) F_(0, 0) FM(SIM0_RST_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  337. #define IP16_7_4 FM(SSI_WS6) F_(0, 0) F_(0, 0) FM(SIM0_D_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  338. #define IP16_11_8 FM(SSI_SDATA6) F_(0, 0) F_(0, 0) FM(SIM0_CLK_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  339. #define IP16_15_12 FM(SSI_SCK78) FM(HRX2_B) FM(MSIOF1_SCK_C) F_(0, 0) F_(0, 0) FM(TS_SCK1_A) FM(STP_ISCLK_1_A) FM(RIF1_CLK_A) FM(RIF3_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  340. #define IP16_19_16 FM(SSI_WS78) FM(HTX2_B) FM(MSIOF1_SYNC_C) F_(0, 0) F_(0, 0) FM(TS_SDAT1_A) FM(STP_ISD_1_A) FM(RIF1_SYNC_A) FM(RIF3_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  341. #define IP16_23_20 FM(SSI_SDATA7) FM(HCTS2_N_B) FM(MSIOF1_RXD_C) F_(0, 0) F_(0, 0) FM(TS_SDEN1_A) FM(STP_ISEN_1_A) FM(RIF1_D0_A) FM(RIF3_D0_A) F_(0, 0) FM(TCLK2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  342. #define IP16_27_24 FM(SSI_SDATA8) FM(HRTS2_N_B) FM(MSIOF1_TXD_C) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_A)FM(STP_ISSYNC_1_A) FM(RIF1_D1_A) FM(RIF3_D1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  343. #define IP16_31_28 FM(SSI_SDATA9_A) FM(HSCK2_B) FM(MSIOF1_SS1_C) FM(HSCK1_A) FM(SSI_WS1_B) FM(SCK1) FM(STP_IVCXO27_1_A) FM(SCK5_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  344. #define IP17_3_0 FM(AUDIO_CLKA_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(CC5_OSCOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  345. #define IP17_7_4 FM(AUDIO_CLKB_B) FM(SCIF_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_1_D) FM(REMOCON_A) F_(0, 0) F_(0, 0) FM(TCLK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  346. #define IP17_11_8 FM(USB0_PWEN) F_(0, 0) F_(0, 0) FM(SIM0_RST_C) F_(0, 0) FM(TS_SCK1_D) FM(STP_ISCLK_1_D) FM(BPFCLK_B) FM(RIF3_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(HSCK2_C) F_(0, 0) F_(0, 0)
  347. #define IP17_15_12 FM(USB0_OVC) F_(0, 0) F_(0, 0) FM(SIM0_D_C) F_(0, 0) FM(TS_SDAT1_D) FM(STP_ISD_1_D) F_(0, 0) FM(RIF3_SYNC_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(HRX2_C) F_(0, 0) F_(0, 0)
  348. #define IP17_19_16 FM(USB1_PWEN) F_(0, 0) F_(0, 0) FM(SIM0_CLK_C) FM(SSI_SCK1_A) FM(TS_SCK0_E) FM(STP_ISCLK_0_E) FM(FMCLK_B) FM(RIF2_CLK_B) F_(0, 0) FM(SPEEDIN_A) F_(0, 0) F_(0, 0) FM(HTX2_C) F_(0, 0) F_(0, 0)
  349. #define IP17_23_20 FM(USB1_OVC) F_(0, 0) FM(MSIOF1_SS2_C) F_(0, 0) FM(SSI_WS1_A) FM(TS_SDAT0_E) FM(STP_ISD_0_E) FM(FMIN_B) FM(RIF2_SYNC_B) F_(0, 0) FM(REMOCON_B) F_(0, 0) F_(0, 0) FM(HCTS2_N_C) F_(0, 0) F_(0, 0)
  350. #define IP17_27_24 FM(USB30_PWEN) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT_B) FM(SSI_SCK2_B) FM(TS_SDEN1_D) FM(STP_ISEN_1_D) FM(STP_OPWM_0_E)FM(RIF3_D0_B) F_(0, 0) FM(TCLK2_B) FM(TPU0TO0) FM(BPFCLK_C) FM(HRTS2_N_C) F_(0, 0) F_(0, 0)
  351. #define IP17_31_28 FM(USB30_OVC) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT1_B) FM(SSI_WS2_B) FM(TS_SPSYNC1_D)FM(STP_ISSYNC_1_D) FM(STP_IVCXO27_0_E)FM(RIF3_D1_B) F_(0, 0) FM(FSO_TOE_B) FM(TPU0TO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  352. #define IP18_3_0 FM(GP6_30) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT2_B) FM(SSI_SCK9_B) FM(TS_SDEN0_E) FM(STP_ISEN_0_E) F_(0, 0) FM(RIF2_D0_B) F_(0, 0) FM(FSO_CFE_0_A) FM(TPU0TO2) F_(0, 0) FM(FMCLK_C) FM(FMCLK_D) F_(0, 0)
  353. #define IP18_7_4 FM(GP6_31) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT3_B) FM(SSI_WS9_B) FM(TS_SPSYNC0_E)FM(STP_ISSYNC_0_E) F_(0, 0) FM(RIF2_D1_B) F_(0, 0) FM(FSO_CFE_1_A) FM(TPU0TO3) F_(0, 0) FM(FMIN_C) FM(FMIN_D) F_(0, 0)
  354. #define PINMUX_GPSR \
  355. \
  356. GPSR6_31 \
  357. GPSR6_30 \
  358. GPSR6_29 \
  359. GPSR1_28 GPSR6_28 \
  360. GPSR1_27 GPSR6_27 \
  361. GPSR1_26 GPSR6_26 \
  362. GPSR1_25 GPSR5_25 GPSR6_25 \
  363. GPSR1_24 GPSR5_24 GPSR6_24 \
  364. GPSR1_23 GPSR5_23 GPSR6_23 \
  365. GPSR1_22 GPSR5_22 GPSR6_22 \
  366. GPSR1_21 GPSR5_21 GPSR6_21 \
  367. GPSR1_20 GPSR5_20 GPSR6_20 \
  368. GPSR1_19 GPSR5_19 GPSR6_19 \
  369. GPSR1_18 GPSR5_18 GPSR6_18 \
  370. GPSR1_17 GPSR4_17 GPSR5_17 GPSR6_17 \
  371. GPSR1_16 GPSR4_16 GPSR5_16 GPSR6_16 \
  372. GPSR0_15 GPSR1_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 \
  373. GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 \
  374. GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 \
  375. GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 \
  376. GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 \
  377. GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 \
  378. GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 \
  379. GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 \
  380. GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 \
  381. GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 \
  382. GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 \
  383. GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 \
  384. GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 \
  385. GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 \
  386. GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 \
  387. GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0
  388. #define PINMUX_IPSR \
  389. \
  390. FM(IP0_3_0) IP0_3_0 FM(IP1_3_0) IP1_3_0 FM(IP2_3_0) IP2_3_0 FM(IP3_3_0) IP3_3_0 \
  391. FM(IP0_7_4) IP0_7_4 FM(IP1_7_4) IP1_7_4 FM(IP2_7_4) IP2_7_4 FM(IP3_7_4) IP3_7_4 \
  392. FM(IP0_11_8) IP0_11_8 FM(IP1_11_8) IP1_11_8 FM(IP2_11_8) IP2_11_8 FM(IP3_11_8) IP3_11_8 \
  393. FM(IP0_15_12) IP0_15_12 FM(IP1_15_12) IP1_15_12 FM(IP2_15_12) IP2_15_12 FM(IP3_15_12) IP3_15_12 \
  394. FM(IP0_19_16) IP0_19_16 FM(IP1_19_16) IP1_19_16 FM(IP2_19_16) IP2_19_16 FM(IP3_19_16) IP3_19_16 \
  395. FM(IP0_23_20) IP0_23_20 FM(IP1_23_20) IP1_23_20 FM(IP2_23_20) IP2_23_20 FM(IP3_23_20) IP3_23_20 \
  396. FM(IP0_27_24) IP0_27_24 FM(IP1_27_24) IP1_27_24 FM(IP2_27_24) IP2_27_24 FM(IP3_27_24) IP3_27_24 \
  397. FM(IP0_31_28) IP0_31_28 FM(IP1_31_28) IP1_31_28 FM(IP2_31_28) IP2_31_28 FM(IP3_31_28) IP3_31_28 \
  398. \
  399. FM(IP4_3_0) IP4_3_0 FM(IP5_3_0) IP5_3_0 FM(IP6_3_0) IP6_3_0 FM(IP7_3_0) IP7_3_0 \
  400. FM(IP4_7_4) IP4_7_4 FM(IP5_7_4) IP5_7_4 FM(IP6_7_4) IP6_7_4 FM(IP7_7_4) IP7_7_4 \
  401. FM(IP4_11_8) IP4_11_8 FM(IP5_11_8) IP5_11_8 FM(IP6_11_8) IP6_11_8 FM(IP7_11_8) IP7_11_8 \
  402. FM(IP4_15_12) IP4_15_12 FM(IP5_15_12) IP5_15_12 FM(IP6_15_12) IP6_15_12 FM(IP7_15_12) IP7_15_12 \
  403. FM(IP4_19_16) IP4_19_16 FM(IP5_19_16) IP5_19_16 FM(IP6_19_16) IP6_19_16 FM(IP7_19_16) IP7_19_16 \
  404. FM(IP4_23_20) IP4_23_20 FM(IP5_23_20) IP5_23_20 FM(IP6_23_20) IP6_23_20 FM(IP7_23_20) IP7_23_20 \
  405. FM(IP4_27_24) IP4_27_24 FM(IP5_27_24) IP5_27_24 FM(IP6_27_24) IP6_27_24 FM(IP7_27_24) IP7_27_24 \
  406. FM(IP4_31_28) IP4_31_28 FM(IP5_31_28) IP5_31_28 FM(IP6_31_28) IP6_31_28 FM(IP7_31_28) IP7_31_28 \
  407. \
  408. FM(IP8_3_0) IP8_3_0 FM(IP9_3_0) IP9_3_0 FM(IP10_3_0) IP10_3_0 FM(IP11_3_0) IP11_3_0 \
  409. FM(IP8_7_4) IP8_7_4 FM(IP9_7_4) IP9_7_4 FM(IP10_7_4) IP10_7_4 FM(IP11_7_4) IP11_7_4 \
  410. FM(IP8_11_8) IP8_11_8 FM(IP9_11_8) IP9_11_8 FM(IP10_11_8) IP10_11_8 FM(IP11_11_8) IP11_11_8 \
  411. FM(IP8_15_12) IP8_15_12 FM(IP9_15_12) IP9_15_12 FM(IP10_15_12) IP10_15_12 FM(IP11_15_12) IP11_15_12 \
  412. FM(IP8_19_16) IP8_19_16 FM(IP9_19_16) IP9_19_16 FM(IP10_19_16) IP10_19_16 FM(IP11_19_16) IP11_19_16 \
  413. FM(IP8_23_20) IP8_23_20 FM(IP9_23_20) IP9_23_20 FM(IP10_23_20) IP10_23_20 FM(IP11_23_20) IP11_23_20 \
  414. FM(IP8_27_24) IP8_27_24 FM(IP9_27_24) IP9_27_24 FM(IP10_27_24) IP10_27_24 FM(IP11_27_24) IP11_27_24 \
  415. FM(IP8_31_28) IP8_31_28 FM(IP9_31_28) IP9_31_28 FM(IP10_31_28) IP10_31_28 FM(IP11_31_28) IP11_31_28 \
  416. \
  417. FM(IP12_3_0) IP12_3_0 FM(IP13_3_0) IP13_3_0 FM(IP14_3_0) IP14_3_0 FM(IP15_3_0) IP15_3_0 \
  418. FM(IP12_7_4) IP12_7_4 FM(IP13_7_4) IP13_7_4 FM(IP14_7_4) IP14_7_4 FM(IP15_7_4) IP15_7_4 \
  419. FM(IP12_11_8) IP12_11_8 FM(IP13_11_8) IP13_11_8 FM(IP14_11_8) IP14_11_8 FM(IP15_11_8) IP15_11_8 \
  420. FM(IP12_15_12) IP12_15_12 FM(IP13_15_12) IP13_15_12 FM(IP14_15_12) IP14_15_12 FM(IP15_15_12) IP15_15_12 \
  421. FM(IP12_19_16) IP12_19_16 FM(IP13_19_16) IP13_19_16 FM(IP14_19_16) IP14_19_16 FM(IP15_19_16) IP15_19_16 \
  422. FM(IP12_23_20) IP12_23_20 FM(IP13_23_20) IP13_23_20 FM(IP14_23_20) IP14_23_20 FM(IP15_23_20) IP15_23_20 \
  423. FM(IP12_27_24) IP12_27_24 FM(IP13_27_24) IP13_27_24 FM(IP14_27_24) IP14_27_24 FM(IP15_27_24) IP15_27_24 \
  424. FM(IP12_31_28) IP12_31_28 FM(IP13_31_28) IP13_31_28 FM(IP14_31_28) IP14_31_28 FM(IP15_31_28) IP15_31_28 \
  425. \
  426. FM(IP16_3_0) IP16_3_0 FM(IP17_3_0) IP17_3_0 FM(IP18_3_0) IP18_3_0 \
  427. FM(IP16_7_4) IP16_7_4 FM(IP17_7_4) IP17_7_4 FM(IP18_7_4) IP18_7_4 \
  428. FM(IP16_11_8) IP16_11_8 FM(IP17_11_8) IP17_11_8 \
  429. FM(IP16_15_12) IP16_15_12 FM(IP17_15_12) IP17_15_12 \
  430. FM(IP16_19_16) IP16_19_16 FM(IP17_19_16) IP17_19_16 \
  431. FM(IP16_23_20) IP16_23_20 FM(IP17_23_20) IP17_23_20 \
  432. FM(IP16_27_24) IP16_27_24 FM(IP17_27_24) IP17_27_24 \
  433. FM(IP16_31_28) IP16_31_28 FM(IP17_31_28) IP17_31_28
  434. /* MOD_SEL0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  435. #define MOD_SEL0_31_30_29 FM(SEL_MSIOF3_0) FM(SEL_MSIOF3_1) FM(SEL_MSIOF3_2) FM(SEL_MSIOF3_3) FM(SEL_MSIOF3_4) F_(0, 0) F_(0, 0) F_(0, 0)
  436. #define MOD_SEL0_28_27 FM(SEL_MSIOF2_0) FM(SEL_MSIOF2_1) FM(SEL_MSIOF2_2) FM(SEL_MSIOF2_3)
  437. #define MOD_SEL0_26_25_24 FM(SEL_MSIOF1_0) FM(SEL_MSIOF1_1) FM(SEL_MSIOF1_2) FM(SEL_MSIOF1_3) FM(SEL_MSIOF1_4) FM(SEL_MSIOF1_5) FM(SEL_MSIOF1_6) F_(0, 0)
  438. #define MOD_SEL0_23 FM(SEL_LBSC_0) FM(SEL_LBSC_1)
  439. #define MOD_SEL0_22 FM(SEL_IEBUS_0) FM(SEL_IEBUS_1)
  440. #define MOD_SEL0_21 FM(SEL_I2C2_0) FM(SEL_I2C2_1)
  441. #define MOD_SEL0_20 FM(SEL_I2C1_0) FM(SEL_I2C1_1)
  442. #define MOD_SEL0_19 FM(SEL_HSCIF4_0) FM(SEL_HSCIF4_1)
  443. #define MOD_SEL0_18_17 FM(SEL_HSCIF3_0) FM(SEL_HSCIF3_1) FM(SEL_HSCIF3_2) FM(SEL_HSCIF3_3)
  444. #define MOD_SEL0_16 FM(SEL_HSCIF1_0) FM(SEL_HSCIF1_1)
  445. #define MOD_SEL0_15 FM(SEL_FSO_0) FM(SEL_FSO_1)
  446. #define MOD_SEL0_14_13 FM(SEL_HSCIF2_0) FM(SEL_HSCIF2_1) FM(SEL_HSCIF2_2) F_(0, 0)
  447. #define MOD_SEL0_12 FM(SEL_ETHERAVB_0) FM(SEL_ETHERAVB_1)
  448. #define MOD_SEL0_11 FM(SEL_DRIF3_0) FM(SEL_DRIF3_1)
  449. #define MOD_SEL0_10 FM(SEL_DRIF2_0) FM(SEL_DRIF2_1)
  450. #define MOD_SEL0_9_8 FM(SEL_DRIF1_0) FM(SEL_DRIF1_1) FM(SEL_DRIF1_2) F_(0, 0)
  451. #define MOD_SEL0_7_6 FM(SEL_DRIF0_0) FM(SEL_DRIF0_1) FM(SEL_DRIF0_2) F_(0, 0)
  452. #define MOD_SEL0_5 FM(SEL_CANFD0_0) FM(SEL_CANFD0_1)
  453. #define MOD_SEL0_4_3 FM(SEL_ADG_A_0) FM(SEL_ADG_A_1) FM(SEL_ADG_A_2) FM(SEL_ADG_A_3)
  454. #define MOD_SEL0_2 FM(SEL_5LINE_0) FM(SEL_5LINE_1)
  455. /* MOD_SEL1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  456. #define MOD_SEL1_31_30 FM(SEL_TSIF1_0) FM(SEL_TSIF1_1) FM(SEL_TSIF1_2) FM(SEL_TSIF1_3)
  457. #define MOD_SEL1_29_28_27 FM(SEL_TSIF0_0) FM(SEL_TSIF0_1) FM(SEL_TSIF0_2) FM(SEL_TSIF0_3) FM(SEL_TSIF0_4) F_(0, 0) F_(0, 0) F_(0, 0)
  458. #define MOD_SEL1_26 FM(SEL_TIMER_TMU_0) FM(SEL_TIMER_TMU_1)
  459. #define MOD_SEL1_25_24 FM(SEL_SSP1_1_0) FM(SEL_SSP1_1_1) FM(SEL_SSP1_1_2) FM(SEL_SSP1_1_3)
  460. #define MOD_SEL1_23_22_21 FM(SEL_SSP1_0_0) FM(SEL_SSP1_0_1) FM(SEL_SSP1_0_2) FM(SEL_SSP1_0_3) FM(SEL_SSP1_0_4) F_(0, 0) F_(0, 0) F_(0, 0)
  461. #define MOD_SEL1_20 FM(SEL_SSI_0) FM(SEL_SSI_1)
  462. #define MOD_SEL1_19 FM(SEL_SPEED_PULSE_0) FM(SEL_SPEED_PULSE_1)
  463. #define MOD_SEL1_18_17 FM(SEL_SIMCARD_0) FM(SEL_SIMCARD_1) FM(SEL_SIMCARD_2) FM(SEL_SIMCARD_3)
  464. #define MOD_SEL1_16 FM(SEL_SDHI2_0) FM(SEL_SDHI2_1)
  465. #define MOD_SEL1_15_14 FM(SEL_SCIF4_0) FM(SEL_SCIF4_1) FM(SEL_SCIF4_2) F_(0, 0)
  466. #define MOD_SEL1_13 FM(SEL_SCIF3_0) FM(SEL_SCIF3_1)
  467. #define MOD_SEL1_12 FM(SEL_SCIF2_0) FM(SEL_SCIF2_1)
  468. #define MOD_SEL1_11 FM(SEL_SCIF1_0) FM(SEL_SCIF1_1)
  469. #define MOD_SEL1_10 FM(SEL_SATA_0) FM(SEL_SATA_1)
  470. #define MOD_SEL1_9 FM(SEL_REMOCON_0) FM(SEL_REMOCON_1)
  471. #define MOD_SEL1_6 FM(SEL_RCAN0_0) FM(SEL_RCAN0_1)
  472. #define MOD_SEL1_5 FM(SEL_PWM6_0) FM(SEL_PWM6_1)
  473. #define MOD_SEL1_4 FM(SEL_PWM5_0) FM(SEL_PWM5_1)
  474. #define MOD_SEL1_3 FM(SEL_PWM4_0) FM(SEL_PWM4_1)
  475. #define MOD_SEL1_2 FM(SEL_PWM3_0) FM(SEL_PWM3_1)
  476. #define MOD_SEL1_1 FM(SEL_PWM2_0) FM(SEL_PWM2_1)
  477. #define MOD_SEL1_0 FM(SEL_PWM1_0) FM(SEL_PWM1_1)
  478. /* MOD_SEL1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  479. #define MOD_SEL2_31 FM(I2C_SEL_5_0) FM(I2C_SEL_5_1)
  480. #define MOD_SEL2_30 FM(I2C_SEL_3_0) FM(I2C_SEL_3_1)
  481. #define MOD_SEL2_29 FM(I2C_SEL_0_0) FM(I2C_SEL_0_1)
  482. #define MOD_SEL2_28_27 FM(SEL_FM_0) FM(SEL_FM_1) FM(SEL_FM_2) FM(SEL_FM_3)
  483. #define MOD_SEL2_26 FM(SEL_SCIF5_0) FM(SEL_SCIF5_1)
  484. #define MOD_SEL2_25_24_23 FM(SEL_I2C6_0) FM(SEL_I2C6_1) FM(SEL_I2C6_2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  485. #define MOD_SEL2_22 FM(SEL_NDF_0) FM(SEL_NDF_1)
  486. #define MOD_SEL2_21 FM(SEL_SSI2_0) FM(SEL_SSI2_1)
  487. #define MOD_SEL2_20 FM(SEL_SSI9_0) FM(SEL_SSI9_1)
  488. #define MOD_SEL2_19 FM(SEL_TIMER_TMU2_0) FM(SEL_TIMER_TMU2_1)
  489. #define MOD_SEL2_18 FM(SEL_ADG_B_0) FM(SEL_ADG_B_1)
  490. #define MOD_SEL2_17 FM(SEL_ADG_C_0) FM(SEL_ADG_C_1)
  491. #define MOD_SEL2_0 FM(SEL_VIN4_0) FM(SEL_VIN4_1)
  492. #define PINMUX_MOD_SELS \
  493. \
  494. MOD_SEL0_31_30_29 MOD_SEL1_31_30 MOD_SEL2_31 \
  495. MOD_SEL2_30 \
  496. MOD_SEL1_29_28_27 MOD_SEL2_29 \
  497. MOD_SEL0_28_27 MOD_SEL2_28_27 \
  498. MOD_SEL0_26_25_24 MOD_SEL1_26 MOD_SEL2_26 \
  499. MOD_SEL1_25_24 MOD_SEL2_25_24_23 \
  500. MOD_SEL0_23 MOD_SEL1_23_22_21 \
  501. MOD_SEL0_22 MOD_SEL2_22 \
  502. MOD_SEL0_21 MOD_SEL2_21 \
  503. MOD_SEL0_20 MOD_SEL1_20 MOD_SEL2_20 \
  504. MOD_SEL0_19 MOD_SEL1_19 MOD_SEL2_19 \
  505. MOD_SEL0_18_17 MOD_SEL1_18_17 MOD_SEL2_18 \
  506. MOD_SEL2_17 \
  507. MOD_SEL0_16 MOD_SEL1_16 \
  508. MOD_SEL0_15 MOD_SEL1_15_14 \
  509. MOD_SEL0_14_13 \
  510. MOD_SEL1_13 \
  511. MOD_SEL0_12 MOD_SEL1_12 \
  512. MOD_SEL0_11 MOD_SEL1_11 \
  513. MOD_SEL0_10 MOD_SEL1_10 \
  514. MOD_SEL0_9_8 MOD_SEL1_9 \
  515. MOD_SEL0_7_6 \
  516. MOD_SEL1_6 \
  517. MOD_SEL0_5 MOD_SEL1_5 \
  518. MOD_SEL0_4_3 MOD_SEL1_4 \
  519. MOD_SEL1_3 \
  520. MOD_SEL0_2 MOD_SEL1_2 \
  521. MOD_SEL1_1 \
  522. MOD_SEL1_0 MOD_SEL2_0
  523. /*
  524. * These pins are not able to be muxed but have other properties
  525. * that can be set, such as drive-strength or pull-up/pull-down enable.
  526. */
  527. #define PINMUX_STATIC \
  528. FM(QSPI0_SPCLK) FM(QSPI0_SSL) FM(QSPI0_MOSI_IO0) FM(QSPI0_MISO_IO1) \
  529. FM(QSPI0_IO2) FM(QSPI0_IO3) \
  530. FM(QSPI1_SPCLK) FM(QSPI1_SSL) FM(QSPI1_MOSI_IO0) FM(QSPI1_MISO_IO1) \
  531. FM(QSPI1_IO2) FM(QSPI1_IO3) \
  532. FM(RPC_INT) FM(RPC_WP) FM(RPC_RESET) \
  533. FM(AVB_TX_CTL) FM(AVB_TXC) FM(AVB_TD0) FM(AVB_TD1) FM(AVB_TD2) FM(AVB_TD3) \
  534. FM(AVB_RX_CTL) FM(AVB_RXC) FM(AVB_RD0) FM(AVB_RD1) FM(AVB_RD2) FM(AVB_RD3) \
  535. FM(AVB_TXCREFCLK) FM(AVB_MDIO) \
  536. FM(PRESETOUT) \
  537. FM(DU_DOTCLKIN0) FM(DU_DOTCLKIN1) FM(DU_DOTCLKIN2) \
  538. FM(TMS) FM(TDO) FM(ASEBRK) FM(MLB_REF) FM(TDI) FM(TCK) FM(TRST) FM(EXTALR)
  539. enum {
  540. PINMUX_RESERVED = 0,
  541. PINMUX_DATA_BEGIN,
  542. GP_ALL(DATA),
  543. PINMUX_DATA_END,
  544. #define F_(x, y)
  545. #define FM(x) FN_##x,
  546. PINMUX_FUNCTION_BEGIN,
  547. GP_ALL(FN),
  548. PINMUX_GPSR
  549. PINMUX_IPSR
  550. PINMUX_MOD_SELS
  551. PINMUX_FUNCTION_END,
  552. #undef F_
  553. #undef FM
  554. #define F_(x, y)
  555. #define FM(x) x##_MARK,
  556. PINMUX_MARK_BEGIN,
  557. PINMUX_GPSR
  558. PINMUX_IPSR
  559. PINMUX_MOD_SELS
  560. PINMUX_STATIC
  561. PINMUX_MARK_END,
  562. #undef F_
  563. #undef FM
  564. };
  565. static const u16 pinmux_data[] = {
  566. PINMUX_DATA_GP_ALL(),
  567. PINMUX_SINGLE(AVS1),
  568. PINMUX_SINGLE(AVS2),
  569. PINMUX_SINGLE(CLKOUT),
  570. PINMUX_SINGLE(GP7_03),
  571. PINMUX_SINGLE(HDMI0_CEC),
  572. PINMUX_SINGLE(MSIOF0_RXD),
  573. PINMUX_SINGLE(MSIOF0_SCK),
  574. PINMUX_SINGLE(MSIOF0_TXD),
  575. PINMUX_SINGLE(SSI_SCK5),
  576. PINMUX_SINGLE(SSI_SDATA5),
  577. PINMUX_SINGLE(SSI_WS5),
  578. /* IPSR0 */
  579. PINMUX_IPSR_GPSR(IP0_3_0, AVB_MDC),
  580. PINMUX_IPSR_MSEL(IP0_3_0, MSIOF2_SS2_C, SEL_MSIOF2_2),
  581. PINMUX_IPSR_GPSR(IP0_7_4, AVB_MAGIC),
  582. PINMUX_IPSR_MSEL(IP0_7_4, MSIOF2_SS1_C, SEL_MSIOF2_2),
  583. PINMUX_IPSR_MSEL(IP0_7_4, SCK4_A, SEL_SCIF4_0),
  584. PINMUX_IPSR_GPSR(IP0_11_8, AVB_PHY_INT),
  585. PINMUX_IPSR_MSEL(IP0_11_8, MSIOF2_SYNC_C, SEL_MSIOF2_2),
  586. PINMUX_IPSR_MSEL(IP0_11_8, RX4_A, SEL_SCIF4_0),
  587. PINMUX_IPSR_GPSR(IP0_15_12, AVB_LINK),
  588. PINMUX_IPSR_MSEL(IP0_15_12, MSIOF2_SCK_C, SEL_MSIOF2_2),
  589. PINMUX_IPSR_MSEL(IP0_15_12, TX4_A, SEL_SCIF4_0),
  590. PINMUX_IPSR_MSEL(IP0_19_16, AVB_AVTP_MATCH_A, SEL_ETHERAVB_0),
  591. PINMUX_IPSR_MSEL(IP0_19_16, MSIOF2_RXD_C, SEL_MSIOF2_2),
  592. PINMUX_IPSR_MSEL(IP0_19_16, CTS4_N_A, SEL_SCIF4_0),
  593. PINMUX_IPSR_MSEL(IP0_23_20, AVB_AVTP_CAPTURE_A, SEL_ETHERAVB_0),
  594. PINMUX_IPSR_MSEL(IP0_23_20, MSIOF2_TXD_C, SEL_MSIOF2_2),
  595. PINMUX_IPSR_MSEL(IP0_23_20, RTS4_N_TANS_A, SEL_SCIF4_0),
  596. PINMUX_IPSR_GPSR(IP0_27_24, IRQ0),
  597. PINMUX_IPSR_GPSR(IP0_27_24, QPOLB),
  598. PINMUX_IPSR_GPSR(IP0_27_24, DU_CDE),
  599. PINMUX_IPSR_MSEL(IP0_27_24, VI4_DATA0_B, SEL_VIN4_1),
  600. PINMUX_IPSR_MSEL(IP0_27_24, CAN0_TX_B, SEL_RCAN0_1),
  601. PINMUX_IPSR_MSEL(IP0_27_24, CANFD0_TX_B, SEL_CANFD0_1),
  602. PINMUX_IPSR_MSEL(IP0_27_24, MSIOF3_SS2_E, SEL_MSIOF3_4),
  603. PINMUX_IPSR_GPSR(IP0_31_28, IRQ1),
  604. PINMUX_IPSR_GPSR(IP0_31_28, QPOLA),
  605. PINMUX_IPSR_GPSR(IP0_31_28, DU_DISP),
  606. PINMUX_IPSR_MSEL(IP0_31_28, VI4_DATA1_B, SEL_VIN4_1),
  607. PINMUX_IPSR_MSEL(IP0_31_28, CAN0_RX_B, SEL_RCAN0_1),
  608. PINMUX_IPSR_MSEL(IP0_31_28, CANFD0_RX_B, SEL_CANFD0_1),
  609. PINMUX_IPSR_MSEL(IP0_27_24, MSIOF3_SS1_E, SEL_MSIOF3_4),
  610. /* IPSR1 */
  611. PINMUX_IPSR_GPSR(IP1_3_0, IRQ2),
  612. PINMUX_IPSR_GPSR(IP1_3_0, QCPV_QDE),
  613. PINMUX_IPSR_GPSR(IP1_3_0, DU_EXODDF_DU_ODDF_DISP_CDE),
  614. PINMUX_IPSR_MSEL(IP1_3_0, VI4_DATA2_B, SEL_VIN4_1),
  615. PINMUX_IPSR_MSEL(IP1_3_0, PWM3_B, SEL_PWM3_1),
  616. PINMUX_IPSR_MSEL(IP1_3_0, MSIOF3_SYNC_E, SEL_MSIOF3_4),
  617. PINMUX_IPSR_GPSR(IP1_7_4, IRQ3),
  618. PINMUX_IPSR_GPSR(IP1_7_4, QSTVB_QVE),
  619. PINMUX_IPSR_GPSR(IP1_7_4, A25),
  620. PINMUX_IPSR_GPSR(IP1_7_4, DU_DOTCLKOUT1),
  621. PINMUX_IPSR_MSEL(IP1_7_4, VI4_DATA3_B, SEL_VIN4_1),
  622. PINMUX_IPSR_MSEL(IP1_7_4, PWM4_B, SEL_PWM4_1),
  623. PINMUX_IPSR_MSEL(IP1_7_4, MSIOF3_SCK_E, SEL_MSIOF3_4),
  624. PINMUX_IPSR_GPSR(IP1_11_8, IRQ4),
  625. PINMUX_IPSR_GPSR(IP1_11_8, QSTH_QHS),
  626. PINMUX_IPSR_GPSR(IP1_11_8, A24),
  627. PINMUX_IPSR_GPSR(IP1_11_8, DU_EXHSYNC_DU_HSYNC),
  628. PINMUX_IPSR_MSEL(IP1_11_8, VI4_DATA4_B, SEL_VIN4_1),
  629. PINMUX_IPSR_MSEL(IP1_11_8, PWM5_B, SEL_PWM5_1),
  630. PINMUX_IPSR_MSEL(IP1_11_8, MSIOF3_RXD_E, SEL_MSIOF3_4),
  631. PINMUX_IPSR_GPSR(IP1_15_12, IRQ5),
  632. PINMUX_IPSR_GPSR(IP1_15_12, QSTB_QHE),
  633. PINMUX_IPSR_GPSR(IP1_15_12, A23),
  634. PINMUX_IPSR_GPSR(IP1_15_12, DU_EXVSYNC_DU_VSYNC),
  635. PINMUX_IPSR_MSEL(IP1_15_12, VI4_DATA5_B, SEL_VIN4_1),
  636. PINMUX_IPSR_MSEL(IP1_15_12, PWM6_B, SEL_PWM6_1),
  637. PINMUX_IPSR_MSEL(IP1_15_12, MSIOF3_TXD_E, SEL_MSIOF3_4),
  638. PINMUX_IPSR_GPSR(IP1_19_16, PWM0),
  639. PINMUX_IPSR_GPSR(IP1_19_16, AVB_AVTP_PPS),
  640. PINMUX_IPSR_GPSR(IP1_19_16, A22),
  641. PINMUX_IPSR_MSEL(IP1_19_16, VI4_DATA6_B, SEL_VIN4_1),
  642. PINMUX_IPSR_MSEL(IP1_19_16, IECLK_B, SEL_IEBUS_1),
  643. PINMUX_IPSR_MSEL(IP1_23_20, PWM1_A, SEL_PWM1_0),
  644. PINMUX_IPSR_GPSR(IP1_23_20, A21),
  645. PINMUX_IPSR_MSEL(IP1_23_20, HRX3_D, SEL_HSCIF3_3),
  646. PINMUX_IPSR_MSEL(IP1_23_20, VI4_DATA7_B, SEL_VIN4_1),
  647. PINMUX_IPSR_MSEL(IP1_23_20, IERX_B, SEL_IEBUS_1),
  648. PINMUX_IPSR_MSEL(IP1_27_24, PWM2_A, SEL_PWM2_0),
  649. PINMUX_IPSR_GPSR(IP1_27_24, A20),
  650. PINMUX_IPSR_MSEL(IP1_27_24, HTX3_D, SEL_HSCIF3_3),
  651. PINMUX_IPSR_MSEL(IP1_27_24, IETX_B, SEL_IEBUS_1),
  652. PINMUX_IPSR_GPSR(IP1_31_28, A0),
  653. PINMUX_IPSR_GPSR(IP1_31_28, LCDOUT16),
  654. PINMUX_IPSR_MSEL(IP1_31_28, MSIOF3_SYNC_B, SEL_MSIOF3_1),
  655. PINMUX_IPSR_GPSR(IP1_31_28, VI4_DATA8),
  656. PINMUX_IPSR_GPSR(IP1_31_28, DU_DB0),
  657. PINMUX_IPSR_MSEL(IP1_31_28, PWM3_A, SEL_PWM3_0),
  658. /* IPSR2 */
  659. PINMUX_IPSR_GPSR(IP2_3_0, A1),
  660. PINMUX_IPSR_GPSR(IP2_3_0, LCDOUT17),
  661. PINMUX_IPSR_MSEL(IP2_3_0, MSIOF3_TXD_B, SEL_MSIOF3_1),
  662. PINMUX_IPSR_GPSR(IP2_3_0, VI4_DATA9),
  663. PINMUX_IPSR_GPSR(IP2_3_0, DU_DB1),
  664. PINMUX_IPSR_MSEL(IP2_3_0, PWM4_A, SEL_PWM4_0),
  665. PINMUX_IPSR_GPSR(IP2_7_4, A2),
  666. PINMUX_IPSR_GPSR(IP2_7_4, LCDOUT18),
  667. PINMUX_IPSR_MSEL(IP2_7_4, MSIOF3_SCK_B, SEL_MSIOF3_1),
  668. PINMUX_IPSR_GPSR(IP2_7_4, VI4_DATA10),
  669. PINMUX_IPSR_GPSR(IP2_7_4, DU_DB2),
  670. PINMUX_IPSR_MSEL(IP2_7_4, PWM5_A, SEL_PWM5_0),
  671. PINMUX_IPSR_GPSR(IP2_11_8, A3),
  672. PINMUX_IPSR_GPSR(IP2_11_8, LCDOUT19),
  673. PINMUX_IPSR_MSEL(IP2_11_8, MSIOF3_RXD_B, SEL_MSIOF3_1),
  674. PINMUX_IPSR_GPSR(IP2_11_8, VI4_DATA11),
  675. PINMUX_IPSR_GPSR(IP2_11_8, DU_DB3),
  676. PINMUX_IPSR_MSEL(IP2_11_8, PWM6_A, SEL_PWM6_0),
  677. PINMUX_IPSR_GPSR(IP2_15_12, A4),
  678. PINMUX_IPSR_GPSR(IP2_15_12, LCDOUT20),
  679. PINMUX_IPSR_MSEL(IP2_15_12, MSIOF3_SS1_B, SEL_MSIOF3_1),
  680. PINMUX_IPSR_GPSR(IP2_15_12, VI4_DATA12),
  681. PINMUX_IPSR_GPSR(IP2_15_12, VI5_DATA12),
  682. PINMUX_IPSR_GPSR(IP2_15_12, DU_DB4),
  683. PINMUX_IPSR_GPSR(IP2_19_16, A5),
  684. PINMUX_IPSR_GPSR(IP2_19_16, LCDOUT21),
  685. PINMUX_IPSR_MSEL(IP2_19_16, MSIOF3_SS2_B, SEL_MSIOF3_1),
  686. PINMUX_IPSR_MSEL(IP2_19_16, SCK4_B, SEL_SCIF4_1),
  687. PINMUX_IPSR_GPSR(IP2_19_16, VI4_DATA13),
  688. PINMUX_IPSR_GPSR(IP2_19_16, VI5_DATA13),
  689. PINMUX_IPSR_GPSR(IP2_19_16, DU_DB5),
  690. PINMUX_IPSR_GPSR(IP2_23_20, A6),
  691. PINMUX_IPSR_GPSR(IP2_23_20, LCDOUT22),
  692. PINMUX_IPSR_MSEL(IP2_23_20, MSIOF2_SS1_A, SEL_MSIOF2_0),
  693. PINMUX_IPSR_MSEL(IP2_23_20, RX4_B, SEL_SCIF4_1),
  694. PINMUX_IPSR_GPSR(IP2_23_20, VI4_DATA14),
  695. PINMUX_IPSR_GPSR(IP2_23_20, VI5_DATA14),
  696. PINMUX_IPSR_GPSR(IP2_23_20, DU_DB6),
  697. PINMUX_IPSR_GPSR(IP2_27_24, A7),
  698. PINMUX_IPSR_GPSR(IP2_27_24, LCDOUT23),
  699. PINMUX_IPSR_MSEL(IP2_27_24, MSIOF2_SS2_A, SEL_MSIOF2_0),
  700. PINMUX_IPSR_MSEL(IP2_27_24, TX4_B, SEL_SCIF4_1),
  701. PINMUX_IPSR_GPSR(IP2_27_24, VI4_DATA15),
  702. PINMUX_IPSR_GPSR(IP2_27_24, VI5_DATA15),
  703. PINMUX_IPSR_GPSR(IP2_27_24, DU_DB7),
  704. PINMUX_IPSR_GPSR(IP2_31_28, A8),
  705. PINMUX_IPSR_MSEL(IP2_31_28, RX3_B, SEL_SCIF3_1),
  706. PINMUX_IPSR_MSEL(IP2_31_28, MSIOF2_SYNC_A, SEL_MSIOF2_0),
  707. PINMUX_IPSR_MSEL(IP2_31_28, HRX4_B, SEL_HSCIF4_1),
  708. PINMUX_IPSR_MSEL(IP2_31_28, SDA6_A, SEL_I2C6_0),
  709. PINMUX_IPSR_MSEL(IP2_31_28, AVB_AVTP_MATCH_B, SEL_ETHERAVB_1),
  710. PINMUX_IPSR_MSEL(IP2_31_28, PWM1_B, SEL_PWM1_1),
  711. /* IPSR3 */
  712. PINMUX_IPSR_GPSR(IP3_3_0, A9),
  713. PINMUX_IPSR_MSEL(IP3_3_0, MSIOF2_SCK_A, SEL_MSIOF2_0),
  714. PINMUX_IPSR_MSEL(IP3_3_0, CTS4_N_B, SEL_SCIF4_1),
  715. PINMUX_IPSR_GPSR(IP3_3_0, VI5_VSYNC_N),
  716. PINMUX_IPSR_GPSR(IP3_7_4, A10),
  717. PINMUX_IPSR_MSEL(IP3_7_4, MSIOF2_RXD_A, SEL_MSIOF2_0),
  718. PINMUX_IPSR_MSEL(IP3_7_4, RTS4_N_TANS_B, SEL_SCIF4_1),
  719. PINMUX_IPSR_GPSR(IP3_7_4, VI5_HSYNC_N),
  720. PINMUX_IPSR_GPSR(IP3_11_8, A11),
  721. PINMUX_IPSR_MSEL(IP3_11_8, TX3_B, SEL_SCIF3_1),
  722. PINMUX_IPSR_MSEL(IP3_11_8, MSIOF2_TXD_A, SEL_MSIOF2_0),
  723. PINMUX_IPSR_MSEL(IP3_11_8, HTX4_B, SEL_HSCIF4_1),
  724. PINMUX_IPSR_GPSR(IP3_11_8, HSCK4),
  725. PINMUX_IPSR_GPSR(IP3_11_8, VI5_FIELD),
  726. PINMUX_IPSR_MSEL(IP3_11_8, SCL6_A, SEL_I2C6_0),
  727. PINMUX_IPSR_MSEL(IP3_11_8, AVB_AVTP_CAPTURE_B, SEL_ETHERAVB_1),
  728. PINMUX_IPSR_MSEL(IP3_11_8, PWM2_B, SEL_PWM2_1),
  729. PINMUX_IPSR_GPSR(IP3_15_12, A12),
  730. PINMUX_IPSR_GPSR(IP3_15_12, LCDOUT12),
  731. PINMUX_IPSR_MSEL(IP3_15_12, MSIOF3_SCK_C, SEL_MSIOF3_2),
  732. PINMUX_IPSR_MSEL(IP3_15_12, HRX4_A, SEL_HSCIF4_0),
  733. PINMUX_IPSR_GPSR(IP3_15_12, VI5_DATA8),
  734. PINMUX_IPSR_GPSR(IP3_15_12, DU_DG4),
  735. PINMUX_IPSR_GPSR(IP3_19_16, A13),
  736. PINMUX_IPSR_GPSR(IP3_19_16, LCDOUT13),
  737. PINMUX_IPSR_MSEL(IP3_19_16, MSIOF3_SYNC_C, SEL_MSIOF3_2),
  738. PINMUX_IPSR_MSEL(IP3_19_16, HTX4_A, SEL_HSCIF4_0),
  739. PINMUX_IPSR_GPSR(IP3_19_16, VI5_DATA9),
  740. PINMUX_IPSR_GPSR(IP3_19_16, DU_DG5),
  741. PINMUX_IPSR_GPSR(IP3_23_20, A14),
  742. PINMUX_IPSR_GPSR(IP3_23_20, LCDOUT14),
  743. PINMUX_IPSR_MSEL(IP3_23_20, MSIOF3_RXD_C, SEL_MSIOF3_2),
  744. PINMUX_IPSR_GPSR(IP3_23_20, HCTS4_N),
  745. PINMUX_IPSR_GPSR(IP3_23_20, VI5_DATA10),
  746. PINMUX_IPSR_GPSR(IP3_23_20, DU_DG6),
  747. PINMUX_IPSR_GPSR(IP3_27_24, A15),
  748. PINMUX_IPSR_GPSR(IP3_27_24, LCDOUT15),
  749. PINMUX_IPSR_MSEL(IP3_27_24, MSIOF3_TXD_C, SEL_MSIOF3_2),
  750. PINMUX_IPSR_GPSR(IP3_27_24, HRTS4_N),
  751. PINMUX_IPSR_GPSR(IP3_27_24, VI5_DATA11),
  752. PINMUX_IPSR_GPSR(IP3_27_24, DU_DG7),
  753. PINMUX_IPSR_GPSR(IP3_31_28, A16),
  754. PINMUX_IPSR_GPSR(IP3_31_28, LCDOUT8),
  755. PINMUX_IPSR_GPSR(IP3_31_28, VI4_FIELD),
  756. PINMUX_IPSR_GPSR(IP3_31_28, DU_DG0),
  757. /* IPSR4 */
  758. PINMUX_IPSR_GPSR(IP4_3_0, A17),
  759. PINMUX_IPSR_GPSR(IP4_3_0, LCDOUT9),
  760. PINMUX_IPSR_GPSR(IP4_3_0, VI4_VSYNC_N),
  761. PINMUX_IPSR_GPSR(IP4_3_0, DU_DG1),
  762. PINMUX_IPSR_GPSR(IP4_7_4, A18),
  763. PINMUX_IPSR_GPSR(IP4_7_4, LCDOUT10),
  764. PINMUX_IPSR_GPSR(IP4_7_4, VI4_HSYNC_N),
  765. PINMUX_IPSR_GPSR(IP4_7_4, DU_DG2),
  766. PINMUX_IPSR_GPSR(IP4_11_8, A19),
  767. PINMUX_IPSR_GPSR(IP4_11_8, LCDOUT11),
  768. PINMUX_IPSR_GPSR(IP4_11_8, VI4_CLKENB),
  769. PINMUX_IPSR_GPSR(IP4_11_8, DU_DG3),
  770. PINMUX_IPSR_GPSR(IP4_15_12, CS0_N),
  771. PINMUX_IPSR_GPSR(IP4_15_12, VI5_CLKENB),
  772. PINMUX_IPSR_GPSR(IP4_19_16, CS1_N_A26),
  773. PINMUX_IPSR_GPSR(IP4_19_16, VI5_CLK),
  774. PINMUX_IPSR_MSEL(IP4_19_16, EX_WAIT0_B, SEL_LBSC_1),
  775. PINMUX_IPSR_GPSR(IP4_23_20, BS_N),
  776. PINMUX_IPSR_GPSR(IP4_23_20, QSTVA_QVS),
  777. PINMUX_IPSR_MSEL(IP4_23_20, MSIOF3_SCK_D, SEL_MSIOF3_3),
  778. PINMUX_IPSR_GPSR(IP4_23_20, SCK3),
  779. PINMUX_IPSR_GPSR(IP4_23_20, HSCK3),
  780. PINMUX_IPSR_GPSR(IP4_23_20, CAN1_TX),
  781. PINMUX_IPSR_GPSR(IP4_23_20, CANFD1_TX),
  782. PINMUX_IPSR_MSEL(IP4_23_20, IETX_A, SEL_IEBUS_0),
  783. PINMUX_IPSR_GPSR(IP4_27_24, RD_N),
  784. PINMUX_IPSR_MSEL(IP4_27_24, MSIOF3_SYNC_D, SEL_MSIOF3_3),
  785. PINMUX_IPSR_MSEL(IP4_27_24, RX3_A, SEL_SCIF3_0),
  786. PINMUX_IPSR_MSEL(IP4_27_24, HRX3_A, SEL_HSCIF3_0),
  787. PINMUX_IPSR_MSEL(IP4_27_24, CAN0_TX_A, SEL_RCAN0_0),
  788. PINMUX_IPSR_MSEL(IP4_27_24, CANFD0_TX_A, SEL_CANFD0_0),
  789. PINMUX_IPSR_GPSR(IP4_31_28, RD_WR_N),
  790. PINMUX_IPSR_MSEL(IP4_31_28, MSIOF3_RXD_D, SEL_MSIOF3_3),
  791. PINMUX_IPSR_MSEL(IP4_31_28, TX3_A, SEL_SCIF3_0),
  792. PINMUX_IPSR_MSEL(IP4_31_28, HTX3_A, SEL_HSCIF3_0),
  793. PINMUX_IPSR_MSEL(IP4_31_28, CAN0_RX_A, SEL_RCAN0_0),
  794. PINMUX_IPSR_MSEL(IP4_31_28, CANFD0_RX_A, SEL_CANFD0_0),
  795. /* IPSR5 */
  796. PINMUX_IPSR_GPSR(IP5_3_0, WE0_N),
  797. PINMUX_IPSR_MSEL(IP5_3_0, MSIOF3_TXD_D, SEL_MSIOF3_3),
  798. PINMUX_IPSR_GPSR(IP5_3_0, CTS3_N),
  799. PINMUX_IPSR_GPSR(IP5_3_0, HCTS3_N),
  800. PINMUX_IPSR_MSEL(IP5_3_0, SCL6_B, SEL_I2C6_1),
  801. PINMUX_IPSR_GPSR(IP5_3_0, CAN_CLK),
  802. PINMUX_IPSR_MSEL(IP5_3_0, IECLK_A, SEL_IEBUS_0),
  803. PINMUX_IPSR_GPSR(IP5_7_4, WE1_N),
  804. PINMUX_IPSR_MSEL(IP5_7_4, MSIOF3_SS1_D, SEL_MSIOF3_3),
  805. PINMUX_IPSR_GPSR(IP5_7_4, RTS3_N_TANS),
  806. PINMUX_IPSR_GPSR(IP5_7_4, HRTS3_N),
  807. PINMUX_IPSR_MSEL(IP5_7_4, SDA6_B, SEL_I2C6_1),
  808. PINMUX_IPSR_GPSR(IP5_7_4, CAN1_RX),
  809. PINMUX_IPSR_GPSR(IP5_7_4, CANFD1_RX),
  810. PINMUX_IPSR_MSEL(IP5_7_4, IERX_A, SEL_IEBUS_0),
  811. PINMUX_IPSR_MSEL(IP5_11_8, EX_WAIT0_A, SEL_LBSC_0),
  812. PINMUX_IPSR_GPSR(IP5_11_8, QCLK),
  813. PINMUX_IPSR_GPSR(IP5_11_8, VI4_CLK),
  814. PINMUX_IPSR_GPSR(IP5_11_8, DU_DOTCLKOUT0),
  815. PINMUX_IPSR_GPSR(IP5_15_12, D0),
  816. PINMUX_IPSR_MSEL(IP5_15_12, MSIOF2_SS1_B, SEL_MSIOF2_1),
  817. PINMUX_IPSR_MSEL(IP5_15_12, MSIOF3_SCK_A, SEL_MSIOF3_0),
  818. PINMUX_IPSR_GPSR(IP5_15_12, VI4_DATA16),
  819. PINMUX_IPSR_GPSR(IP5_15_12, VI5_DATA0),
  820. PINMUX_IPSR_GPSR(IP5_19_16, D1),
  821. PINMUX_IPSR_MSEL(IP5_19_16, MSIOF2_SS2_B, SEL_MSIOF2_1),
  822. PINMUX_IPSR_MSEL(IP5_19_16, MSIOF3_SYNC_A, SEL_MSIOF3_0),
  823. PINMUX_IPSR_GPSR(IP5_19_16, VI4_DATA17),
  824. PINMUX_IPSR_GPSR(IP5_19_16, VI5_DATA1),
  825. PINMUX_IPSR_GPSR(IP5_23_20, D2),
  826. PINMUX_IPSR_MSEL(IP5_23_20, MSIOF3_RXD_A, SEL_MSIOF3_0),
  827. PINMUX_IPSR_GPSR(IP5_23_20, VI4_DATA18),
  828. PINMUX_IPSR_GPSR(IP5_23_20, VI5_DATA2),
  829. PINMUX_IPSR_GPSR(IP5_27_24, D3),
  830. PINMUX_IPSR_MSEL(IP5_27_24, MSIOF3_TXD_A, SEL_MSIOF3_0),
  831. PINMUX_IPSR_GPSR(IP5_27_24, VI4_DATA19),
  832. PINMUX_IPSR_GPSR(IP5_27_24, VI5_DATA3),
  833. PINMUX_IPSR_GPSR(IP5_31_28, D4),
  834. PINMUX_IPSR_MSEL(IP5_31_28, MSIOF2_SCK_B, SEL_MSIOF2_1),
  835. PINMUX_IPSR_GPSR(IP5_31_28, VI4_DATA20),
  836. PINMUX_IPSR_GPSR(IP5_31_28, VI5_DATA4),
  837. /* IPSR6 */
  838. PINMUX_IPSR_GPSR(IP6_3_0, D5),
  839. PINMUX_IPSR_MSEL(IP6_3_0, MSIOF2_SYNC_B, SEL_MSIOF2_1),
  840. PINMUX_IPSR_GPSR(IP6_3_0, VI4_DATA21),
  841. PINMUX_IPSR_GPSR(IP6_3_0, VI5_DATA5),
  842. PINMUX_IPSR_GPSR(IP6_7_4, D6),
  843. PINMUX_IPSR_MSEL(IP6_7_4, MSIOF2_RXD_B, SEL_MSIOF2_1),
  844. PINMUX_IPSR_GPSR(IP6_7_4, VI4_DATA22),
  845. PINMUX_IPSR_GPSR(IP6_7_4, VI5_DATA6),
  846. PINMUX_IPSR_GPSR(IP6_11_8, D7),
  847. PINMUX_IPSR_MSEL(IP6_11_8, MSIOF2_TXD_B, SEL_MSIOF2_1),
  848. PINMUX_IPSR_GPSR(IP6_11_8, VI4_DATA23),
  849. PINMUX_IPSR_GPSR(IP6_11_8, VI5_DATA7),
  850. PINMUX_IPSR_GPSR(IP6_15_12, D8),
  851. PINMUX_IPSR_GPSR(IP6_15_12, LCDOUT0),
  852. PINMUX_IPSR_MSEL(IP6_15_12, MSIOF2_SCK_D, SEL_MSIOF2_3),
  853. PINMUX_IPSR_MSEL(IP6_15_12, SCK4_C, SEL_SCIF4_2),
  854. PINMUX_IPSR_MSEL(IP6_15_12, VI4_DATA0_A, SEL_VIN4_0),
  855. PINMUX_IPSR_GPSR(IP6_15_12, DU_DR0),
  856. PINMUX_IPSR_GPSR(IP6_19_16, D9),
  857. PINMUX_IPSR_GPSR(IP6_19_16, LCDOUT1),
  858. PINMUX_IPSR_MSEL(IP6_19_16, MSIOF2_SYNC_D, SEL_MSIOF2_3),
  859. PINMUX_IPSR_MSEL(IP6_19_16, VI4_DATA1_A, SEL_VIN4_0),
  860. PINMUX_IPSR_GPSR(IP6_19_16, DU_DR1),
  861. PINMUX_IPSR_GPSR(IP6_23_20, D10),
  862. PINMUX_IPSR_GPSR(IP6_23_20, LCDOUT2),
  863. PINMUX_IPSR_MSEL(IP6_23_20, MSIOF2_RXD_D, SEL_MSIOF2_3),
  864. PINMUX_IPSR_MSEL(IP6_23_20, HRX3_B, SEL_HSCIF3_1),
  865. PINMUX_IPSR_MSEL(IP6_23_20, VI4_DATA2_A, SEL_VIN4_0),
  866. PINMUX_IPSR_MSEL(IP6_23_20, CTS4_N_C, SEL_SCIF4_2),
  867. PINMUX_IPSR_GPSR(IP6_23_20, DU_DR2),
  868. PINMUX_IPSR_GPSR(IP6_27_24, D11),
  869. PINMUX_IPSR_GPSR(IP6_27_24, LCDOUT3),
  870. PINMUX_IPSR_MSEL(IP6_27_24, MSIOF2_TXD_D, SEL_MSIOF2_3),
  871. PINMUX_IPSR_MSEL(IP6_27_24, HTX3_B, SEL_HSCIF3_1),
  872. PINMUX_IPSR_MSEL(IP6_27_24, VI4_DATA3_A, SEL_VIN4_0),
  873. PINMUX_IPSR_MSEL(IP6_27_24, RTS4_N_TANS_C, SEL_SCIF4_2),
  874. PINMUX_IPSR_GPSR(IP6_27_24, DU_DR3),
  875. PINMUX_IPSR_GPSR(IP6_31_28, D12),
  876. PINMUX_IPSR_GPSR(IP6_31_28, LCDOUT4),
  877. PINMUX_IPSR_MSEL(IP6_31_28, MSIOF2_SS1_D, SEL_MSIOF2_3),
  878. PINMUX_IPSR_MSEL(IP6_31_28, RX4_C, SEL_SCIF4_2),
  879. PINMUX_IPSR_MSEL(IP6_31_28, VI4_DATA4_A, SEL_VIN4_0),
  880. PINMUX_IPSR_GPSR(IP6_31_28, DU_DR4),
  881. /* IPSR7 */
  882. PINMUX_IPSR_GPSR(IP7_3_0, D13),
  883. PINMUX_IPSR_GPSR(IP7_3_0, LCDOUT5),
  884. PINMUX_IPSR_MSEL(IP7_3_0, MSIOF2_SS2_D, SEL_MSIOF2_3),
  885. PINMUX_IPSR_MSEL(IP7_3_0, TX4_C, SEL_SCIF4_2),
  886. PINMUX_IPSR_MSEL(IP7_3_0, VI4_DATA5_A, SEL_VIN4_0),
  887. PINMUX_IPSR_GPSR(IP7_3_0, DU_DR5),
  888. PINMUX_IPSR_GPSR(IP7_7_4, D14),
  889. PINMUX_IPSR_GPSR(IP7_7_4, LCDOUT6),
  890. PINMUX_IPSR_MSEL(IP7_7_4, MSIOF3_SS1_A, SEL_MSIOF3_0),
  891. PINMUX_IPSR_MSEL(IP7_7_4, HRX3_C, SEL_HSCIF3_2),
  892. PINMUX_IPSR_MSEL(IP7_7_4, VI4_DATA6_A, SEL_VIN4_0),
  893. PINMUX_IPSR_GPSR(IP7_7_4, DU_DR6),
  894. PINMUX_IPSR_MSEL(IP7_7_4, SCL6_C, SEL_I2C6_2),
  895. PINMUX_IPSR_GPSR(IP7_11_8, D15),
  896. PINMUX_IPSR_GPSR(IP7_11_8, LCDOUT7),
  897. PINMUX_IPSR_MSEL(IP7_11_8, MSIOF3_SS2_A, SEL_MSIOF3_0),
  898. PINMUX_IPSR_MSEL(IP7_11_8, HTX3_C, SEL_HSCIF3_2),
  899. PINMUX_IPSR_MSEL(IP7_11_8, VI4_DATA7_A, SEL_VIN4_0),
  900. PINMUX_IPSR_GPSR(IP7_11_8, DU_DR7),
  901. PINMUX_IPSR_MSEL(IP7_11_8, SDA6_C, SEL_I2C6_2),
  902. PINMUX_IPSR_GPSR(IP7_15_12, FSCLKST),
  903. PINMUX_IPSR_GPSR(IP7_19_16, SD0_CLK),
  904. PINMUX_IPSR_MSEL(IP7_19_16, MSIOF1_SCK_E, SEL_MSIOF1_4),
  905. PINMUX_IPSR_MSEL(IP7_19_16, STP_OPWM_0_B, SEL_SSP1_0_1),
  906. PINMUX_IPSR_GPSR(IP7_23_20, SD0_CMD),
  907. PINMUX_IPSR_MSEL(IP7_23_20, MSIOF1_SYNC_E, SEL_MSIOF1_4),
  908. PINMUX_IPSR_MSEL(IP7_23_20, STP_IVCXO27_0_B, SEL_SSP1_0_1),
  909. PINMUX_IPSR_GPSR(IP7_27_24, SD0_DAT0),
  910. PINMUX_IPSR_MSEL(IP7_27_24, MSIOF1_RXD_E, SEL_MSIOF1_4),
  911. PINMUX_IPSR_MSEL(IP7_27_24, TS_SCK0_B, SEL_TSIF0_1),
  912. PINMUX_IPSR_MSEL(IP7_27_24, STP_ISCLK_0_B, SEL_SSP1_0_1),
  913. PINMUX_IPSR_GPSR(IP7_31_28, SD0_DAT1),
  914. PINMUX_IPSR_MSEL(IP7_31_28, MSIOF1_TXD_E, SEL_MSIOF1_4),
  915. PINMUX_IPSR_MSEL(IP7_31_28, TS_SPSYNC0_B, SEL_TSIF0_1),
  916. PINMUX_IPSR_MSEL(IP7_31_28, STP_ISSYNC_0_B, SEL_SSP1_0_1),
  917. /* IPSR8 */
  918. PINMUX_IPSR_GPSR(IP8_3_0, SD0_DAT2),
  919. PINMUX_IPSR_MSEL(IP8_3_0, MSIOF1_SS1_E, SEL_MSIOF1_4),
  920. PINMUX_IPSR_MSEL(IP8_3_0, TS_SDAT0_B, SEL_TSIF0_1),
  921. PINMUX_IPSR_MSEL(IP8_3_0, STP_ISD_0_B, SEL_SSP1_0_1),
  922. PINMUX_IPSR_GPSR(IP8_7_4, SD0_DAT3),
  923. PINMUX_IPSR_MSEL(IP8_7_4, MSIOF1_SS2_E, SEL_MSIOF1_4),
  924. PINMUX_IPSR_MSEL(IP8_7_4, TS_SDEN0_B, SEL_TSIF0_1),
  925. PINMUX_IPSR_MSEL(IP8_7_4, STP_ISEN_0_B, SEL_SSP1_0_1),
  926. PINMUX_IPSR_GPSR(IP8_11_8, SD1_CLK),
  927. PINMUX_IPSR_MSEL(IP8_11_8, MSIOF1_SCK_G, SEL_MSIOF1_6),
  928. PINMUX_IPSR_MSEL(IP8_11_8, SIM0_CLK_A, SEL_SIMCARD_0),
  929. PINMUX_IPSR_GPSR(IP8_15_12, SD1_CMD),
  930. PINMUX_IPSR_MSEL(IP8_15_12, MSIOF1_SYNC_G, SEL_MSIOF1_6),
  931. PINMUX_IPSR_MSEL(IP8_15_12, NFCE_N_B, SEL_NDF_1),
  932. PINMUX_IPSR_MSEL(IP8_15_12, SIM0_D_A, SEL_SIMCARD_0),
  933. PINMUX_IPSR_MSEL(IP8_15_12, STP_IVCXO27_1_B, SEL_SSP1_1_1),
  934. PINMUX_IPSR_GPSR(IP8_19_16, SD1_DAT0),
  935. PINMUX_IPSR_GPSR(IP8_19_16, SD2_DAT4),
  936. PINMUX_IPSR_MSEL(IP8_19_16, MSIOF1_RXD_G, SEL_MSIOF1_6),
  937. PINMUX_IPSR_MSEL(IP8_19_16, NFWP_N_B, SEL_NDF_1),
  938. PINMUX_IPSR_MSEL(IP8_19_16, TS_SCK1_B, SEL_TSIF1_1),
  939. PINMUX_IPSR_MSEL(IP8_19_16, STP_ISCLK_1_B, SEL_SSP1_1_1),
  940. PINMUX_IPSR_GPSR(IP8_23_20, SD1_DAT1),
  941. PINMUX_IPSR_GPSR(IP8_23_20, SD2_DAT5),
  942. PINMUX_IPSR_MSEL(IP8_23_20, MSIOF1_TXD_G, SEL_MSIOF1_6),
  943. PINMUX_IPSR_MSEL(IP8_23_20, NFDATA14_B, SEL_NDF_1),
  944. PINMUX_IPSR_MSEL(IP8_23_20, TS_SPSYNC1_B, SEL_TSIF1_1),
  945. PINMUX_IPSR_MSEL(IP8_23_20, STP_ISSYNC_1_B, SEL_SSP1_1_1),
  946. PINMUX_IPSR_GPSR(IP8_27_24, SD1_DAT2),
  947. PINMUX_IPSR_GPSR(IP8_27_24, SD2_DAT6),
  948. PINMUX_IPSR_MSEL(IP8_27_24, MSIOF1_SS1_G, SEL_MSIOF1_6),
  949. PINMUX_IPSR_MSEL(IP8_27_24, NFDATA15_B, SEL_NDF_1),
  950. PINMUX_IPSR_MSEL(IP8_27_24, TS_SDAT1_B, SEL_TSIF1_1),
  951. PINMUX_IPSR_MSEL(IP8_27_24, STP_ISD_1_B, SEL_SSP1_1_1),
  952. PINMUX_IPSR_GPSR(IP8_31_28, SD1_DAT3),
  953. PINMUX_IPSR_GPSR(IP8_31_28, SD2_DAT7),
  954. PINMUX_IPSR_MSEL(IP8_31_28, MSIOF1_SS2_G, SEL_MSIOF1_6),
  955. PINMUX_IPSR_MSEL(IP8_31_28, NFRB_N_B, SEL_NDF_1),
  956. PINMUX_IPSR_MSEL(IP8_31_28, TS_SDEN1_B, SEL_TSIF1_1),
  957. PINMUX_IPSR_MSEL(IP8_31_28, STP_ISEN_1_B, SEL_SSP1_1_1),
  958. /* IPSR9 */
  959. PINMUX_IPSR_GPSR(IP9_3_0, SD2_CLK),
  960. PINMUX_IPSR_GPSR(IP9_3_0, NFDATA8),
  961. PINMUX_IPSR_GPSR(IP9_7_4, SD2_CMD),
  962. PINMUX_IPSR_GPSR(IP9_7_4, NFDATA9),
  963. PINMUX_IPSR_GPSR(IP9_11_8, SD2_DAT0),
  964. PINMUX_IPSR_GPSR(IP9_11_8, NFDATA10),
  965. PINMUX_IPSR_GPSR(IP9_15_12, SD2_DAT1),
  966. PINMUX_IPSR_GPSR(IP9_15_12, NFDATA11),
  967. PINMUX_IPSR_GPSR(IP9_19_16, SD2_DAT2),
  968. PINMUX_IPSR_GPSR(IP9_19_16, NFDATA12),
  969. PINMUX_IPSR_GPSR(IP9_23_20, SD2_DAT3),
  970. PINMUX_IPSR_GPSR(IP9_23_20, NFDATA13),
  971. PINMUX_IPSR_GPSR(IP9_27_24, SD2_DS),
  972. PINMUX_IPSR_GPSR(IP9_27_24, NFALE),
  973. PINMUX_IPSR_GPSR(IP9_31_28, SD3_CLK),
  974. PINMUX_IPSR_GPSR(IP9_31_28, NFWE_N),
  975. /* IPSR10 */
  976. PINMUX_IPSR_GPSR(IP10_3_0, SD3_CMD),
  977. PINMUX_IPSR_GPSR(IP10_3_0, NFRE_N),
  978. PINMUX_IPSR_GPSR(IP10_7_4, SD3_DAT0),
  979. PINMUX_IPSR_GPSR(IP10_7_4, NFDATA0),
  980. PINMUX_IPSR_GPSR(IP10_11_8, SD3_DAT1),
  981. PINMUX_IPSR_GPSR(IP10_11_8, NFDATA1),
  982. PINMUX_IPSR_GPSR(IP10_15_12, SD3_DAT2),
  983. PINMUX_IPSR_GPSR(IP10_15_12, NFDATA2),
  984. PINMUX_IPSR_GPSR(IP10_19_16, SD3_DAT3),
  985. PINMUX_IPSR_GPSR(IP10_19_16, NFDATA3),
  986. PINMUX_IPSR_GPSR(IP10_23_20, SD3_DAT4),
  987. PINMUX_IPSR_MSEL(IP10_23_20, SD2_CD_A, SEL_SDHI2_0),
  988. PINMUX_IPSR_GPSR(IP10_23_20, NFDATA4),
  989. PINMUX_IPSR_GPSR(IP10_27_24, SD3_DAT5),
  990. PINMUX_IPSR_MSEL(IP10_27_24, SD2_WP_A, SEL_SDHI2_0),
  991. PINMUX_IPSR_GPSR(IP10_27_24, NFDATA5),
  992. PINMUX_IPSR_GPSR(IP10_31_28, SD3_DAT6),
  993. PINMUX_IPSR_GPSR(IP10_31_28, SD3_CD),
  994. PINMUX_IPSR_GPSR(IP10_31_28, NFDATA6),
  995. /* IPSR11 */
  996. PINMUX_IPSR_GPSR(IP11_3_0, SD3_DAT7),
  997. PINMUX_IPSR_GPSR(IP11_3_0, SD3_WP),
  998. PINMUX_IPSR_GPSR(IP11_3_0, NFDATA7),
  999. PINMUX_IPSR_GPSR(IP11_7_4, SD3_DS),
  1000. PINMUX_IPSR_GPSR(IP11_7_4, NFCLE),
  1001. PINMUX_IPSR_GPSR(IP11_11_8, SD0_CD),
  1002. PINMUX_IPSR_MSEL(IP11_11_8, SCL2_B, SEL_I2C2_1),
  1003. PINMUX_IPSR_MSEL(IP11_11_8, SIM0_RST_A, SEL_SIMCARD_0),
  1004. PINMUX_IPSR_GPSR(IP11_15_12, SD0_WP),
  1005. PINMUX_IPSR_MSEL(IP11_15_12, SDA2_B, SEL_I2C2_1),
  1006. PINMUX_IPSR_GPSR(IP11_19_16, SD1_CD),
  1007. PINMUX_IPSR_MSEL(IP11_19_16, SIM0_CLK_B, SEL_SIMCARD_1),
  1008. PINMUX_IPSR_GPSR(IP11_23_20, SD1_WP),
  1009. PINMUX_IPSR_MSEL(IP11_23_20, SIM0_D_B, SEL_SIMCARD_1),
  1010. PINMUX_IPSR_GPSR(IP11_27_24, SCK0),
  1011. PINMUX_IPSR_MSEL(IP11_27_24, HSCK1_B, SEL_HSCIF1_1),
  1012. PINMUX_IPSR_MSEL(IP11_27_24, MSIOF1_SS2_B, SEL_MSIOF1_1),
  1013. PINMUX_IPSR_MSEL(IP11_27_24, AUDIO_CLKC_B, SEL_ADG_C_1),
  1014. PINMUX_IPSR_MSEL(IP11_27_24, SDA2_A, SEL_I2C2_0),
  1015. PINMUX_IPSR_MSEL(IP11_27_24, SIM0_RST_B, SEL_SIMCARD_1),
  1016. PINMUX_IPSR_MSEL(IP11_27_24, STP_OPWM_0_C, SEL_SSP1_0_2),
  1017. PINMUX_IPSR_MSEL(IP11_27_24, RIF0_CLK_B, SEL_DRIF0_1),
  1018. PINMUX_IPSR_GPSR(IP11_27_24, ADICHS2),
  1019. PINMUX_IPSR_MSEL(IP11_27_24, SCK5_B, SEL_SCIF5_1),
  1020. PINMUX_IPSR_GPSR(IP11_31_28, RX0),
  1021. PINMUX_IPSR_MSEL(IP11_31_28, HRX1_B, SEL_HSCIF1_1),
  1022. PINMUX_IPSR_MSEL(IP11_31_28, TS_SCK0_C, SEL_TSIF0_2),
  1023. PINMUX_IPSR_MSEL(IP11_31_28, STP_ISCLK_0_C, SEL_SSP1_0_2),
  1024. PINMUX_IPSR_MSEL(IP11_31_28, RIF0_D0_B, SEL_DRIF0_1),
  1025. /* IPSR12 */
  1026. PINMUX_IPSR_GPSR(IP12_3_0, TX0),
  1027. PINMUX_IPSR_MSEL(IP12_3_0, HTX1_B, SEL_HSCIF1_1),
  1028. PINMUX_IPSR_MSEL(IP12_3_0, TS_SPSYNC0_C, SEL_TSIF0_2),
  1029. PINMUX_IPSR_MSEL(IP12_3_0, STP_ISSYNC_0_C, SEL_SSP1_0_2),
  1030. PINMUX_IPSR_MSEL(IP12_3_0, RIF0_D1_B, SEL_DRIF0_1),
  1031. PINMUX_IPSR_GPSR(IP12_7_4, CTS0_N),
  1032. PINMUX_IPSR_MSEL(IP12_7_4, HCTS1_N_B, SEL_HSCIF1_1),
  1033. PINMUX_IPSR_MSEL(IP12_7_4, MSIOF1_SYNC_B, SEL_MSIOF1_1),
  1034. PINMUX_IPSR_MSEL(IP12_7_4, TS_SPSYNC1_C, SEL_TSIF1_2),
  1035. PINMUX_IPSR_MSEL(IP12_7_4, STP_ISSYNC_1_C, SEL_SSP1_1_2),
  1036. PINMUX_IPSR_MSEL(IP12_7_4, RIF1_SYNC_B, SEL_DRIF1_1),
  1037. PINMUX_IPSR_GPSR(IP12_7_4, AUDIO_CLKOUT_C),
  1038. PINMUX_IPSR_GPSR(IP12_7_4, ADICS_SAMP),
  1039. PINMUX_IPSR_GPSR(IP12_11_8, RTS0_N_TANS),
  1040. PINMUX_IPSR_MSEL(IP12_11_8, HRTS1_N_B, SEL_HSCIF1_1),
  1041. PINMUX_IPSR_MSEL(IP12_11_8, MSIOF1_SS1_B, SEL_MSIOF1_1),
  1042. PINMUX_IPSR_MSEL(IP12_11_8, AUDIO_CLKA_B, SEL_ADG_A_1),
  1043. PINMUX_IPSR_MSEL(IP12_11_8, SCL2_A, SEL_I2C2_0),
  1044. PINMUX_IPSR_MSEL(IP12_11_8, STP_IVCXO27_1_C, SEL_SSP1_1_2),
  1045. PINMUX_IPSR_MSEL(IP12_11_8, RIF0_SYNC_B, SEL_DRIF0_1),
  1046. PINMUX_IPSR_MSEL(IP12_11_8, FSO_TOE_A, SEL_FSO_0),
  1047. PINMUX_IPSR_GPSR(IP12_11_8, ADICHS1),
  1048. PINMUX_IPSR_MSEL(IP12_15_12, RX1_A, SEL_SCIF1_0),
  1049. PINMUX_IPSR_MSEL(IP12_15_12, HRX1_A, SEL_HSCIF1_0),
  1050. PINMUX_IPSR_MSEL(IP12_15_12, TS_SDAT0_C, SEL_TSIF0_2),
  1051. PINMUX_IPSR_MSEL(IP12_15_12, STP_ISD_0_C, SEL_SSP1_0_2),
  1052. PINMUX_IPSR_MSEL(IP12_15_12, RIF1_CLK_C, SEL_DRIF1_2),
  1053. PINMUX_IPSR_MSEL(IP12_19_16, TX1_A, SEL_SCIF1_0),
  1054. PINMUX_IPSR_MSEL(IP12_19_16, HTX1_A, SEL_HSCIF1_0),
  1055. PINMUX_IPSR_MSEL(IP12_19_16, TS_SDEN0_C, SEL_TSIF0_2),
  1056. PINMUX_IPSR_MSEL(IP12_19_16, STP_ISEN_0_C, SEL_SSP1_0_2),
  1057. PINMUX_IPSR_MSEL(IP12_19_16, RIF1_D0_C, SEL_DRIF1_2),
  1058. PINMUX_IPSR_GPSR(IP12_23_20, CTS1_N),
  1059. PINMUX_IPSR_MSEL(IP12_23_20, HCTS1_N_A, SEL_HSCIF1_0),
  1060. PINMUX_IPSR_MSEL(IP12_23_20, MSIOF1_RXD_B, SEL_MSIOF1_1),
  1061. PINMUX_IPSR_MSEL(IP12_23_20, TS_SDEN1_C, SEL_TSIF1_2),
  1062. PINMUX_IPSR_MSEL(IP12_23_20, STP_ISEN_1_C, SEL_SSP1_1_2),
  1063. PINMUX_IPSR_MSEL(IP12_23_20, RIF1_D0_B, SEL_DRIF1_1),
  1064. PINMUX_IPSR_GPSR(IP12_23_20, ADIDATA),
  1065. PINMUX_IPSR_GPSR(IP12_27_24, RTS1_N_TANS),
  1066. PINMUX_IPSR_MSEL(IP12_27_24, HRTS1_N_A, SEL_HSCIF1_0),
  1067. PINMUX_IPSR_MSEL(IP12_27_24, MSIOF1_TXD_B, SEL_MSIOF1_1),
  1068. PINMUX_IPSR_MSEL(IP12_27_24, TS_SDAT1_C, SEL_TSIF1_2),
  1069. PINMUX_IPSR_MSEL(IP12_27_24, STP_ISD_1_C, SEL_SSP1_1_2),
  1070. PINMUX_IPSR_MSEL(IP12_27_24, RIF1_D1_B, SEL_DRIF1_1),
  1071. PINMUX_IPSR_GPSR(IP12_27_24, ADICHS0),
  1072. PINMUX_IPSR_GPSR(IP12_31_28, SCK2),
  1073. PINMUX_IPSR_MSEL(IP12_31_28, SCIF_CLK_B, SEL_SCIF1_1),
  1074. PINMUX_IPSR_MSEL(IP12_31_28, MSIOF1_SCK_B, SEL_MSIOF1_1),
  1075. PINMUX_IPSR_MSEL(IP12_31_28, TS_SCK1_C, SEL_TSIF1_2),
  1076. PINMUX_IPSR_MSEL(IP12_31_28, STP_ISCLK_1_C, SEL_SSP1_1_2),
  1077. PINMUX_IPSR_MSEL(IP12_31_28, RIF1_CLK_B, SEL_DRIF1_1),
  1078. PINMUX_IPSR_GPSR(IP12_31_28, ADICLK),
  1079. /* IPSR13 */
  1080. PINMUX_IPSR_MSEL(IP13_3_0, TX2_A, SEL_SCIF2_0),
  1081. PINMUX_IPSR_MSEL(IP13_3_0, SD2_CD_B, SEL_SDHI2_1),
  1082. PINMUX_IPSR_MSEL(IP13_3_0, SCL1_A, SEL_I2C1_0),
  1083. PINMUX_IPSR_MSEL(IP13_3_0, FMCLK_A, SEL_FM_0),
  1084. PINMUX_IPSR_MSEL(IP13_3_0, RIF1_D1_C, SEL_DRIF1_2),
  1085. PINMUX_IPSR_MSEL(IP13_3_0, FSO_CFE_0_B, SEL_FSO_1),
  1086. PINMUX_IPSR_MSEL(IP13_7_4, RX2_A, SEL_SCIF2_0),
  1087. PINMUX_IPSR_MSEL(IP13_7_4, SD2_WP_B, SEL_SDHI2_1),
  1088. PINMUX_IPSR_MSEL(IP13_7_4, SDA1_A, SEL_I2C1_0),
  1089. PINMUX_IPSR_MSEL(IP13_7_4, FMIN_A, SEL_FM_0),
  1090. PINMUX_IPSR_MSEL(IP13_7_4, RIF1_SYNC_C, SEL_DRIF1_2),
  1091. PINMUX_IPSR_MSEL(IP13_7_4, FSO_CFE_1_B, SEL_FSO_1),
  1092. PINMUX_IPSR_GPSR(IP13_11_8, HSCK0),
  1093. PINMUX_IPSR_MSEL(IP13_11_8, MSIOF1_SCK_D, SEL_MSIOF1_3),
  1094. PINMUX_IPSR_MSEL(IP13_11_8, AUDIO_CLKB_A, SEL_ADG_B_0),
  1095. PINMUX_IPSR_MSEL(IP13_11_8, SSI_SDATA1_B, SEL_SSI_1),
  1096. PINMUX_IPSR_MSEL(IP13_11_8, TS_SCK0_D, SEL_TSIF0_3),
  1097. PINMUX_IPSR_MSEL(IP13_11_8, STP_ISCLK_0_D, SEL_SSP1_0_3),
  1098. PINMUX_IPSR_MSEL(IP13_11_8, RIF0_CLK_C, SEL_DRIF0_2),
  1099. PINMUX_IPSR_MSEL(IP13_11_8, RX5_B, SEL_SCIF5_1),
  1100. PINMUX_IPSR_GPSR(IP13_15_12, HRX0),
  1101. PINMUX_IPSR_MSEL(IP13_15_12, MSIOF1_RXD_D, SEL_MSIOF1_3),
  1102. PINMUX_IPSR_MSEL(IP13_15_12, SSI_SDATA2_B, SEL_SSI_1),
  1103. PINMUX_IPSR_MSEL(IP13_15_12, TS_SDEN0_D, SEL_TSIF0_3),
  1104. PINMUX_IPSR_MSEL(IP13_15_12, STP_ISEN_0_D, SEL_SSP1_0_3),
  1105. PINMUX_IPSR_MSEL(IP13_15_12, RIF0_D0_C, SEL_DRIF0_2),
  1106. PINMUX_IPSR_GPSR(IP13_19_16, HTX0),
  1107. PINMUX_IPSR_MSEL(IP13_19_16, MSIOF1_TXD_D, SEL_MSIOF1_3),
  1108. PINMUX_IPSR_MSEL(IP13_19_16, SSI_SDATA9_B, SEL_SSI_1),
  1109. PINMUX_IPSR_MSEL(IP13_19_16, TS_SDAT0_D, SEL_TSIF0_3),
  1110. PINMUX_IPSR_MSEL(IP13_19_16, STP_ISD_0_D, SEL_SSP1_0_3),
  1111. PINMUX_IPSR_MSEL(IP13_19_16, RIF0_D1_C, SEL_DRIF0_2),
  1112. PINMUX_IPSR_GPSR(IP13_23_20, HCTS0_N),
  1113. PINMUX_IPSR_MSEL(IP13_23_20, RX2_B, SEL_SCIF2_1),
  1114. PINMUX_IPSR_MSEL(IP13_23_20, MSIOF1_SYNC_D, SEL_MSIOF1_3),
  1115. PINMUX_IPSR_MSEL(IP13_23_20, SSI_SCK9_A, SEL_SSI_0),
  1116. PINMUX_IPSR_MSEL(IP13_23_20, TS_SPSYNC0_D, SEL_TSIF0_3),
  1117. PINMUX_IPSR_MSEL(IP13_23_20, STP_ISSYNC_0_D, SEL_SSP1_0_3),
  1118. PINMUX_IPSR_MSEL(IP13_23_20, RIF0_SYNC_C, SEL_DRIF0_2),
  1119. PINMUX_IPSR_GPSR(IP13_23_20, AUDIO_CLKOUT1_A),
  1120. PINMUX_IPSR_GPSR(IP13_27_24, HRTS0_N),
  1121. PINMUX_IPSR_MSEL(IP13_27_24, TX2_B, SEL_SCIF2_1),
  1122. PINMUX_IPSR_MSEL(IP13_27_24, MSIOF1_SS1_D, SEL_MSIOF1_3),
  1123. PINMUX_IPSR_MSEL(IP13_27_24, SSI_WS9_A, SEL_SSI_0),
  1124. PINMUX_IPSR_MSEL(IP13_27_24, STP_IVCXO27_0_D, SEL_SSP1_0_3),
  1125. PINMUX_IPSR_MSEL(IP13_27_24, BPFCLK_A, SEL_FM_0),
  1126. PINMUX_IPSR_GPSR(IP13_27_24, AUDIO_CLKOUT2_A),
  1127. PINMUX_IPSR_GPSR(IP13_31_28, MSIOF0_SYNC),
  1128. PINMUX_IPSR_GPSR(IP13_31_28, AUDIO_CLKOUT_A),
  1129. PINMUX_IPSR_MSEL(IP13_31_28, TX5_B, SEL_SCIF5_1),
  1130. PINMUX_IPSR_MSEL(IP13_31_28, BPFCLK_D, SEL_FM_3),
  1131. /* IPSR14 */
  1132. PINMUX_IPSR_GPSR(IP14_3_0, MSIOF0_SS1),
  1133. PINMUX_IPSR_MSEL(IP14_3_0, RX5_A, SEL_SCIF5_0),
  1134. PINMUX_IPSR_MSEL(IP14_3_0, NFWP_N_A, SEL_NDF_0),
  1135. PINMUX_IPSR_MSEL(IP14_3_0, AUDIO_CLKA_C, SEL_ADG_A_2),
  1136. PINMUX_IPSR_MSEL(IP14_3_0, SSI_SCK2_A, SEL_SSI_0),
  1137. PINMUX_IPSR_MSEL(IP14_3_0, STP_IVCXO27_0_C, SEL_SSP1_0_2),
  1138. PINMUX_IPSR_GPSR(IP14_3_0, AUDIO_CLKOUT3_A),
  1139. PINMUX_IPSR_MSEL(IP14_3_0, TCLK1_B, SEL_TIMER_TMU_1),
  1140. PINMUX_IPSR_GPSR(IP14_7_4, MSIOF0_SS2),
  1141. PINMUX_IPSR_MSEL(IP14_7_4, TX5_A, SEL_SCIF5_0),
  1142. PINMUX_IPSR_MSEL(IP14_7_4, MSIOF1_SS2_D, SEL_MSIOF1_3),
  1143. PINMUX_IPSR_MSEL(IP14_7_4, AUDIO_CLKC_A, SEL_ADG_C_0),
  1144. PINMUX_IPSR_MSEL(IP14_7_4, SSI_WS2_A, SEL_SSI_0),
  1145. PINMUX_IPSR_MSEL(IP14_7_4, STP_OPWM_0_D, SEL_SSP1_0_3),
  1146. PINMUX_IPSR_GPSR(IP14_7_4, AUDIO_CLKOUT_D),
  1147. PINMUX_IPSR_MSEL(IP14_7_4, SPEEDIN_B, SEL_SPEED_PULSE_1),
  1148. PINMUX_IPSR_GPSR(IP14_11_8, MLB_CLK),
  1149. PINMUX_IPSR_MSEL(IP14_11_8, MSIOF1_SCK_F, SEL_MSIOF1_5),
  1150. PINMUX_IPSR_MSEL(IP14_11_8, SCL1_B, SEL_I2C1_1),
  1151. PINMUX_IPSR_GPSR(IP14_15_12, MLB_SIG),
  1152. PINMUX_IPSR_MSEL(IP14_15_12, RX1_B, SEL_SCIF1_1),
  1153. PINMUX_IPSR_MSEL(IP14_15_12, MSIOF1_SYNC_F, SEL_MSIOF1_5),
  1154. PINMUX_IPSR_MSEL(IP14_15_12, SDA1_B, SEL_I2C1_1),
  1155. PINMUX_IPSR_GPSR(IP14_19_16, MLB_DAT),
  1156. PINMUX_IPSR_MSEL(IP14_19_16, TX1_B, SEL_SCIF1_1),
  1157. PINMUX_IPSR_MSEL(IP14_19_16, MSIOF1_RXD_F, SEL_MSIOF1_5),
  1158. PINMUX_IPSR_GPSR(IP14_23_20, SSI_SCK0129),
  1159. PINMUX_IPSR_MSEL(IP14_23_20, MSIOF1_TXD_F, SEL_MSIOF1_5),
  1160. PINMUX_IPSR_GPSR(IP14_27_24, SSI_WS0129),
  1161. PINMUX_IPSR_MSEL(IP14_27_24, MSIOF1_SS1_F, SEL_MSIOF1_5),
  1162. PINMUX_IPSR_GPSR(IP14_31_28, SSI_SDATA0),
  1163. PINMUX_IPSR_MSEL(IP14_31_28, MSIOF1_SS2_F, SEL_MSIOF1_5),
  1164. /* IPSR15 */
  1165. PINMUX_IPSR_MSEL(IP15_3_0, SSI_SDATA1_A, SEL_SSI_0),
  1166. PINMUX_IPSR_MSEL(IP15_7_4, SSI_SDATA2_A, SEL_SSI_0),
  1167. PINMUX_IPSR_MSEL(IP15_7_4, SSI_SCK1_B, SEL_SSI_1),
  1168. PINMUX_IPSR_GPSR(IP15_11_8, SSI_SCK34),
  1169. PINMUX_IPSR_MSEL(IP15_11_8, MSIOF1_SS1_A, SEL_MSIOF1_0),
  1170. PINMUX_IPSR_MSEL(IP15_11_8, STP_OPWM_0_A, SEL_SSP1_0_0),
  1171. PINMUX_IPSR_GPSR(IP15_15_12, SSI_WS34),
  1172. PINMUX_IPSR_MSEL(IP15_15_12, HCTS2_N_A, SEL_HSCIF2_0),
  1173. PINMUX_IPSR_MSEL(IP15_15_12, MSIOF1_SS2_A, SEL_MSIOF1_0),
  1174. PINMUX_IPSR_MSEL(IP15_15_12, STP_IVCXO27_0_A, SEL_SSP1_0_0),
  1175. PINMUX_IPSR_GPSR(IP15_19_16, SSI_SDATA3),
  1176. PINMUX_IPSR_MSEL(IP15_19_16, HRTS2_N_A, SEL_HSCIF2_0),
  1177. PINMUX_IPSR_MSEL(IP15_19_16, MSIOF1_TXD_A, SEL_MSIOF1_0),
  1178. PINMUX_IPSR_MSEL(IP15_19_16, TS_SCK0_A, SEL_TSIF0_0),
  1179. PINMUX_IPSR_MSEL(IP15_19_16, STP_ISCLK_0_A, SEL_SSP1_0_0),
  1180. PINMUX_IPSR_MSEL(IP15_19_16, RIF0_D1_A, SEL_DRIF0_0),
  1181. PINMUX_IPSR_MSEL(IP15_19_16, RIF2_D0_A, SEL_DRIF2_0),
  1182. PINMUX_IPSR_GPSR(IP15_23_20, SSI_SCK4),
  1183. PINMUX_IPSR_MSEL(IP15_23_20, HRX2_A, SEL_HSCIF2_0),
  1184. PINMUX_IPSR_MSEL(IP15_23_20, MSIOF1_SCK_A, SEL_MSIOF1_0),
  1185. PINMUX_IPSR_MSEL(IP15_23_20, TS_SDAT0_A, SEL_TSIF0_0),
  1186. PINMUX_IPSR_MSEL(IP15_23_20, STP_ISD_0_A, SEL_SSP1_0_0),
  1187. PINMUX_IPSR_MSEL(IP15_23_20, RIF0_CLK_A, SEL_DRIF0_0),
  1188. PINMUX_IPSR_MSEL(IP15_23_20, RIF2_CLK_A, SEL_DRIF2_0),
  1189. PINMUX_IPSR_GPSR(IP15_27_24, SSI_WS4),
  1190. PINMUX_IPSR_MSEL(IP15_27_24, HTX2_A, SEL_HSCIF2_0),
  1191. PINMUX_IPSR_MSEL(IP15_27_24, MSIOF1_SYNC_A, SEL_MSIOF1_0),
  1192. PINMUX_IPSR_MSEL(IP15_27_24, TS_SDEN0_A, SEL_TSIF0_0),
  1193. PINMUX_IPSR_MSEL(IP15_27_24, STP_ISEN_0_A, SEL_SSP1_0_0),
  1194. PINMUX_IPSR_MSEL(IP15_27_24, RIF0_SYNC_A, SEL_DRIF0_0),
  1195. PINMUX_IPSR_MSEL(IP15_27_24, RIF2_SYNC_A, SEL_DRIF2_0),
  1196. PINMUX_IPSR_GPSR(IP15_31_28, SSI_SDATA4),
  1197. PINMUX_IPSR_MSEL(IP15_31_28, HSCK2_A, SEL_HSCIF2_0),
  1198. PINMUX_IPSR_MSEL(IP15_31_28, MSIOF1_RXD_A, SEL_MSIOF1_0),
  1199. PINMUX_IPSR_MSEL(IP15_31_28, TS_SPSYNC0_A, SEL_TSIF0_0),
  1200. PINMUX_IPSR_MSEL(IP15_31_28, STP_ISSYNC_0_A, SEL_SSP1_0_0),
  1201. PINMUX_IPSR_MSEL(IP15_31_28, RIF0_D0_A, SEL_DRIF0_0),
  1202. PINMUX_IPSR_MSEL(IP15_31_28, RIF2_D1_A, SEL_DRIF2_0),
  1203. /* IPSR16 */
  1204. PINMUX_IPSR_GPSR(IP16_3_0, SSI_SCK6),
  1205. PINMUX_IPSR_MSEL(IP16_3_0, SIM0_RST_D, SEL_SIMCARD_3),
  1206. PINMUX_IPSR_GPSR(IP16_7_4, SSI_WS6),
  1207. PINMUX_IPSR_MSEL(IP16_7_4, SIM0_D_D, SEL_SIMCARD_3),
  1208. PINMUX_IPSR_GPSR(IP16_11_8, SSI_SDATA6),
  1209. PINMUX_IPSR_MSEL(IP16_11_8, SIM0_CLK_D, SEL_SIMCARD_3),
  1210. PINMUX_IPSR_GPSR(IP16_15_12, SSI_SCK78),
  1211. PINMUX_IPSR_MSEL(IP16_15_12, HRX2_B, SEL_HSCIF2_1),
  1212. PINMUX_IPSR_MSEL(IP16_15_12, MSIOF1_SCK_C, SEL_MSIOF1_2),
  1213. PINMUX_IPSR_MSEL(IP16_15_12, TS_SCK1_A, SEL_TSIF1_0),
  1214. PINMUX_IPSR_MSEL(IP16_15_12, STP_ISCLK_1_A, SEL_SSP1_1_0),
  1215. PINMUX_IPSR_MSEL(IP16_15_12, RIF1_CLK_A, SEL_DRIF1_0),
  1216. PINMUX_IPSR_MSEL(IP16_15_12, RIF3_CLK_A, SEL_DRIF3_0),
  1217. PINMUX_IPSR_GPSR(IP16_19_16, SSI_WS78),
  1218. PINMUX_IPSR_MSEL(IP16_19_16, HTX2_B, SEL_HSCIF2_1),
  1219. PINMUX_IPSR_MSEL(IP16_19_16, MSIOF1_SYNC_C, SEL_MSIOF1_2),
  1220. PINMUX_IPSR_MSEL(IP16_19_16, TS_SDAT1_A, SEL_TSIF1_0),
  1221. PINMUX_IPSR_MSEL(IP16_19_16, STP_ISD_1_A, SEL_SSP1_1_0),
  1222. PINMUX_IPSR_MSEL(IP16_19_16, RIF1_SYNC_A, SEL_DRIF1_0),
  1223. PINMUX_IPSR_MSEL(IP16_19_16, RIF3_SYNC_A, SEL_DRIF3_0),
  1224. PINMUX_IPSR_GPSR(IP16_23_20, SSI_SDATA7),
  1225. PINMUX_IPSR_MSEL(IP16_23_20, HCTS2_N_B, SEL_HSCIF2_1),
  1226. PINMUX_IPSR_MSEL(IP16_23_20, MSIOF1_RXD_C, SEL_MSIOF1_2),
  1227. PINMUX_IPSR_MSEL(IP16_23_20, TS_SDEN1_A, SEL_TSIF1_0),
  1228. PINMUX_IPSR_MSEL(IP16_23_20, STP_ISEN_1_A, SEL_SSP1_1_0),
  1229. PINMUX_IPSR_MSEL(IP16_23_20, RIF1_D0_A, SEL_DRIF1_0),
  1230. PINMUX_IPSR_MSEL(IP16_23_20, RIF3_D0_A, SEL_DRIF3_0),
  1231. PINMUX_IPSR_MSEL(IP16_23_20, TCLK2_A, SEL_TIMER_TMU_0),
  1232. PINMUX_IPSR_GPSR(IP16_27_24, SSI_SDATA8),
  1233. PINMUX_IPSR_MSEL(IP16_27_24, HRTS2_N_B, SEL_HSCIF2_1),
  1234. PINMUX_IPSR_MSEL(IP16_27_24, MSIOF1_TXD_C, SEL_MSIOF1_2),
  1235. PINMUX_IPSR_MSEL(IP16_27_24, TS_SPSYNC1_A, SEL_TSIF1_0),
  1236. PINMUX_IPSR_MSEL(IP16_27_24, STP_ISSYNC_1_A, SEL_SSP1_1_0),
  1237. PINMUX_IPSR_MSEL(IP16_27_24, RIF1_D1_A, SEL_DRIF1_0),
  1238. PINMUX_IPSR_MSEL(IP16_27_24, RIF3_D1_A, SEL_DRIF3_0),
  1239. PINMUX_IPSR_MSEL(IP16_31_28, SSI_SDATA9_A, SEL_SSI_0),
  1240. PINMUX_IPSR_MSEL(IP16_31_28, HSCK2_B, SEL_HSCIF2_1),
  1241. PINMUX_IPSR_MSEL(IP16_31_28, MSIOF1_SS1_C, SEL_MSIOF1_2),
  1242. PINMUX_IPSR_MSEL(IP16_31_28, HSCK1_A, SEL_HSCIF1_0),
  1243. PINMUX_IPSR_MSEL(IP16_31_28, SSI_WS1_B, SEL_SSI_1),
  1244. PINMUX_IPSR_GPSR(IP16_31_28, SCK1),
  1245. PINMUX_IPSR_MSEL(IP16_31_28, STP_IVCXO27_1_A, SEL_SSP1_1_0),
  1246. PINMUX_IPSR_GPSR(IP16_31_28, SCK5_A),
  1247. /* IPSR17 */
  1248. PINMUX_IPSR_MSEL(IP17_3_0, AUDIO_CLKA_A, SEL_ADG_A_0),
  1249. PINMUX_IPSR_GPSR(IP17_3_0, CC5_OSCOUT),
  1250. PINMUX_IPSR_MSEL(IP17_7_4, AUDIO_CLKB_B, SEL_ADG_B_1),
  1251. PINMUX_IPSR_MSEL(IP17_7_4, SCIF_CLK_A, SEL_SCIF1_0),
  1252. PINMUX_IPSR_MSEL(IP17_7_4, STP_IVCXO27_1_D, SEL_SSP1_1_3),
  1253. PINMUX_IPSR_MSEL(IP17_7_4, REMOCON_A, SEL_REMOCON_0),
  1254. PINMUX_IPSR_MSEL(IP17_7_4, TCLK1_A, SEL_TIMER_TMU_0),
  1255. PINMUX_IPSR_GPSR(IP17_11_8, USB0_PWEN),
  1256. PINMUX_IPSR_MSEL(IP17_11_8, SIM0_RST_C, SEL_SIMCARD_2),
  1257. PINMUX_IPSR_MSEL(IP17_11_8, TS_SCK1_D, SEL_TSIF1_3),
  1258. PINMUX_IPSR_MSEL(IP17_11_8, STP_ISCLK_1_D, SEL_SSP1_1_3),
  1259. PINMUX_IPSR_MSEL(IP17_11_8, BPFCLK_B, SEL_FM_1),
  1260. PINMUX_IPSR_MSEL(IP17_11_8, RIF3_CLK_B, SEL_DRIF3_1),
  1261. PINMUX_IPSR_MSEL(IP17_11_8, HSCK2_C, SEL_HSCIF2_2),
  1262. PINMUX_IPSR_GPSR(IP17_15_12, USB0_OVC),
  1263. PINMUX_IPSR_MSEL(IP17_15_12, SIM0_D_C, SEL_SIMCARD_2),
  1264. PINMUX_IPSR_MSEL(IP17_15_12, TS_SDAT1_D, SEL_TSIF1_3),
  1265. PINMUX_IPSR_MSEL(IP17_15_12, STP_ISD_1_D, SEL_SSP1_1_3),
  1266. PINMUX_IPSR_MSEL(IP17_15_12, RIF3_SYNC_B, SEL_DRIF3_1),
  1267. PINMUX_IPSR_MSEL(IP17_15_12, HRX2_C, SEL_HSCIF2_2),
  1268. PINMUX_IPSR_GPSR(IP17_19_16, USB1_PWEN),
  1269. PINMUX_IPSR_MSEL(IP17_19_16, SIM0_CLK_C, SEL_SIMCARD_2),
  1270. PINMUX_IPSR_MSEL(IP17_19_16, SSI_SCK1_A, SEL_SSI_0),
  1271. PINMUX_IPSR_MSEL(IP17_19_16, TS_SCK0_E, SEL_TSIF0_4),
  1272. PINMUX_IPSR_MSEL(IP17_19_16, STP_ISCLK_0_E, SEL_SSP1_0_4),
  1273. PINMUX_IPSR_MSEL(IP17_19_16, FMCLK_B, SEL_FM_1),
  1274. PINMUX_IPSR_MSEL(IP17_19_16, RIF2_CLK_B, SEL_DRIF2_1),
  1275. PINMUX_IPSR_MSEL(IP17_19_16, SPEEDIN_A, SEL_SPEED_PULSE_0),
  1276. PINMUX_IPSR_MSEL(IP17_19_16, HTX2_C, SEL_HSCIF2_2),
  1277. PINMUX_IPSR_GPSR(IP17_23_20, USB1_OVC),
  1278. PINMUX_IPSR_MSEL(IP17_23_20, MSIOF1_SS2_C, SEL_MSIOF1_2),
  1279. PINMUX_IPSR_MSEL(IP17_23_20, SSI_WS1_A, SEL_SSI_0),
  1280. PINMUX_IPSR_MSEL(IP17_23_20, TS_SDAT0_E, SEL_TSIF0_4),
  1281. PINMUX_IPSR_MSEL(IP17_23_20, STP_ISD_0_E, SEL_SSP1_0_4),
  1282. PINMUX_IPSR_MSEL(IP17_23_20, FMIN_B, SEL_FM_1),
  1283. PINMUX_IPSR_MSEL(IP17_23_20, RIF2_SYNC_B, SEL_DRIF2_1),
  1284. PINMUX_IPSR_MSEL(IP17_23_20, REMOCON_B, SEL_REMOCON_1),
  1285. PINMUX_IPSR_MSEL(IP17_23_20, HCTS2_N_C, SEL_HSCIF2_2),
  1286. PINMUX_IPSR_GPSR(IP17_27_24, USB30_PWEN),
  1287. PINMUX_IPSR_GPSR(IP17_27_24, AUDIO_CLKOUT_B),
  1288. PINMUX_IPSR_MSEL(IP17_27_24, SSI_SCK2_B, SEL_SSI_1),
  1289. PINMUX_IPSR_MSEL(IP17_27_24, TS_SDEN1_D, SEL_TSIF1_3),
  1290. PINMUX_IPSR_MSEL(IP17_27_24, STP_ISEN_1_D, SEL_SSP1_1_2),
  1291. PINMUX_IPSR_MSEL(IP17_27_24, STP_OPWM_0_E, SEL_SSP1_0_4),
  1292. PINMUX_IPSR_MSEL(IP17_27_24, RIF3_D0_B, SEL_DRIF3_1),
  1293. PINMUX_IPSR_MSEL(IP17_27_24, TCLK2_B, SEL_TIMER_TMU_1),
  1294. PINMUX_IPSR_GPSR(IP17_27_24, TPU0TO0),
  1295. PINMUX_IPSR_MSEL(IP17_27_24, BPFCLK_C, SEL_FM_2),
  1296. PINMUX_IPSR_MSEL(IP17_27_24, HRTS2_N_C, SEL_HSCIF2_2),
  1297. PINMUX_IPSR_GPSR(IP17_31_28, USB30_OVC),
  1298. PINMUX_IPSR_GPSR(IP17_31_28, AUDIO_CLKOUT1_B),
  1299. PINMUX_IPSR_MSEL(IP17_31_28, SSI_WS2_B, SEL_SSI_1),
  1300. PINMUX_IPSR_MSEL(IP17_31_28, TS_SPSYNC1_D, SEL_TSIF1_3),
  1301. PINMUX_IPSR_MSEL(IP17_31_28, STP_ISSYNC_1_D, SEL_SSP1_1_3),
  1302. PINMUX_IPSR_MSEL(IP17_31_28, STP_IVCXO27_0_E, SEL_SSP1_0_4),
  1303. PINMUX_IPSR_MSEL(IP17_31_28, RIF3_D1_B, SEL_DRIF3_1),
  1304. PINMUX_IPSR_MSEL(IP17_31_28, FSO_TOE_B, SEL_FSO_1),
  1305. PINMUX_IPSR_GPSR(IP17_31_28, TPU0TO1),
  1306. /* IPSR18 */
  1307. PINMUX_IPSR_GPSR(IP18_3_0, GP6_30),
  1308. PINMUX_IPSR_GPSR(IP18_3_0, AUDIO_CLKOUT2_B),
  1309. PINMUX_IPSR_MSEL(IP18_3_0, SSI_SCK9_B, SEL_SSI_1),
  1310. PINMUX_IPSR_MSEL(IP18_3_0, TS_SDEN0_E, SEL_TSIF0_4),
  1311. PINMUX_IPSR_MSEL(IP18_3_0, STP_ISEN_0_E, SEL_SSP1_0_4),
  1312. PINMUX_IPSR_MSEL(IP18_3_0, RIF2_D0_B, SEL_DRIF2_1),
  1313. PINMUX_IPSR_GPSR(IP18_3_0, TPU0TO2),
  1314. PINMUX_IPSR_MSEL(IP18_3_0, FSO_CFE_0_A, SEL_FSO_0),
  1315. PINMUX_IPSR_MSEL(IP18_3_0, FMCLK_C, SEL_FM_2),
  1316. PINMUX_IPSR_MSEL(IP18_3_0, FMCLK_D, SEL_FM_3),
  1317. PINMUX_IPSR_GPSR(IP18_7_4, GP6_31),
  1318. PINMUX_IPSR_GPSR(IP18_7_4, AUDIO_CLKOUT3_B),
  1319. PINMUX_IPSR_MSEL(IP18_7_4, SSI_WS9_B, SEL_SSI_1),
  1320. PINMUX_IPSR_MSEL(IP18_7_4, TS_SPSYNC0_E, SEL_TSIF0_4),
  1321. PINMUX_IPSR_MSEL(IP18_7_4, STP_ISSYNC_0_E, SEL_SSP1_0_4),
  1322. PINMUX_IPSR_MSEL(IP18_7_4, RIF2_D1_B, SEL_DRIF2_1),
  1323. PINMUX_IPSR_GPSR(IP18_7_4, TPU0TO3),
  1324. PINMUX_IPSR_MSEL(IP18_7_4, FSO_CFE_1_A, SEL_FSO_0),
  1325. PINMUX_IPSR_MSEL(IP18_7_4, FMIN_C, SEL_FM_2),
  1326. PINMUX_IPSR_MSEL(IP18_7_4, FMIN_D, SEL_FM_3),
  1327. /* I2C */
  1328. PINMUX_IPSR_NOGP(0, I2C_SEL_0_1),
  1329. PINMUX_IPSR_NOGP(0, I2C_SEL_3_1),
  1330. PINMUX_IPSR_NOGP(0, I2C_SEL_5_1),
  1331. /*
  1332. * Static pins can not be muxed between different functions but
  1333. * still needs a mark entry in the pinmux list. Add each static
  1334. * pin to the list without an associated function. The sh-pfc
  1335. * core will do the right thing and skip trying to mux then pin
  1336. * while still applying configuration to it
  1337. */
  1338. #define FM(x) PINMUX_DATA(x##_MARK, 0),
  1339. PINMUX_STATIC
  1340. #undef FM
  1341. };
  1342. /*
  1343. * R8A7796 has 8 banks with 32 GPIOs in each => 256 GPIOs.
  1344. * Physical layout rows: A - AW, cols: 1 - 39.
  1345. */
  1346. #define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r))
  1347. #define PIN_NUMBER(r, c) (((r) - 'A') * 39 + (c) + 300)
  1348. #define PIN_A_NUMBER(r, c) PIN_NUMBER(ROW_GROUP_A(r), c)
  1349. static const struct sh_pfc_pin pinmux_pins[] = {
  1350. PINMUX_GPIO_GP_ALL(),
  1351. /*
  1352. * Pins not associated with a GPIO port.
  1353. *
  1354. * The pin positions are different between different r8a7796
  1355. * packages, all that is needed for the pfc driver is a unique
  1356. * number for each pin. To this end use the pin layout from
  1357. * R-Car M3SiP to calculate a unique number for each pin.
  1358. */
  1359. SH_PFC_PIN_NAMED_CFG('A', 8, AVB_TX_CTL, CFG_FLAGS),
  1360. SH_PFC_PIN_NAMED_CFG('A', 9, AVB_MDIO, CFG_FLAGS),
  1361. SH_PFC_PIN_NAMED_CFG('A', 12, AVB_TXCREFCLK, CFG_FLAGS),
  1362. SH_PFC_PIN_NAMED_CFG('A', 13, AVB_RD0, CFG_FLAGS),
  1363. SH_PFC_PIN_NAMED_CFG('A', 14, AVB_RD2, CFG_FLAGS),
  1364. SH_PFC_PIN_NAMED_CFG('A', 16, AVB_RX_CTL, CFG_FLAGS),
  1365. SH_PFC_PIN_NAMED_CFG('A', 17, AVB_TD2, CFG_FLAGS),
  1366. SH_PFC_PIN_NAMED_CFG('A', 18, AVB_TD0, CFG_FLAGS),
  1367. SH_PFC_PIN_NAMED_CFG('A', 19, AVB_TXC, CFG_FLAGS),
  1368. SH_PFC_PIN_NAMED_CFG('B', 13, AVB_RD1, CFG_FLAGS),
  1369. SH_PFC_PIN_NAMED_CFG('B', 14, AVB_RD3, CFG_FLAGS),
  1370. SH_PFC_PIN_NAMED_CFG('B', 17, AVB_TD3, CFG_FLAGS),
  1371. SH_PFC_PIN_NAMED_CFG('B', 18, AVB_TD1, CFG_FLAGS),
  1372. SH_PFC_PIN_NAMED_CFG('B', 19, AVB_RXC, CFG_FLAGS),
  1373. SH_PFC_PIN_NAMED_CFG('C', 1, PRESETOUT#, CFG_FLAGS),
  1374. SH_PFC_PIN_NAMED_CFG('H', 37, MLB_REF, CFG_FLAGS),
  1375. SH_PFC_PIN_NAMED_CFG('V', 3, QSPI1_SPCLK, CFG_FLAGS),
  1376. SH_PFC_PIN_NAMED_CFG('V', 5, QSPI1_SSL, CFG_FLAGS),
  1377. SH_PFC_PIN_NAMED_CFG('V', 6, RPC_WP#, CFG_FLAGS),
  1378. SH_PFC_PIN_NAMED_CFG('V', 7, RPC_RESET#, CFG_FLAGS),
  1379. SH_PFC_PIN_NAMED_CFG('W', 3, QSPI0_SPCLK, CFG_FLAGS),
  1380. SH_PFC_PIN_NAMED_CFG('Y', 3, QSPI0_SSL, CFG_FLAGS),
  1381. SH_PFC_PIN_NAMED_CFG('Y', 6, QSPI0_IO2, CFG_FLAGS),
  1382. SH_PFC_PIN_NAMED_CFG('Y', 7, RPC_INT#, CFG_FLAGS),
  1383. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('B'), 4, QSPI0_MISO_IO1, CFG_FLAGS),
  1384. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('B'), 6, QSPI0_IO3, CFG_FLAGS),
  1385. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('C'), 3, QSPI1_IO3, CFG_FLAGS),
  1386. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('C'), 5, QSPI0_MOSI_IO0, CFG_FLAGS),
  1387. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('C'), 7, QSPI1_MOSI_IO0, CFG_FLAGS),
  1388. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('D'), 38, FSCLKST, CFG_FLAGS),
  1389. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('D'), 39, EXTALR, SH_PFC_PIN_CFG_PULL_UP | SH_PFC_PIN_CFG_PULL_DOWN),
  1390. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('E'), 4, QSPI1_IO2, CFG_FLAGS),
  1391. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('E'), 5, QSPI1_MISO_IO1, CFG_FLAGS),
  1392. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('P'), 7, DU_DOTCLKIN0, CFG_FLAGS),
  1393. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('P'), 8, DU_DOTCLKIN1, CFG_FLAGS),
  1394. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 8, DU_DOTCLKIN2, CFG_FLAGS),
  1395. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 26, TRST#, SH_PFC_PIN_CFG_PULL_UP | SH_PFC_PIN_CFG_PULL_DOWN),
  1396. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 29, TDI, SH_PFC_PIN_CFG_PULL_UP | SH_PFC_PIN_CFG_PULL_DOWN),
  1397. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 30, TMS, CFG_FLAGS),
  1398. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 27, TCK, SH_PFC_PIN_CFG_PULL_UP | SH_PFC_PIN_CFG_PULL_DOWN),
  1399. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 28, TDO, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1400. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 30, ASEBRK, CFG_FLAGS),
  1401. };
  1402. /* - EtherAVB --------------------------------------------------------------- */
  1403. static const unsigned int avb_link_pins[] = {
  1404. /* AVB_LINK */
  1405. RCAR_GP_PIN(2, 12),
  1406. };
  1407. static const unsigned int avb_link_mux[] = {
  1408. AVB_LINK_MARK,
  1409. };
  1410. static const unsigned int avb_magic_pins[] = {
  1411. /* AVB_MAGIC_ */
  1412. RCAR_GP_PIN(2, 10),
  1413. };
  1414. static const unsigned int avb_magic_mux[] = {
  1415. AVB_MAGIC_MARK,
  1416. };
  1417. static const unsigned int avb_phy_int_pins[] = {
  1418. /* AVB_PHY_INT */
  1419. RCAR_GP_PIN(2, 11),
  1420. };
  1421. static const unsigned int avb_phy_int_mux[] = {
  1422. AVB_PHY_INT_MARK,
  1423. };
  1424. static const unsigned int avb_mdc_pins[] = {
  1425. /* AVB_MDC */
  1426. RCAR_GP_PIN(2, 9),
  1427. };
  1428. static const unsigned int avb_mdc_mux[] = {
  1429. AVB_MDC_MARK,
  1430. };
  1431. static const unsigned int avb_avtp_pps_pins[] = {
  1432. /* AVB_AVTP_PPS */
  1433. RCAR_GP_PIN(2, 6),
  1434. };
  1435. static const unsigned int avb_avtp_pps_mux[] = {
  1436. AVB_AVTP_PPS_MARK,
  1437. };
  1438. static const unsigned int avb_avtp_match_a_pins[] = {
  1439. /* AVB_AVTP_MATCH_A */
  1440. RCAR_GP_PIN(2, 13),
  1441. };
  1442. static const unsigned int avb_avtp_match_a_mux[] = {
  1443. AVB_AVTP_MATCH_A_MARK,
  1444. };
  1445. static const unsigned int avb_avtp_capture_a_pins[] = {
  1446. /* AVB_AVTP_CAPTURE_A */
  1447. RCAR_GP_PIN(2, 14),
  1448. };
  1449. static const unsigned int avb_avtp_capture_a_mux[] = {
  1450. AVB_AVTP_CAPTURE_A_MARK,
  1451. };
  1452. static const unsigned int avb_avtp_match_b_pins[] = {
  1453. /* AVB_AVTP_MATCH_B */
  1454. RCAR_GP_PIN(1, 8),
  1455. };
  1456. static const unsigned int avb_avtp_match_b_mux[] = {
  1457. AVB_AVTP_MATCH_B_MARK,
  1458. };
  1459. static const unsigned int avb_avtp_capture_b_pins[] = {
  1460. /* AVB_AVTP_CAPTURE_B */
  1461. RCAR_GP_PIN(1, 11),
  1462. };
  1463. static const unsigned int avb_avtp_capture_b_mux[] = {
  1464. AVB_AVTP_CAPTURE_B_MARK,
  1465. };
  1466. /* - CAN ------------------------------------------------------------------ */
  1467. static const unsigned int can0_data_a_pins[] = {
  1468. /* TX, RX */
  1469. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1470. };
  1471. static const unsigned int can0_data_a_mux[] = {
  1472. CAN0_TX_A_MARK, CAN0_RX_A_MARK,
  1473. };
  1474. static const unsigned int can0_data_b_pins[] = {
  1475. /* TX, RX */
  1476. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  1477. };
  1478. static const unsigned int can0_data_b_mux[] = {
  1479. CAN0_TX_B_MARK, CAN0_RX_B_MARK,
  1480. };
  1481. static const unsigned int can1_data_pins[] = {
  1482. /* TX, RX */
  1483. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 26),
  1484. };
  1485. static const unsigned int can1_data_mux[] = {
  1486. CAN1_TX_MARK, CAN1_RX_MARK,
  1487. };
  1488. /* - CAN Clock -------------------------------------------------------------- */
  1489. static const unsigned int can_clk_pins[] = {
  1490. /* CLK */
  1491. RCAR_GP_PIN(1, 25),
  1492. };
  1493. static const unsigned int can_clk_mux[] = {
  1494. CAN_CLK_MARK,
  1495. };
  1496. /* - CAN FD --------------------------------------------------------------- */
  1497. static const unsigned int canfd0_data_a_pins[] = {
  1498. /* TX, RX */
  1499. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1500. };
  1501. static const unsigned int canfd0_data_a_mux[] = {
  1502. CANFD0_TX_A_MARK, CANFD0_RX_A_MARK,
  1503. };
  1504. static const unsigned int canfd0_data_b_pins[] = {
  1505. /* TX, RX */
  1506. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  1507. };
  1508. static const unsigned int canfd0_data_b_mux[] = {
  1509. CANFD0_TX_B_MARK, CANFD0_RX_B_MARK,
  1510. };
  1511. static const unsigned int canfd1_data_pins[] = {
  1512. /* TX, RX */
  1513. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 26),
  1514. };
  1515. static const unsigned int canfd1_data_mux[] = {
  1516. CANFD1_TX_MARK, CANFD1_RX_MARK,
  1517. };
  1518. /* - DRIF0 --------------------------------------------------------------- */
  1519. static const unsigned int drif0_ctrl_a_pins[] = {
  1520. /* CLK, SYNC */
  1521. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1522. };
  1523. static const unsigned int drif0_ctrl_a_mux[] = {
  1524. RIF0_CLK_A_MARK, RIF0_SYNC_A_MARK,
  1525. };
  1526. static const unsigned int drif0_data0_a_pins[] = {
  1527. /* D0 */
  1528. RCAR_GP_PIN(6, 10),
  1529. };
  1530. static const unsigned int drif0_data0_a_mux[] = {
  1531. RIF0_D0_A_MARK,
  1532. };
  1533. static const unsigned int drif0_data1_a_pins[] = {
  1534. /* D1 */
  1535. RCAR_GP_PIN(6, 7),
  1536. };
  1537. static const unsigned int drif0_data1_a_mux[] = {
  1538. RIF0_D1_A_MARK,
  1539. };
  1540. static const unsigned int drif0_ctrl_b_pins[] = {
  1541. /* CLK, SYNC */
  1542. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 4),
  1543. };
  1544. static const unsigned int drif0_ctrl_b_mux[] = {
  1545. RIF0_CLK_B_MARK, RIF0_SYNC_B_MARK,
  1546. };
  1547. static const unsigned int drif0_data0_b_pins[] = {
  1548. /* D0 */
  1549. RCAR_GP_PIN(5, 1),
  1550. };
  1551. static const unsigned int drif0_data0_b_mux[] = {
  1552. RIF0_D0_B_MARK,
  1553. };
  1554. static const unsigned int drif0_data1_b_pins[] = {
  1555. /* D1 */
  1556. RCAR_GP_PIN(5, 2),
  1557. };
  1558. static const unsigned int drif0_data1_b_mux[] = {
  1559. RIF0_D1_B_MARK,
  1560. };
  1561. static const unsigned int drif0_ctrl_c_pins[] = {
  1562. /* CLK, SYNC */
  1563. RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 15),
  1564. };
  1565. static const unsigned int drif0_ctrl_c_mux[] = {
  1566. RIF0_CLK_C_MARK, RIF0_SYNC_C_MARK,
  1567. };
  1568. static const unsigned int drif0_data0_c_pins[] = {
  1569. /* D0 */
  1570. RCAR_GP_PIN(5, 13),
  1571. };
  1572. static const unsigned int drif0_data0_c_mux[] = {
  1573. RIF0_D0_C_MARK,
  1574. };
  1575. static const unsigned int drif0_data1_c_pins[] = {
  1576. /* D1 */
  1577. RCAR_GP_PIN(5, 14),
  1578. };
  1579. static const unsigned int drif0_data1_c_mux[] = {
  1580. RIF0_D1_C_MARK,
  1581. };
  1582. /* - DRIF1 --------------------------------------------------------------- */
  1583. static const unsigned int drif1_ctrl_a_pins[] = {
  1584. /* CLK, SYNC */
  1585. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1586. };
  1587. static const unsigned int drif1_ctrl_a_mux[] = {
  1588. RIF1_CLK_A_MARK, RIF1_SYNC_A_MARK,
  1589. };
  1590. static const unsigned int drif1_data0_a_pins[] = {
  1591. /* D0 */
  1592. RCAR_GP_PIN(6, 19),
  1593. };
  1594. static const unsigned int drif1_data0_a_mux[] = {
  1595. RIF1_D0_A_MARK,
  1596. };
  1597. static const unsigned int drif1_data1_a_pins[] = {
  1598. /* D1 */
  1599. RCAR_GP_PIN(6, 20),
  1600. };
  1601. static const unsigned int drif1_data1_a_mux[] = {
  1602. RIF1_D1_A_MARK,
  1603. };
  1604. static const unsigned int drif1_ctrl_b_pins[] = {
  1605. /* CLK, SYNC */
  1606. RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 3),
  1607. };
  1608. static const unsigned int drif1_ctrl_b_mux[] = {
  1609. RIF1_CLK_B_MARK, RIF1_SYNC_B_MARK,
  1610. };
  1611. static const unsigned int drif1_data0_b_pins[] = {
  1612. /* D0 */
  1613. RCAR_GP_PIN(5, 7),
  1614. };
  1615. static const unsigned int drif1_data0_b_mux[] = {
  1616. RIF1_D0_B_MARK,
  1617. };
  1618. static const unsigned int drif1_data1_b_pins[] = {
  1619. /* D1 */
  1620. RCAR_GP_PIN(5, 8),
  1621. };
  1622. static const unsigned int drif1_data1_b_mux[] = {
  1623. RIF1_D1_B_MARK,
  1624. };
  1625. static const unsigned int drif1_ctrl_c_pins[] = {
  1626. /* CLK, SYNC */
  1627. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 11),
  1628. };
  1629. static const unsigned int drif1_ctrl_c_mux[] = {
  1630. RIF1_CLK_C_MARK, RIF1_SYNC_C_MARK,
  1631. };
  1632. static const unsigned int drif1_data0_c_pins[] = {
  1633. /* D0 */
  1634. RCAR_GP_PIN(5, 6),
  1635. };
  1636. static const unsigned int drif1_data0_c_mux[] = {
  1637. RIF1_D0_C_MARK,
  1638. };
  1639. static const unsigned int drif1_data1_c_pins[] = {
  1640. /* D1 */
  1641. RCAR_GP_PIN(5, 10),
  1642. };
  1643. static const unsigned int drif1_data1_c_mux[] = {
  1644. RIF1_D1_C_MARK,
  1645. };
  1646. /* - DRIF2 --------------------------------------------------------------- */
  1647. static const unsigned int drif2_ctrl_a_pins[] = {
  1648. /* CLK, SYNC */
  1649. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1650. };
  1651. static const unsigned int drif2_ctrl_a_mux[] = {
  1652. RIF2_CLK_A_MARK, RIF2_SYNC_A_MARK,
  1653. };
  1654. static const unsigned int drif2_data0_a_pins[] = {
  1655. /* D0 */
  1656. RCAR_GP_PIN(6, 7),
  1657. };
  1658. static const unsigned int drif2_data0_a_mux[] = {
  1659. RIF2_D0_A_MARK,
  1660. };
  1661. static const unsigned int drif2_data1_a_pins[] = {
  1662. /* D1 */
  1663. RCAR_GP_PIN(6, 10),
  1664. };
  1665. static const unsigned int drif2_data1_a_mux[] = {
  1666. RIF2_D1_A_MARK,
  1667. };
  1668. static const unsigned int drif2_ctrl_b_pins[] = {
  1669. /* CLK, SYNC */
  1670. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  1671. };
  1672. static const unsigned int drif2_ctrl_b_mux[] = {
  1673. RIF2_CLK_B_MARK, RIF2_SYNC_B_MARK,
  1674. };
  1675. static const unsigned int drif2_data0_b_pins[] = {
  1676. /* D0 */
  1677. RCAR_GP_PIN(6, 30),
  1678. };
  1679. static const unsigned int drif2_data0_b_mux[] = {
  1680. RIF2_D0_B_MARK,
  1681. };
  1682. static const unsigned int drif2_data1_b_pins[] = {
  1683. /* D1 */
  1684. RCAR_GP_PIN(6, 31),
  1685. };
  1686. static const unsigned int drif2_data1_b_mux[] = {
  1687. RIF2_D1_B_MARK,
  1688. };
  1689. /* - DRIF3 --------------------------------------------------------------- */
  1690. static const unsigned int drif3_ctrl_a_pins[] = {
  1691. /* CLK, SYNC */
  1692. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1693. };
  1694. static const unsigned int drif3_ctrl_a_mux[] = {
  1695. RIF3_CLK_A_MARK, RIF3_SYNC_A_MARK,
  1696. };
  1697. static const unsigned int drif3_data0_a_pins[] = {
  1698. /* D0 */
  1699. RCAR_GP_PIN(6, 19),
  1700. };
  1701. static const unsigned int drif3_data0_a_mux[] = {
  1702. RIF3_D0_A_MARK,
  1703. };
  1704. static const unsigned int drif3_data1_a_pins[] = {
  1705. /* D1 */
  1706. RCAR_GP_PIN(6, 20),
  1707. };
  1708. static const unsigned int drif3_data1_a_mux[] = {
  1709. RIF3_D1_A_MARK,
  1710. };
  1711. static const unsigned int drif3_ctrl_b_pins[] = {
  1712. /* CLK, SYNC */
  1713. RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
  1714. };
  1715. static const unsigned int drif3_ctrl_b_mux[] = {
  1716. RIF3_CLK_B_MARK, RIF3_SYNC_B_MARK,
  1717. };
  1718. static const unsigned int drif3_data0_b_pins[] = {
  1719. /* D0 */
  1720. RCAR_GP_PIN(6, 28),
  1721. };
  1722. static const unsigned int drif3_data0_b_mux[] = {
  1723. RIF3_D0_B_MARK,
  1724. };
  1725. static const unsigned int drif3_data1_b_pins[] = {
  1726. /* D1 */
  1727. RCAR_GP_PIN(6, 29),
  1728. };
  1729. static const unsigned int drif3_data1_b_mux[] = {
  1730. RIF3_D1_B_MARK,
  1731. };
  1732. /* - DU --------------------------------------------------------------------- */
  1733. static const unsigned int du_rgb666_pins[] = {
  1734. /* R[7:2], G[7:2], B[7:2] */
  1735. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13),
  1736. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  1737. RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
  1738. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
  1739. RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5),
  1740. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
  1741. };
  1742. static const unsigned int du_rgb666_mux[] = {
  1743. DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
  1744. DU_DR3_MARK, DU_DR2_MARK,
  1745. DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
  1746. DU_DG3_MARK, DU_DG2_MARK,
  1747. DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
  1748. DU_DB3_MARK, DU_DB2_MARK,
  1749. };
  1750. static const unsigned int du_rgb888_pins[] = {
  1751. /* R[7:0], G[7:0], B[7:0] */
  1752. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13),
  1753. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  1754. RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 8),
  1755. RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
  1756. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
  1757. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
  1758. RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5),
  1759. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
  1760. RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
  1761. };
  1762. static const unsigned int du_rgb888_mux[] = {
  1763. DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
  1764. DU_DR3_MARK, DU_DR2_MARK, DU_DR1_MARK, DU_DR0_MARK,
  1765. DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
  1766. DU_DG3_MARK, DU_DG2_MARK, DU_DG1_MARK, DU_DG0_MARK,
  1767. DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
  1768. DU_DB3_MARK, DU_DB2_MARK, DU_DB1_MARK, DU_DB0_MARK,
  1769. };
  1770. static const unsigned int du_clk_out_0_pins[] = {
  1771. /* CLKOUT */
  1772. RCAR_GP_PIN(1, 27),
  1773. };
  1774. static const unsigned int du_clk_out_0_mux[] = {
  1775. DU_DOTCLKOUT0_MARK
  1776. };
  1777. static const unsigned int du_clk_out_1_pins[] = {
  1778. /* CLKOUT */
  1779. RCAR_GP_PIN(2, 3),
  1780. };
  1781. static const unsigned int du_clk_out_1_mux[] = {
  1782. DU_DOTCLKOUT1_MARK
  1783. };
  1784. static const unsigned int du_sync_pins[] = {
  1785. /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */
  1786. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
  1787. };
  1788. static const unsigned int du_sync_mux[] = {
  1789. DU_EXVSYNC_DU_VSYNC_MARK, DU_EXHSYNC_DU_HSYNC_MARK
  1790. };
  1791. static const unsigned int du_oddf_pins[] = {
  1792. /* EXDISP/EXODDF/EXCDE */
  1793. RCAR_GP_PIN(2, 2),
  1794. };
  1795. static const unsigned int du_oddf_mux[] = {
  1796. DU_EXODDF_DU_ODDF_DISP_CDE_MARK,
  1797. };
  1798. static const unsigned int du_cde_pins[] = {
  1799. /* CDE */
  1800. RCAR_GP_PIN(2, 0),
  1801. };
  1802. static const unsigned int du_cde_mux[] = {
  1803. DU_CDE_MARK,
  1804. };
  1805. static const unsigned int du_disp_pins[] = {
  1806. /* DISP */
  1807. RCAR_GP_PIN(2, 1),
  1808. };
  1809. static const unsigned int du_disp_mux[] = {
  1810. DU_DISP_MARK,
  1811. };
  1812. /* - HSCIF0 ----------------------------------------------------------------- */
  1813. static const unsigned int hscif0_data_pins[] = {
  1814. /* RX, TX */
  1815. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 14),
  1816. };
  1817. static const unsigned int hscif0_data_mux[] = {
  1818. HRX0_MARK, HTX0_MARK,
  1819. };
  1820. static const unsigned int hscif0_clk_pins[] = {
  1821. /* SCK */
  1822. RCAR_GP_PIN(5, 12),
  1823. };
  1824. static const unsigned int hscif0_clk_mux[] = {
  1825. HSCK0_MARK,
  1826. };
  1827. static const unsigned int hscif0_ctrl_pins[] = {
  1828. /* RTS, CTS */
  1829. RCAR_GP_PIN(5, 16), RCAR_GP_PIN(5, 15),
  1830. };
  1831. static const unsigned int hscif0_ctrl_mux[] = {
  1832. HRTS0_N_MARK, HCTS0_N_MARK,
  1833. };
  1834. /* - HSCIF1 ----------------------------------------------------------------- */
  1835. static const unsigned int hscif1_data_a_pins[] = {
  1836. /* RX, TX */
  1837. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  1838. };
  1839. static const unsigned int hscif1_data_a_mux[] = {
  1840. HRX1_A_MARK, HTX1_A_MARK,
  1841. };
  1842. static const unsigned int hscif1_clk_a_pins[] = {
  1843. /* SCK */
  1844. RCAR_GP_PIN(6, 21),
  1845. };
  1846. static const unsigned int hscif1_clk_a_mux[] = {
  1847. HSCK1_A_MARK,
  1848. };
  1849. static const unsigned int hscif1_ctrl_a_pins[] = {
  1850. /* RTS, CTS */
  1851. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 7),
  1852. };
  1853. static const unsigned int hscif1_ctrl_a_mux[] = {
  1854. HRTS1_N_A_MARK, HCTS1_N_A_MARK,
  1855. };
  1856. static const unsigned int hscif1_data_b_pins[] = {
  1857. /* RX, TX */
  1858. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  1859. };
  1860. static const unsigned int hscif1_data_b_mux[] = {
  1861. HRX1_B_MARK, HTX1_B_MARK,
  1862. };
  1863. static const unsigned int hscif1_clk_b_pins[] = {
  1864. /* SCK */
  1865. RCAR_GP_PIN(5, 0),
  1866. };
  1867. static const unsigned int hscif1_clk_b_mux[] = {
  1868. HSCK1_B_MARK,
  1869. };
  1870. static const unsigned int hscif1_ctrl_b_pins[] = {
  1871. /* RTS, CTS */
  1872. RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
  1873. };
  1874. static const unsigned int hscif1_ctrl_b_mux[] = {
  1875. HRTS1_N_B_MARK, HCTS1_N_B_MARK,
  1876. };
  1877. /* - HSCIF2 ----------------------------------------------------------------- */
  1878. static const unsigned int hscif2_data_a_pins[] = {
  1879. /* RX, TX */
  1880. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1881. };
  1882. static const unsigned int hscif2_data_a_mux[] = {
  1883. HRX2_A_MARK, HTX2_A_MARK,
  1884. };
  1885. static const unsigned int hscif2_clk_a_pins[] = {
  1886. /* SCK */
  1887. RCAR_GP_PIN(6, 10),
  1888. };
  1889. static const unsigned int hscif2_clk_a_mux[] = {
  1890. HSCK2_A_MARK,
  1891. };
  1892. static const unsigned int hscif2_ctrl_a_pins[] = {
  1893. /* RTS, CTS */
  1894. RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
  1895. };
  1896. static const unsigned int hscif2_ctrl_a_mux[] = {
  1897. HRTS2_N_A_MARK, HCTS2_N_A_MARK,
  1898. };
  1899. static const unsigned int hscif2_data_b_pins[] = {
  1900. /* RX, TX */
  1901. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1902. };
  1903. static const unsigned int hscif2_data_b_mux[] = {
  1904. HRX2_B_MARK, HTX2_B_MARK,
  1905. };
  1906. static const unsigned int hscif2_clk_b_pins[] = {
  1907. /* SCK */
  1908. RCAR_GP_PIN(6, 21),
  1909. };
  1910. static const unsigned int hscif2_clk_b_mux[] = {
  1911. HSCK2_B_MARK,
  1912. };
  1913. static const unsigned int hscif2_ctrl_b_pins[] = {
  1914. /* RTS, CTS */
  1915. RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 19),
  1916. };
  1917. static const unsigned int hscif2_ctrl_b_mux[] = {
  1918. HRTS2_N_B_MARK, HCTS2_N_B_MARK,
  1919. };
  1920. static const unsigned int hscif2_data_c_pins[] = {
  1921. /* RX, TX */
  1922. RCAR_GP_PIN(6, 25), RCAR_GP_PIN(6, 26),
  1923. };
  1924. static const unsigned int hscif2_data_c_mux[] = {
  1925. HRX2_C_MARK, HTX2_C_MARK,
  1926. };
  1927. static const unsigned int hscif2_clk_c_pins[] = {
  1928. /* SCK */
  1929. RCAR_GP_PIN(6, 24),
  1930. };
  1931. static const unsigned int hscif2_clk_c_mux[] = {
  1932. HSCK2_C_MARK,
  1933. };
  1934. static const unsigned int hscif2_ctrl_c_pins[] = {
  1935. /* RTS, CTS */
  1936. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 27),
  1937. };
  1938. static const unsigned int hscif2_ctrl_c_mux[] = {
  1939. HRTS2_N_C_MARK, HCTS2_N_C_MARK,
  1940. };
  1941. /* - HSCIF3 ----------------------------------------------------------------- */
  1942. static const unsigned int hscif3_data_a_pins[] = {
  1943. /* RX, TX */
  1944. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1945. };
  1946. static const unsigned int hscif3_data_a_mux[] = {
  1947. HRX3_A_MARK, HTX3_A_MARK,
  1948. };
  1949. static const unsigned int hscif3_clk_pins[] = {
  1950. /* SCK */
  1951. RCAR_GP_PIN(1, 22),
  1952. };
  1953. static const unsigned int hscif3_clk_mux[] = {
  1954. HSCK3_MARK,
  1955. };
  1956. static const unsigned int hscif3_ctrl_pins[] = {
  1957. /* RTS, CTS */
  1958. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  1959. };
  1960. static const unsigned int hscif3_ctrl_mux[] = {
  1961. HRTS3_N_MARK, HCTS3_N_MARK,
  1962. };
  1963. static const unsigned int hscif3_data_b_pins[] = {
  1964. /* RX, TX */
  1965. RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  1966. };
  1967. static const unsigned int hscif3_data_b_mux[] = {
  1968. HRX3_B_MARK, HTX3_B_MARK,
  1969. };
  1970. static const unsigned int hscif3_data_c_pins[] = {
  1971. /* RX, TX */
  1972. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  1973. };
  1974. static const unsigned int hscif3_data_c_mux[] = {
  1975. HRX3_C_MARK, HTX3_C_MARK,
  1976. };
  1977. static const unsigned int hscif3_data_d_pins[] = {
  1978. /* RX, TX */
  1979. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
  1980. };
  1981. static const unsigned int hscif3_data_d_mux[] = {
  1982. HRX3_D_MARK, HTX3_D_MARK,
  1983. };
  1984. /* - HSCIF4 ----------------------------------------------------------------- */
  1985. static const unsigned int hscif4_data_a_pins[] = {
  1986. /* RX, TX */
  1987. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 13),
  1988. };
  1989. static const unsigned int hscif4_data_a_mux[] = {
  1990. HRX4_A_MARK, HTX4_A_MARK,
  1991. };
  1992. static const unsigned int hscif4_clk_pins[] = {
  1993. /* SCK */
  1994. RCAR_GP_PIN(1, 11),
  1995. };
  1996. static const unsigned int hscif4_clk_mux[] = {
  1997. HSCK4_MARK,
  1998. };
  1999. static const unsigned int hscif4_ctrl_pins[] = {
  2000. /* RTS, CTS */
  2001. RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14),
  2002. };
  2003. static const unsigned int hscif4_ctrl_mux[] = {
  2004. HRTS4_N_MARK, HCTS4_N_MARK,
  2005. };
  2006. static const unsigned int hscif4_data_b_pins[] = {
  2007. /* RX, TX */
  2008. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  2009. };
  2010. static const unsigned int hscif4_data_b_mux[] = {
  2011. HRX4_B_MARK, HTX4_B_MARK,
  2012. };
  2013. /* - I2C -------------------------------------------------------------------- */
  2014. static const unsigned int i2c1_a_pins[] = {
  2015. /* SDA, SCL */
  2016. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  2017. };
  2018. static const unsigned int i2c1_a_mux[] = {
  2019. SDA1_A_MARK, SCL1_A_MARK,
  2020. };
  2021. static const unsigned int i2c1_b_pins[] = {
  2022. /* SDA, SCL */
  2023. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
  2024. };
  2025. static const unsigned int i2c1_b_mux[] = {
  2026. SDA1_B_MARK, SCL1_B_MARK,
  2027. };
  2028. static const unsigned int i2c2_a_pins[] = {
  2029. /* SDA, SCL */
  2030. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 4),
  2031. };
  2032. static const unsigned int i2c2_a_mux[] = {
  2033. SDA2_A_MARK, SCL2_A_MARK,
  2034. };
  2035. static const unsigned int i2c2_b_pins[] = {
  2036. /* SDA, SCL */
  2037. RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 12),
  2038. };
  2039. static const unsigned int i2c2_b_mux[] = {
  2040. SDA2_B_MARK, SCL2_B_MARK,
  2041. };
  2042. static const unsigned int i2c6_a_pins[] = {
  2043. /* SDA, SCL */
  2044. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  2045. };
  2046. static const unsigned int i2c6_a_mux[] = {
  2047. SDA6_A_MARK, SCL6_A_MARK,
  2048. };
  2049. static const unsigned int i2c6_b_pins[] = {
  2050. /* SDA, SCL */
  2051. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  2052. };
  2053. static const unsigned int i2c6_b_mux[] = {
  2054. SDA6_B_MARK, SCL6_B_MARK,
  2055. };
  2056. static const unsigned int i2c6_c_pins[] = {
  2057. /* SDA, SCL */
  2058. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
  2059. };
  2060. static const unsigned int i2c6_c_mux[] = {
  2061. SDA6_C_MARK, SCL6_C_MARK,
  2062. };
  2063. /* - MSIOF0 ----------------------------------------------------------------- */
  2064. static const unsigned int msiof0_clk_pins[] = {
  2065. /* SCK */
  2066. RCAR_GP_PIN(5, 17),
  2067. };
  2068. static const unsigned int msiof0_clk_mux[] = {
  2069. MSIOF0_SCK_MARK,
  2070. };
  2071. static const unsigned int msiof0_sync_pins[] = {
  2072. /* SYNC */
  2073. RCAR_GP_PIN(5, 18),
  2074. };
  2075. static const unsigned int msiof0_sync_mux[] = {
  2076. MSIOF0_SYNC_MARK,
  2077. };
  2078. static const unsigned int msiof0_ss1_pins[] = {
  2079. /* SS1 */
  2080. RCAR_GP_PIN(5, 19),
  2081. };
  2082. static const unsigned int msiof0_ss1_mux[] = {
  2083. MSIOF0_SS1_MARK,
  2084. };
  2085. static const unsigned int msiof0_ss2_pins[] = {
  2086. /* SS2 */
  2087. RCAR_GP_PIN(5, 21),
  2088. };
  2089. static const unsigned int msiof0_ss2_mux[] = {
  2090. MSIOF0_SS2_MARK,
  2091. };
  2092. static const unsigned int msiof0_txd_pins[] = {
  2093. /* TXD */
  2094. RCAR_GP_PIN(5, 20),
  2095. };
  2096. static const unsigned int msiof0_txd_mux[] = {
  2097. MSIOF0_TXD_MARK,
  2098. };
  2099. static const unsigned int msiof0_rxd_pins[] = {
  2100. /* RXD */
  2101. RCAR_GP_PIN(5, 22),
  2102. };
  2103. static const unsigned int msiof0_rxd_mux[] = {
  2104. MSIOF0_RXD_MARK,
  2105. };
  2106. /* - MSIOF1 ----------------------------------------------------------------- */
  2107. static const unsigned int msiof1_clk_a_pins[] = {
  2108. /* SCK */
  2109. RCAR_GP_PIN(6, 8),
  2110. };
  2111. static const unsigned int msiof1_clk_a_mux[] = {
  2112. MSIOF1_SCK_A_MARK,
  2113. };
  2114. static const unsigned int msiof1_sync_a_pins[] = {
  2115. /* SYNC */
  2116. RCAR_GP_PIN(6, 9),
  2117. };
  2118. static const unsigned int msiof1_sync_a_mux[] = {
  2119. MSIOF1_SYNC_A_MARK,
  2120. };
  2121. static const unsigned int msiof1_ss1_a_pins[] = {
  2122. /* SS1 */
  2123. RCAR_GP_PIN(6, 5),
  2124. };
  2125. static const unsigned int msiof1_ss1_a_mux[] = {
  2126. MSIOF1_SS1_A_MARK,
  2127. };
  2128. static const unsigned int msiof1_ss2_a_pins[] = {
  2129. /* SS2 */
  2130. RCAR_GP_PIN(6, 6),
  2131. };
  2132. static const unsigned int msiof1_ss2_a_mux[] = {
  2133. MSIOF1_SS2_A_MARK,
  2134. };
  2135. static const unsigned int msiof1_txd_a_pins[] = {
  2136. /* TXD */
  2137. RCAR_GP_PIN(6, 7),
  2138. };
  2139. static const unsigned int msiof1_txd_a_mux[] = {
  2140. MSIOF1_TXD_A_MARK,
  2141. };
  2142. static const unsigned int msiof1_rxd_a_pins[] = {
  2143. /* RXD */
  2144. RCAR_GP_PIN(6, 10),
  2145. };
  2146. static const unsigned int msiof1_rxd_a_mux[] = {
  2147. MSIOF1_RXD_A_MARK,
  2148. };
  2149. static const unsigned int msiof1_clk_b_pins[] = {
  2150. /* SCK */
  2151. RCAR_GP_PIN(5, 9),
  2152. };
  2153. static const unsigned int msiof1_clk_b_mux[] = {
  2154. MSIOF1_SCK_B_MARK,
  2155. };
  2156. static const unsigned int msiof1_sync_b_pins[] = {
  2157. /* SYNC */
  2158. RCAR_GP_PIN(5, 3),
  2159. };
  2160. static const unsigned int msiof1_sync_b_mux[] = {
  2161. MSIOF1_SYNC_B_MARK,
  2162. };
  2163. static const unsigned int msiof1_ss1_b_pins[] = {
  2164. /* SS1 */
  2165. RCAR_GP_PIN(5, 4),
  2166. };
  2167. static const unsigned int msiof1_ss1_b_mux[] = {
  2168. MSIOF1_SS1_B_MARK,
  2169. };
  2170. static const unsigned int msiof1_ss2_b_pins[] = {
  2171. /* SS2 */
  2172. RCAR_GP_PIN(5, 0),
  2173. };
  2174. static const unsigned int msiof1_ss2_b_mux[] = {
  2175. MSIOF1_SS2_B_MARK,
  2176. };
  2177. static const unsigned int msiof1_txd_b_pins[] = {
  2178. /* TXD */
  2179. RCAR_GP_PIN(5, 8),
  2180. };
  2181. static const unsigned int msiof1_txd_b_mux[] = {
  2182. MSIOF1_TXD_B_MARK,
  2183. };
  2184. static const unsigned int msiof1_rxd_b_pins[] = {
  2185. /* RXD */
  2186. RCAR_GP_PIN(5, 7),
  2187. };
  2188. static const unsigned int msiof1_rxd_b_mux[] = {
  2189. MSIOF1_RXD_B_MARK,
  2190. };
  2191. static const unsigned int msiof1_clk_c_pins[] = {
  2192. /* SCK */
  2193. RCAR_GP_PIN(6, 17),
  2194. };
  2195. static const unsigned int msiof1_clk_c_mux[] = {
  2196. MSIOF1_SCK_C_MARK,
  2197. };
  2198. static const unsigned int msiof1_sync_c_pins[] = {
  2199. /* SYNC */
  2200. RCAR_GP_PIN(6, 18),
  2201. };
  2202. static const unsigned int msiof1_sync_c_mux[] = {
  2203. MSIOF1_SYNC_C_MARK,
  2204. };
  2205. static const unsigned int msiof1_ss1_c_pins[] = {
  2206. /* SS1 */
  2207. RCAR_GP_PIN(6, 21),
  2208. };
  2209. static const unsigned int msiof1_ss1_c_mux[] = {
  2210. MSIOF1_SS1_C_MARK,
  2211. };
  2212. static const unsigned int msiof1_ss2_c_pins[] = {
  2213. /* SS2 */
  2214. RCAR_GP_PIN(6, 27),
  2215. };
  2216. static const unsigned int msiof1_ss2_c_mux[] = {
  2217. MSIOF1_SS2_C_MARK,
  2218. };
  2219. static const unsigned int msiof1_txd_c_pins[] = {
  2220. /* TXD */
  2221. RCAR_GP_PIN(6, 20),
  2222. };
  2223. static const unsigned int msiof1_txd_c_mux[] = {
  2224. MSIOF1_TXD_C_MARK,
  2225. };
  2226. static const unsigned int msiof1_rxd_c_pins[] = {
  2227. /* RXD */
  2228. RCAR_GP_PIN(6, 19),
  2229. };
  2230. static const unsigned int msiof1_rxd_c_mux[] = {
  2231. MSIOF1_RXD_C_MARK,
  2232. };
  2233. static const unsigned int msiof1_clk_d_pins[] = {
  2234. /* SCK */
  2235. RCAR_GP_PIN(5, 12),
  2236. };
  2237. static const unsigned int msiof1_clk_d_mux[] = {
  2238. MSIOF1_SCK_D_MARK,
  2239. };
  2240. static const unsigned int msiof1_sync_d_pins[] = {
  2241. /* SYNC */
  2242. RCAR_GP_PIN(5, 15),
  2243. };
  2244. static const unsigned int msiof1_sync_d_mux[] = {
  2245. MSIOF1_SYNC_D_MARK,
  2246. };
  2247. static const unsigned int msiof1_ss1_d_pins[] = {
  2248. /* SS1 */
  2249. RCAR_GP_PIN(5, 16),
  2250. };
  2251. static const unsigned int msiof1_ss1_d_mux[] = {
  2252. MSIOF1_SS1_D_MARK,
  2253. };
  2254. static const unsigned int msiof1_ss2_d_pins[] = {
  2255. /* SS2 */
  2256. RCAR_GP_PIN(5, 21),
  2257. };
  2258. static const unsigned int msiof1_ss2_d_mux[] = {
  2259. MSIOF1_SS2_D_MARK,
  2260. };
  2261. static const unsigned int msiof1_txd_d_pins[] = {
  2262. /* TXD */
  2263. RCAR_GP_PIN(5, 14),
  2264. };
  2265. static const unsigned int msiof1_txd_d_mux[] = {
  2266. MSIOF1_TXD_D_MARK,
  2267. };
  2268. static const unsigned int msiof1_rxd_d_pins[] = {
  2269. /* RXD */
  2270. RCAR_GP_PIN(5, 13),
  2271. };
  2272. static const unsigned int msiof1_rxd_d_mux[] = {
  2273. MSIOF1_RXD_D_MARK,
  2274. };
  2275. static const unsigned int msiof1_clk_e_pins[] = {
  2276. /* SCK */
  2277. RCAR_GP_PIN(3, 0),
  2278. };
  2279. static const unsigned int msiof1_clk_e_mux[] = {
  2280. MSIOF1_SCK_E_MARK,
  2281. };
  2282. static const unsigned int msiof1_sync_e_pins[] = {
  2283. /* SYNC */
  2284. RCAR_GP_PIN(3, 1),
  2285. };
  2286. static const unsigned int msiof1_sync_e_mux[] = {
  2287. MSIOF1_SYNC_E_MARK,
  2288. };
  2289. static const unsigned int msiof1_ss1_e_pins[] = {
  2290. /* SS1 */
  2291. RCAR_GP_PIN(3, 4),
  2292. };
  2293. static const unsigned int msiof1_ss1_e_mux[] = {
  2294. MSIOF1_SS1_E_MARK,
  2295. };
  2296. static const unsigned int msiof1_ss2_e_pins[] = {
  2297. /* SS2 */
  2298. RCAR_GP_PIN(3, 5),
  2299. };
  2300. static const unsigned int msiof1_ss2_e_mux[] = {
  2301. MSIOF1_SS2_E_MARK,
  2302. };
  2303. static const unsigned int msiof1_txd_e_pins[] = {
  2304. /* TXD */
  2305. RCAR_GP_PIN(3, 3),
  2306. };
  2307. static const unsigned int msiof1_txd_e_mux[] = {
  2308. MSIOF1_TXD_E_MARK,
  2309. };
  2310. static const unsigned int msiof1_rxd_e_pins[] = {
  2311. /* RXD */
  2312. RCAR_GP_PIN(3, 2),
  2313. };
  2314. static const unsigned int msiof1_rxd_e_mux[] = {
  2315. MSIOF1_RXD_E_MARK,
  2316. };
  2317. static const unsigned int msiof1_clk_f_pins[] = {
  2318. /* SCK */
  2319. RCAR_GP_PIN(5, 23),
  2320. };
  2321. static const unsigned int msiof1_clk_f_mux[] = {
  2322. MSIOF1_SCK_F_MARK,
  2323. };
  2324. static const unsigned int msiof1_sync_f_pins[] = {
  2325. /* SYNC */
  2326. RCAR_GP_PIN(5, 24),
  2327. };
  2328. static const unsigned int msiof1_sync_f_mux[] = {
  2329. MSIOF1_SYNC_F_MARK,
  2330. };
  2331. static const unsigned int msiof1_ss1_f_pins[] = {
  2332. /* SS1 */
  2333. RCAR_GP_PIN(6, 1),
  2334. };
  2335. static const unsigned int msiof1_ss1_f_mux[] = {
  2336. MSIOF1_SS1_F_MARK,
  2337. };
  2338. static const unsigned int msiof1_ss2_f_pins[] = {
  2339. /* SS2 */
  2340. RCAR_GP_PIN(6, 2),
  2341. };
  2342. static const unsigned int msiof1_ss2_f_mux[] = {
  2343. MSIOF1_SS2_F_MARK,
  2344. };
  2345. static const unsigned int msiof1_txd_f_pins[] = {
  2346. /* TXD */
  2347. RCAR_GP_PIN(6, 0),
  2348. };
  2349. static const unsigned int msiof1_txd_f_mux[] = {
  2350. MSIOF1_TXD_F_MARK,
  2351. };
  2352. static const unsigned int msiof1_rxd_f_pins[] = {
  2353. /* RXD */
  2354. RCAR_GP_PIN(5, 25),
  2355. };
  2356. static const unsigned int msiof1_rxd_f_mux[] = {
  2357. MSIOF1_RXD_F_MARK,
  2358. };
  2359. static const unsigned int msiof1_clk_g_pins[] = {
  2360. /* SCK */
  2361. RCAR_GP_PIN(3, 6),
  2362. };
  2363. static const unsigned int msiof1_clk_g_mux[] = {
  2364. MSIOF1_SCK_G_MARK,
  2365. };
  2366. static const unsigned int msiof1_sync_g_pins[] = {
  2367. /* SYNC */
  2368. RCAR_GP_PIN(3, 7),
  2369. };
  2370. static const unsigned int msiof1_sync_g_mux[] = {
  2371. MSIOF1_SYNC_G_MARK,
  2372. };
  2373. static const unsigned int msiof1_ss1_g_pins[] = {
  2374. /* SS1 */
  2375. RCAR_GP_PIN(3, 10),
  2376. };
  2377. static const unsigned int msiof1_ss1_g_mux[] = {
  2378. MSIOF1_SS1_G_MARK,
  2379. };
  2380. static const unsigned int msiof1_ss2_g_pins[] = {
  2381. /* SS2 */
  2382. RCAR_GP_PIN(3, 11),
  2383. };
  2384. static const unsigned int msiof1_ss2_g_mux[] = {
  2385. MSIOF1_SS2_G_MARK,
  2386. };
  2387. static const unsigned int msiof1_txd_g_pins[] = {
  2388. /* TXD */
  2389. RCAR_GP_PIN(3, 9),
  2390. };
  2391. static const unsigned int msiof1_txd_g_mux[] = {
  2392. MSIOF1_TXD_G_MARK,
  2393. };
  2394. static const unsigned int msiof1_rxd_g_pins[] = {
  2395. /* RXD */
  2396. RCAR_GP_PIN(3, 8),
  2397. };
  2398. static const unsigned int msiof1_rxd_g_mux[] = {
  2399. MSIOF1_RXD_G_MARK,
  2400. };
  2401. /* - MSIOF2 ----------------------------------------------------------------- */
  2402. static const unsigned int msiof2_clk_a_pins[] = {
  2403. /* SCK */
  2404. RCAR_GP_PIN(1, 9),
  2405. };
  2406. static const unsigned int msiof2_clk_a_mux[] = {
  2407. MSIOF2_SCK_A_MARK,
  2408. };
  2409. static const unsigned int msiof2_sync_a_pins[] = {
  2410. /* SYNC */
  2411. RCAR_GP_PIN(1, 8),
  2412. };
  2413. static const unsigned int msiof2_sync_a_mux[] = {
  2414. MSIOF2_SYNC_A_MARK,
  2415. };
  2416. static const unsigned int msiof2_ss1_a_pins[] = {
  2417. /* SS1 */
  2418. RCAR_GP_PIN(1, 6),
  2419. };
  2420. static const unsigned int msiof2_ss1_a_mux[] = {
  2421. MSIOF2_SS1_A_MARK,
  2422. };
  2423. static const unsigned int msiof2_ss2_a_pins[] = {
  2424. /* SS2 */
  2425. RCAR_GP_PIN(1, 7),
  2426. };
  2427. static const unsigned int msiof2_ss2_a_mux[] = {
  2428. MSIOF2_SS2_A_MARK,
  2429. };
  2430. static const unsigned int msiof2_txd_a_pins[] = {
  2431. /* TXD */
  2432. RCAR_GP_PIN(1, 11),
  2433. };
  2434. static const unsigned int msiof2_txd_a_mux[] = {
  2435. MSIOF2_TXD_A_MARK,
  2436. };
  2437. static const unsigned int msiof2_rxd_a_pins[] = {
  2438. /* RXD */
  2439. RCAR_GP_PIN(1, 10),
  2440. };
  2441. static const unsigned int msiof2_rxd_a_mux[] = {
  2442. MSIOF2_RXD_A_MARK,
  2443. };
  2444. static const unsigned int msiof2_clk_b_pins[] = {
  2445. /* SCK */
  2446. RCAR_GP_PIN(0, 4),
  2447. };
  2448. static const unsigned int msiof2_clk_b_mux[] = {
  2449. MSIOF2_SCK_B_MARK,
  2450. };
  2451. static const unsigned int msiof2_sync_b_pins[] = {
  2452. /* SYNC */
  2453. RCAR_GP_PIN(0, 5),
  2454. };
  2455. static const unsigned int msiof2_sync_b_mux[] = {
  2456. MSIOF2_SYNC_B_MARK,
  2457. };
  2458. static const unsigned int msiof2_ss1_b_pins[] = {
  2459. /* SS1 */
  2460. RCAR_GP_PIN(0, 0),
  2461. };
  2462. static const unsigned int msiof2_ss1_b_mux[] = {
  2463. MSIOF2_SS1_B_MARK,
  2464. };
  2465. static const unsigned int msiof2_ss2_b_pins[] = {
  2466. /* SS2 */
  2467. RCAR_GP_PIN(0, 1),
  2468. };
  2469. static const unsigned int msiof2_ss2_b_mux[] = {
  2470. MSIOF2_SS2_B_MARK,
  2471. };
  2472. static const unsigned int msiof2_txd_b_pins[] = {
  2473. /* TXD */
  2474. RCAR_GP_PIN(0, 7),
  2475. };
  2476. static const unsigned int msiof2_txd_b_mux[] = {
  2477. MSIOF2_TXD_B_MARK,
  2478. };
  2479. static const unsigned int msiof2_rxd_b_pins[] = {
  2480. /* RXD */
  2481. RCAR_GP_PIN(0, 6),
  2482. };
  2483. static const unsigned int msiof2_rxd_b_mux[] = {
  2484. MSIOF2_RXD_B_MARK,
  2485. };
  2486. static const unsigned int msiof2_clk_c_pins[] = {
  2487. /* SCK */
  2488. RCAR_GP_PIN(2, 12),
  2489. };
  2490. static const unsigned int msiof2_clk_c_mux[] = {
  2491. MSIOF2_SCK_C_MARK,
  2492. };
  2493. static const unsigned int msiof2_sync_c_pins[] = {
  2494. /* SYNC */
  2495. RCAR_GP_PIN(2, 11),
  2496. };
  2497. static const unsigned int msiof2_sync_c_mux[] = {
  2498. MSIOF2_SYNC_C_MARK,
  2499. };
  2500. static const unsigned int msiof2_ss1_c_pins[] = {
  2501. /* SS1 */
  2502. RCAR_GP_PIN(2, 10),
  2503. };
  2504. static const unsigned int msiof2_ss1_c_mux[] = {
  2505. MSIOF2_SS1_C_MARK,
  2506. };
  2507. static const unsigned int msiof2_ss2_c_pins[] = {
  2508. /* SS2 */
  2509. RCAR_GP_PIN(2, 9),
  2510. };
  2511. static const unsigned int msiof2_ss2_c_mux[] = {
  2512. MSIOF2_SS2_C_MARK,
  2513. };
  2514. static const unsigned int msiof2_txd_c_pins[] = {
  2515. /* TXD */
  2516. RCAR_GP_PIN(2, 14),
  2517. };
  2518. static const unsigned int msiof2_txd_c_mux[] = {
  2519. MSIOF2_TXD_C_MARK,
  2520. };
  2521. static const unsigned int msiof2_rxd_c_pins[] = {
  2522. /* RXD */
  2523. RCAR_GP_PIN(2, 13),
  2524. };
  2525. static const unsigned int msiof2_rxd_c_mux[] = {
  2526. MSIOF2_RXD_C_MARK,
  2527. };
  2528. static const unsigned int msiof2_clk_d_pins[] = {
  2529. /* SCK */
  2530. RCAR_GP_PIN(0, 8),
  2531. };
  2532. static const unsigned int msiof2_clk_d_mux[] = {
  2533. MSIOF2_SCK_D_MARK,
  2534. };
  2535. static const unsigned int msiof2_sync_d_pins[] = {
  2536. /* SYNC */
  2537. RCAR_GP_PIN(0, 9),
  2538. };
  2539. static const unsigned int msiof2_sync_d_mux[] = {
  2540. MSIOF2_SYNC_D_MARK,
  2541. };
  2542. static const unsigned int msiof2_ss1_d_pins[] = {
  2543. /* SS1 */
  2544. RCAR_GP_PIN(0, 12),
  2545. };
  2546. static const unsigned int msiof2_ss1_d_mux[] = {
  2547. MSIOF2_SS1_D_MARK,
  2548. };
  2549. static const unsigned int msiof2_ss2_d_pins[] = {
  2550. /* SS2 */
  2551. RCAR_GP_PIN(0, 13),
  2552. };
  2553. static const unsigned int msiof2_ss2_d_mux[] = {
  2554. MSIOF2_SS2_D_MARK,
  2555. };
  2556. static const unsigned int msiof2_txd_d_pins[] = {
  2557. /* TXD */
  2558. RCAR_GP_PIN(0, 11),
  2559. };
  2560. static const unsigned int msiof2_txd_d_mux[] = {
  2561. MSIOF2_TXD_D_MARK,
  2562. };
  2563. static const unsigned int msiof2_rxd_d_pins[] = {
  2564. /* RXD */
  2565. RCAR_GP_PIN(0, 10),
  2566. };
  2567. static const unsigned int msiof2_rxd_d_mux[] = {
  2568. MSIOF2_RXD_D_MARK,
  2569. };
  2570. /* - MSIOF3 ----------------------------------------------------------------- */
  2571. static const unsigned int msiof3_clk_a_pins[] = {
  2572. /* SCK */
  2573. RCAR_GP_PIN(0, 0),
  2574. };
  2575. static const unsigned int msiof3_clk_a_mux[] = {
  2576. MSIOF3_SCK_A_MARK,
  2577. };
  2578. static const unsigned int msiof3_sync_a_pins[] = {
  2579. /* SYNC */
  2580. RCAR_GP_PIN(0, 1),
  2581. };
  2582. static const unsigned int msiof3_sync_a_mux[] = {
  2583. MSIOF3_SYNC_A_MARK,
  2584. };
  2585. static const unsigned int msiof3_ss1_a_pins[] = {
  2586. /* SS1 */
  2587. RCAR_GP_PIN(0, 14),
  2588. };
  2589. static const unsigned int msiof3_ss1_a_mux[] = {
  2590. MSIOF3_SS1_A_MARK,
  2591. };
  2592. static const unsigned int msiof3_ss2_a_pins[] = {
  2593. /* SS2 */
  2594. RCAR_GP_PIN(0, 15),
  2595. };
  2596. static const unsigned int msiof3_ss2_a_mux[] = {
  2597. MSIOF3_SS2_A_MARK,
  2598. };
  2599. static const unsigned int msiof3_txd_a_pins[] = {
  2600. /* TXD */
  2601. RCAR_GP_PIN(0, 3),
  2602. };
  2603. static const unsigned int msiof3_txd_a_mux[] = {
  2604. MSIOF3_TXD_A_MARK,
  2605. };
  2606. static const unsigned int msiof3_rxd_a_pins[] = {
  2607. /* RXD */
  2608. RCAR_GP_PIN(0, 2),
  2609. };
  2610. static const unsigned int msiof3_rxd_a_mux[] = {
  2611. MSIOF3_RXD_A_MARK,
  2612. };
  2613. static const unsigned int msiof3_clk_b_pins[] = {
  2614. /* SCK */
  2615. RCAR_GP_PIN(1, 2),
  2616. };
  2617. static const unsigned int msiof3_clk_b_mux[] = {
  2618. MSIOF3_SCK_B_MARK,
  2619. };
  2620. static const unsigned int msiof3_sync_b_pins[] = {
  2621. /* SYNC */
  2622. RCAR_GP_PIN(1, 0),
  2623. };
  2624. static const unsigned int msiof3_sync_b_mux[] = {
  2625. MSIOF3_SYNC_B_MARK,
  2626. };
  2627. static const unsigned int msiof3_ss1_b_pins[] = {
  2628. /* SS1 */
  2629. RCAR_GP_PIN(1, 4),
  2630. };
  2631. static const unsigned int msiof3_ss1_b_mux[] = {
  2632. MSIOF3_SS1_B_MARK,
  2633. };
  2634. static const unsigned int msiof3_ss2_b_pins[] = {
  2635. /* SS2 */
  2636. RCAR_GP_PIN(1, 5),
  2637. };
  2638. static const unsigned int msiof3_ss2_b_mux[] = {
  2639. MSIOF3_SS2_B_MARK,
  2640. };
  2641. static const unsigned int msiof3_txd_b_pins[] = {
  2642. /* TXD */
  2643. RCAR_GP_PIN(1, 1),
  2644. };
  2645. static const unsigned int msiof3_txd_b_mux[] = {
  2646. MSIOF3_TXD_B_MARK,
  2647. };
  2648. static const unsigned int msiof3_rxd_b_pins[] = {
  2649. /* RXD */
  2650. RCAR_GP_PIN(1, 3),
  2651. };
  2652. static const unsigned int msiof3_rxd_b_mux[] = {
  2653. MSIOF3_RXD_B_MARK,
  2654. };
  2655. static const unsigned int msiof3_clk_c_pins[] = {
  2656. /* SCK */
  2657. RCAR_GP_PIN(1, 12),
  2658. };
  2659. static const unsigned int msiof3_clk_c_mux[] = {
  2660. MSIOF3_SCK_C_MARK,
  2661. };
  2662. static const unsigned int msiof3_sync_c_pins[] = {
  2663. /* SYNC */
  2664. RCAR_GP_PIN(1, 13),
  2665. };
  2666. static const unsigned int msiof3_sync_c_mux[] = {
  2667. MSIOF3_SYNC_C_MARK,
  2668. };
  2669. static const unsigned int msiof3_txd_c_pins[] = {
  2670. /* TXD */
  2671. RCAR_GP_PIN(1, 15),
  2672. };
  2673. static const unsigned int msiof3_txd_c_mux[] = {
  2674. MSIOF3_TXD_C_MARK,
  2675. };
  2676. static const unsigned int msiof3_rxd_c_pins[] = {
  2677. /* RXD */
  2678. RCAR_GP_PIN(1, 14),
  2679. };
  2680. static const unsigned int msiof3_rxd_c_mux[] = {
  2681. MSIOF3_RXD_C_MARK,
  2682. };
  2683. static const unsigned int msiof3_clk_d_pins[] = {
  2684. /* SCK */
  2685. RCAR_GP_PIN(1, 22),
  2686. };
  2687. static const unsigned int msiof3_clk_d_mux[] = {
  2688. MSIOF3_SCK_D_MARK,
  2689. };
  2690. static const unsigned int msiof3_sync_d_pins[] = {
  2691. /* SYNC */
  2692. RCAR_GP_PIN(1, 23),
  2693. };
  2694. static const unsigned int msiof3_sync_d_mux[] = {
  2695. MSIOF3_SYNC_D_MARK,
  2696. };
  2697. static const unsigned int msiof3_ss1_d_pins[] = {
  2698. /* SS1 */
  2699. RCAR_GP_PIN(1, 26),
  2700. };
  2701. static const unsigned int msiof3_ss1_d_mux[] = {
  2702. MSIOF3_SS1_D_MARK,
  2703. };
  2704. static const unsigned int msiof3_txd_d_pins[] = {
  2705. /* TXD */
  2706. RCAR_GP_PIN(1, 25),
  2707. };
  2708. static const unsigned int msiof3_txd_d_mux[] = {
  2709. MSIOF3_TXD_D_MARK,
  2710. };
  2711. static const unsigned int msiof3_rxd_d_pins[] = {
  2712. /* RXD */
  2713. RCAR_GP_PIN(1, 24),
  2714. };
  2715. static const unsigned int msiof3_rxd_d_mux[] = {
  2716. MSIOF3_RXD_D_MARK,
  2717. };
  2718. static const unsigned int msiof3_clk_e_pins[] = {
  2719. /* SCK */
  2720. RCAR_GP_PIN(2, 3),
  2721. };
  2722. static const unsigned int msiof3_clk_e_mux[] = {
  2723. MSIOF3_SCK_E_MARK,
  2724. };
  2725. static const unsigned int msiof3_sync_e_pins[] = {
  2726. /* SYNC */
  2727. RCAR_GP_PIN(2, 2),
  2728. };
  2729. static const unsigned int msiof3_sync_e_mux[] = {
  2730. MSIOF3_SYNC_E_MARK,
  2731. };
  2732. static const unsigned int msiof3_ss1_e_pins[] = {
  2733. /* SS1 */
  2734. RCAR_GP_PIN(2, 1),
  2735. };
  2736. static const unsigned int msiof3_ss1_e_mux[] = {
  2737. MSIOF3_SS1_E_MARK,
  2738. };
  2739. static const unsigned int msiof3_ss2_e_pins[] = {
  2740. /* SS1 */
  2741. RCAR_GP_PIN(2, 0),
  2742. };
  2743. static const unsigned int msiof3_ss2_e_mux[] = {
  2744. MSIOF3_SS1_E_MARK,
  2745. };
  2746. static const unsigned int msiof3_txd_e_pins[] = {
  2747. /* TXD */
  2748. RCAR_GP_PIN(2, 5),
  2749. };
  2750. static const unsigned int msiof3_txd_e_mux[] = {
  2751. MSIOF3_TXD_E_MARK,
  2752. };
  2753. static const unsigned int msiof3_rxd_e_pins[] = {
  2754. /* RXD */
  2755. RCAR_GP_PIN(2, 4),
  2756. };
  2757. static const unsigned int msiof3_rxd_e_mux[] = {
  2758. MSIOF3_RXD_E_MARK,
  2759. };
  2760. /* - SCIF0 ------------------------------------------------------------------ */
  2761. static const unsigned int scif0_data_pins[] = {
  2762. /* RX, TX */
  2763. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  2764. };
  2765. static const unsigned int scif0_data_mux[] = {
  2766. RX0_MARK, TX0_MARK,
  2767. };
  2768. static const unsigned int scif0_clk_pins[] = {
  2769. /* SCK */
  2770. RCAR_GP_PIN(5, 0),
  2771. };
  2772. static const unsigned int scif0_clk_mux[] = {
  2773. SCK0_MARK,
  2774. };
  2775. static const unsigned int scif0_ctrl_pins[] = {
  2776. /* RTS, CTS */
  2777. RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
  2778. };
  2779. static const unsigned int scif0_ctrl_mux[] = {
  2780. RTS0_N_TANS_MARK, CTS0_N_MARK,
  2781. };
  2782. /* - SCIF1 ------------------------------------------------------------------ */
  2783. static const unsigned int scif1_data_a_pins[] = {
  2784. /* RX, TX */
  2785. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  2786. };
  2787. static const unsigned int scif1_data_a_mux[] = {
  2788. RX1_A_MARK, TX1_A_MARK,
  2789. };
  2790. static const unsigned int scif1_clk_pins[] = {
  2791. /* SCK */
  2792. RCAR_GP_PIN(6, 21),
  2793. };
  2794. static const unsigned int scif1_clk_mux[] = {
  2795. SCK1_MARK,
  2796. };
  2797. static const unsigned int scif1_ctrl_pins[] = {
  2798. /* RTS, CTS */
  2799. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 7),
  2800. };
  2801. static const unsigned int scif1_ctrl_mux[] = {
  2802. RTS1_N_TANS_MARK, CTS1_N_MARK,
  2803. };
  2804. static const unsigned int scif1_data_b_pins[] = {
  2805. /* RX, TX */
  2806. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25),
  2807. };
  2808. static const unsigned int scif1_data_b_mux[] = {
  2809. RX1_B_MARK, TX1_B_MARK,
  2810. };
  2811. /* - SCIF2 ------------------------------------------------------------------ */
  2812. static const unsigned int scif2_data_a_pins[] = {
  2813. /* RX, TX */
  2814. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  2815. };
  2816. static const unsigned int scif2_data_a_mux[] = {
  2817. RX2_A_MARK, TX2_A_MARK,
  2818. };
  2819. static const unsigned int scif2_clk_pins[] = {
  2820. /* SCK */
  2821. RCAR_GP_PIN(5, 9),
  2822. };
  2823. static const unsigned int scif2_clk_mux[] = {
  2824. SCK2_MARK,
  2825. };
  2826. static const unsigned int scif2_data_b_pins[] = {
  2827. /* RX, TX */
  2828. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  2829. };
  2830. static const unsigned int scif2_data_b_mux[] = {
  2831. RX2_B_MARK, TX2_B_MARK,
  2832. };
  2833. /* - SCIF3 ------------------------------------------------------------------ */
  2834. static const unsigned int scif3_data_a_pins[] = {
  2835. /* RX, TX */
  2836. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  2837. };
  2838. static const unsigned int scif3_data_a_mux[] = {
  2839. RX3_A_MARK, TX3_A_MARK,
  2840. };
  2841. static const unsigned int scif3_clk_pins[] = {
  2842. /* SCK */
  2843. RCAR_GP_PIN(1, 22),
  2844. };
  2845. static const unsigned int scif3_clk_mux[] = {
  2846. SCK3_MARK,
  2847. };
  2848. static const unsigned int scif3_ctrl_pins[] = {
  2849. /* RTS, CTS */
  2850. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  2851. };
  2852. static const unsigned int scif3_ctrl_mux[] = {
  2853. RTS3_N_TANS_MARK, CTS3_N_MARK,
  2854. };
  2855. static const unsigned int scif3_data_b_pins[] = {
  2856. /* RX, TX */
  2857. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  2858. };
  2859. static const unsigned int scif3_data_b_mux[] = {
  2860. RX3_B_MARK, TX3_B_MARK,
  2861. };
  2862. /* - SCIF4 ------------------------------------------------------------------ */
  2863. static const unsigned int scif4_data_a_pins[] = {
  2864. /* RX, TX */
  2865. RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
  2866. };
  2867. static const unsigned int scif4_data_a_mux[] = {
  2868. RX4_A_MARK, TX4_A_MARK,
  2869. };
  2870. static const unsigned int scif4_clk_a_pins[] = {
  2871. /* SCK */
  2872. RCAR_GP_PIN(2, 10),
  2873. };
  2874. static const unsigned int scif4_clk_a_mux[] = {
  2875. SCK4_A_MARK,
  2876. };
  2877. static const unsigned int scif4_ctrl_a_pins[] = {
  2878. /* RTS, CTS */
  2879. RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 13),
  2880. };
  2881. static const unsigned int scif4_ctrl_a_mux[] = {
  2882. RTS4_N_TANS_A_MARK, CTS4_N_A_MARK,
  2883. };
  2884. static const unsigned int scif4_data_b_pins[] = {
  2885. /* RX, TX */
  2886. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  2887. };
  2888. static const unsigned int scif4_data_b_mux[] = {
  2889. RX4_B_MARK, TX4_B_MARK,
  2890. };
  2891. static const unsigned int scif4_clk_b_pins[] = {
  2892. /* SCK */
  2893. RCAR_GP_PIN(1, 5),
  2894. };
  2895. static const unsigned int scif4_clk_b_mux[] = {
  2896. SCK4_B_MARK,
  2897. };
  2898. static const unsigned int scif4_ctrl_b_pins[] = {
  2899. /* RTS, CTS */
  2900. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 9),
  2901. };
  2902. static const unsigned int scif4_ctrl_b_mux[] = {
  2903. RTS4_N_TANS_B_MARK, CTS4_N_B_MARK,
  2904. };
  2905. static const unsigned int scif4_data_c_pins[] = {
  2906. /* RX, TX */
  2907. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
  2908. };
  2909. static const unsigned int scif4_data_c_mux[] = {
  2910. RX4_C_MARK, TX4_C_MARK,
  2911. };
  2912. static const unsigned int scif4_clk_c_pins[] = {
  2913. /* SCK */
  2914. RCAR_GP_PIN(0, 8),
  2915. };
  2916. static const unsigned int scif4_clk_c_mux[] = {
  2917. SCK4_C_MARK,
  2918. };
  2919. static const unsigned int scif4_ctrl_c_pins[] = {
  2920. /* RTS, CTS */
  2921. RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  2922. };
  2923. static const unsigned int scif4_ctrl_c_mux[] = {
  2924. RTS4_N_TANS_C_MARK, CTS4_N_C_MARK,
  2925. };
  2926. /* - SCIF5 ------------------------------------------------------------------ */
  2927. static const unsigned int scif5_data_a_pins[] = {
  2928. /* RX, TX */
  2929. RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 21),
  2930. };
  2931. static const unsigned int scif5_data_a_mux[] = {
  2932. RX5_A_MARK, TX5_A_MARK,
  2933. };
  2934. static const unsigned int scif5_clk_a_pins[] = {
  2935. /* SCK */
  2936. RCAR_GP_PIN(6, 21),
  2937. };
  2938. static const unsigned int scif5_clk_a_mux[] = {
  2939. SCK5_A_MARK,
  2940. };
  2941. static const unsigned int scif5_data_b_pins[] = {
  2942. /* RX, TX */
  2943. RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 18),
  2944. };
  2945. static const unsigned int scif5_data_b_mux[] = {
  2946. RX5_B_MARK, TX5_B_MARK,
  2947. };
  2948. static const unsigned int scif5_clk_b_pins[] = {
  2949. /* SCK */
  2950. RCAR_GP_PIN(5, 0),
  2951. };
  2952. static const unsigned int scif5_clk_b_mux[] = {
  2953. SCK5_B_MARK,
  2954. };
  2955. /* - SCIF Clock ------------------------------------------------------------- */
  2956. static const unsigned int scif_clk_a_pins[] = {
  2957. /* SCIF_CLK */
  2958. RCAR_GP_PIN(6, 23),
  2959. };
  2960. static const unsigned int scif_clk_a_mux[] = {
  2961. SCIF_CLK_A_MARK,
  2962. };
  2963. static const unsigned int scif_clk_b_pins[] = {
  2964. /* SCIF_CLK */
  2965. RCAR_GP_PIN(5, 9),
  2966. };
  2967. static const unsigned int scif_clk_b_mux[] = {
  2968. SCIF_CLK_B_MARK,
  2969. };
  2970. /* - SDHI0 ------------------------------------------------------------------ */
  2971. static const unsigned int sdhi0_data1_pins[] = {
  2972. /* D0 */
  2973. RCAR_GP_PIN(3, 2),
  2974. };
  2975. static const unsigned int sdhi0_data1_mux[] = {
  2976. SD0_DAT0_MARK,
  2977. };
  2978. static const unsigned int sdhi0_data4_pins[] = {
  2979. /* D[0:3] */
  2980. RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
  2981. RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
  2982. };
  2983. static const unsigned int sdhi0_data4_mux[] = {
  2984. SD0_DAT0_MARK, SD0_DAT1_MARK,
  2985. SD0_DAT2_MARK, SD0_DAT3_MARK,
  2986. };
  2987. static const unsigned int sdhi0_ctrl_pins[] = {
  2988. /* CLK, CMD */
  2989. RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
  2990. };
  2991. static const unsigned int sdhi0_ctrl_mux[] = {
  2992. SD0_CLK_MARK, SD0_CMD_MARK,
  2993. };
  2994. static const unsigned int sdhi0_cd_pins[] = {
  2995. /* CD */
  2996. RCAR_GP_PIN(3, 12),
  2997. };
  2998. static const unsigned int sdhi0_cd_mux[] = {
  2999. SD0_CD_MARK,
  3000. };
  3001. static const unsigned int sdhi0_wp_pins[] = {
  3002. /* WP */
  3003. RCAR_GP_PIN(3, 13),
  3004. };
  3005. static const unsigned int sdhi0_wp_mux[] = {
  3006. SD0_WP_MARK,
  3007. };
  3008. /* - SDHI1 ------------------------------------------------------------------ */
  3009. static const unsigned int sdhi1_data1_pins[] = {
  3010. /* D0 */
  3011. RCAR_GP_PIN(3, 8),
  3012. };
  3013. static const unsigned int sdhi1_data1_mux[] = {
  3014. SD1_DAT0_MARK,
  3015. };
  3016. static const unsigned int sdhi1_data4_pins[] = {
  3017. /* D[0:3] */
  3018. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  3019. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  3020. };
  3021. static const unsigned int sdhi1_data4_mux[] = {
  3022. SD1_DAT0_MARK, SD1_DAT1_MARK,
  3023. SD1_DAT2_MARK, SD1_DAT3_MARK,
  3024. };
  3025. static const unsigned int sdhi1_ctrl_pins[] = {
  3026. /* CLK, CMD */
  3027. RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
  3028. };
  3029. static const unsigned int sdhi1_ctrl_mux[] = {
  3030. SD1_CLK_MARK, SD1_CMD_MARK,
  3031. };
  3032. static const unsigned int sdhi1_cd_pins[] = {
  3033. /* CD */
  3034. RCAR_GP_PIN(3, 14),
  3035. };
  3036. static const unsigned int sdhi1_cd_mux[] = {
  3037. SD1_CD_MARK,
  3038. };
  3039. static const unsigned int sdhi1_wp_pins[] = {
  3040. /* WP */
  3041. RCAR_GP_PIN(3, 15),
  3042. };
  3043. static const unsigned int sdhi1_wp_mux[] = {
  3044. SD1_WP_MARK,
  3045. };
  3046. /* - SDHI2 ------------------------------------------------------------------ */
  3047. static const unsigned int sdhi2_data1_pins[] = {
  3048. /* D0 */
  3049. RCAR_GP_PIN(4, 2),
  3050. };
  3051. static const unsigned int sdhi2_data1_mux[] = {
  3052. SD2_DAT0_MARK,
  3053. };
  3054. static const unsigned int sdhi2_data4_pins[] = {
  3055. /* D[0:3] */
  3056. RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
  3057. RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
  3058. };
  3059. static const unsigned int sdhi2_data4_mux[] = {
  3060. SD2_DAT0_MARK, SD2_DAT1_MARK,
  3061. SD2_DAT2_MARK, SD2_DAT3_MARK,
  3062. };
  3063. static const unsigned int sdhi2_data8_pins[] = {
  3064. /* D[0:7] */
  3065. RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
  3066. RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
  3067. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  3068. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  3069. };
  3070. static const unsigned int sdhi2_data8_mux[] = {
  3071. SD2_DAT0_MARK, SD2_DAT1_MARK,
  3072. SD2_DAT2_MARK, SD2_DAT3_MARK,
  3073. SD2_DAT4_MARK, SD2_DAT5_MARK,
  3074. SD2_DAT6_MARK, SD2_DAT7_MARK,
  3075. };
  3076. static const unsigned int sdhi2_ctrl_pins[] = {
  3077. /* CLK, CMD */
  3078. RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
  3079. };
  3080. static const unsigned int sdhi2_ctrl_mux[] = {
  3081. SD2_CLK_MARK, SD2_CMD_MARK,
  3082. };
  3083. static const unsigned int sdhi2_cd_a_pins[] = {
  3084. /* CD */
  3085. RCAR_GP_PIN(4, 13),
  3086. };
  3087. static const unsigned int sdhi2_cd_a_mux[] = {
  3088. SD2_CD_A_MARK,
  3089. };
  3090. static const unsigned int sdhi2_cd_b_pins[] = {
  3091. /* CD */
  3092. RCAR_GP_PIN(5, 10),
  3093. };
  3094. static const unsigned int sdhi2_cd_b_mux[] = {
  3095. SD2_CD_B_MARK,
  3096. };
  3097. static const unsigned int sdhi2_wp_a_pins[] = {
  3098. /* WP */
  3099. RCAR_GP_PIN(4, 14),
  3100. };
  3101. static const unsigned int sdhi2_wp_a_mux[] = {
  3102. SD2_WP_A_MARK,
  3103. };
  3104. static const unsigned int sdhi2_wp_b_pins[] = {
  3105. /* WP */
  3106. RCAR_GP_PIN(5, 11),
  3107. };
  3108. static const unsigned int sdhi2_wp_b_mux[] = {
  3109. SD2_WP_B_MARK,
  3110. };
  3111. static const unsigned int sdhi2_ds_pins[] = {
  3112. /* DS */
  3113. RCAR_GP_PIN(4, 6),
  3114. };
  3115. static const unsigned int sdhi2_ds_mux[] = {
  3116. SD2_DS_MARK,
  3117. };
  3118. /* - SDHI3 ------------------------------------------------------------------ */
  3119. static const unsigned int sdhi3_data1_pins[] = {
  3120. /* D0 */
  3121. RCAR_GP_PIN(4, 9),
  3122. };
  3123. static const unsigned int sdhi3_data1_mux[] = {
  3124. SD3_DAT0_MARK,
  3125. };
  3126. static const unsigned int sdhi3_data4_pins[] = {
  3127. /* D[0:3] */
  3128. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  3129. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3130. };
  3131. static const unsigned int sdhi3_data4_mux[] = {
  3132. SD3_DAT0_MARK, SD3_DAT1_MARK,
  3133. SD3_DAT2_MARK, SD3_DAT3_MARK,
  3134. };
  3135. static const unsigned int sdhi3_data8_pins[] = {
  3136. /* D[0:7] */
  3137. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  3138. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3139. RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
  3140. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
  3141. };
  3142. static const unsigned int sdhi3_data8_mux[] = {
  3143. SD3_DAT0_MARK, SD3_DAT1_MARK,
  3144. SD3_DAT2_MARK, SD3_DAT3_MARK,
  3145. SD3_DAT4_MARK, SD3_DAT5_MARK,
  3146. SD3_DAT6_MARK, SD3_DAT7_MARK,
  3147. };
  3148. static const unsigned int sdhi3_ctrl_pins[] = {
  3149. /* CLK, CMD */
  3150. RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8),
  3151. };
  3152. static const unsigned int sdhi3_ctrl_mux[] = {
  3153. SD3_CLK_MARK, SD3_CMD_MARK,
  3154. };
  3155. static const unsigned int sdhi3_cd_pins[] = {
  3156. /* CD */
  3157. RCAR_GP_PIN(4, 15),
  3158. };
  3159. static const unsigned int sdhi3_cd_mux[] = {
  3160. SD3_CD_MARK,
  3161. };
  3162. static const unsigned int sdhi3_wp_pins[] = {
  3163. /* WP */
  3164. RCAR_GP_PIN(4, 16),
  3165. };
  3166. static const unsigned int sdhi3_wp_mux[] = {
  3167. SD3_WP_MARK,
  3168. };
  3169. static const unsigned int sdhi3_ds_pins[] = {
  3170. /* DS */
  3171. RCAR_GP_PIN(4, 17),
  3172. };
  3173. static const unsigned int sdhi3_ds_mux[] = {
  3174. SD3_DS_MARK,
  3175. };
  3176. static const struct sh_pfc_pin_group pinmux_groups[] = {
  3177. SH_PFC_PIN_GROUP(avb_link),
  3178. SH_PFC_PIN_GROUP(avb_magic),
  3179. SH_PFC_PIN_GROUP(avb_phy_int),
  3180. SH_PFC_PIN_GROUP(avb_mdc),
  3181. SH_PFC_PIN_GROUP(avb_avtp_pps),
  3182. SH_PFC_PIN_GROUP(avb_avtp_match_a),
  3183. SH_PFC_PIN_GROUP(avb_avtp_capture_a),
  3184. SH_PFC_PIN_GROUP(avb_avtp_match_b),
  3185. SH_PFC_PIN_GROUP(avb_avtp_capture_b),
  3186. SH_PFC_PIN_GROUP(can0_data_a),
  3187. SH_PFC_PIN_GROUP(can0_data_b),
  3188. SH_PFC_PIN_GROUP(can1_data),
  3189. SH_PFC_PIN_GROUP(can_clk),
  3190. SH_PFC_PIN_GROUP(canfd0_data_a),
  3191. SH_PFC_PIN_GROUP(canfd0_data_b),
  3192. SH_PFC_PIN_GROUP(canfd1_data),
  3193. SH_PFC_PIN_GROUP(drif0_ctrl_a),
  3194. SH_PFC_PIN_GROUP(drif0_data0_a),
  3195. SH_PFC_PIN_GROUP(drif0_data1_a),
  3196. SH_PFC_PIN_GROUP(drif0_ctrl_b),
  3197. SH_PFC_PIN_GROUP(drif0_data0_b),
  3198. SH_PFC_PIN_GROUP(drif0_data1_b),
  3199. SH_PFC_PIN_GROUP(drif0_ctrl_c),
  3200. SH_PFC_PIN_GROUP(drif0_data0_c),
  3201. SH_PFC_PIN_GROUP(drif0_data1_c),
  3202. SH_PFC_PIN_GROUP(drif1_ctrl_a),
  3203. SH_PFC_PIN_GROUP(drif1_data0_a),
  3204. SH_PFC_PIN_GROUP(drif1_data1_a),
  3205. SH_PFC_PIN_GROUP(drif1_ctrl_b),
  3206. SH_PFC_PIN_GROUP(drif1_data0_b),
  3207. SH_PFC_PIN_GROUP(drif1_data1_b),
  3208. SH_PFC_PIN_GROUP(drif1_ctrl_c),
  3209. SH_PFC_PIN_GROUP(drif1_data0_c),
  3210. SH_PFC_PIN_GROUP(drif1_data1_c),
  3211. SH_PFC_PIN_GROUP(drif2_ctrl_a),
  3212. SH_PFC_PIN_GROUP(drif2_data0_a),
  3213. SH_PFC_PIN_GROUP(drif2_data1_a),
  3214. SH_PFC_PIN_GROUP(drif2_ctrl_b),
  3215. SH_PFC_PIN_GROUP(drif2_data0_b),
  3216. SH_PFC_PIN_GROUP(drif2_data1_b),
  3217. SH_PFC_PIN_GROUP(drif3_ctrl_a),
  3218. SH_PFC_PIN_GROUP(drif3_data0_a),
  3219. SH_PFC_PIN_GROUP(drif3_data1_a),
  3220. SH_PFC_PIN_GROUP(drif3_ctrl_b),
  3221. SH_PFC_PIN_GROUP(drif3_data0_b),
  3222. SH_PFC_PIN_GROUP(drif3_data1_b),
  3223. SH_PFC_PIN_GROUP(du_rgb666),
  3224. SH_PFC_PIN_GROUP(du_rgb888),
  3225. SH_PFC_PIN_GROUP(du_clk_out_0),
  3226. SH_PFC_PIN_GROUP(du_clk_out_1),
  3227. SH_PFC_PIN_GROUP(du_sync),
  3228. SH_PFC_PIN_GROUP(du_oddf),
  3229. SH_PFC_PIN_GROUP(du_cde),
  3230. SH_PFC_PIN_GROUP(du_disp),
  3231. SH_PFC_PIN_GROUP(hscif0_data),
  3232. SH_PFC_PIN_GROUP(hscif0_clk),
  3233. SH_PFC_PIN_GROUP(hscif0_ctrl),
  3234. SH_PFC_PIN_GROUP(hscif1_data_a),
  3235. SH_PFC_PIN_GROUP(hscif1_clk_a),
  3236. SH_PFC_PIN_GROUP(hscif1_ctrl_a),
  3237. SH_PFC_PIN_GROUP(hscif1_data_b),
  3238. SH_PFC_PIN_GROUP(hscif1_clk_b),
  3239. SH_PFC_PIN_GROUP(hscif1_ctrl_b),
  3240. SH_PFC_PIN_GROUP(hscif2_data_a),
  3241. SH_PFC_PIN_GROUP(hscif2_clk_a),
  3242. SH_PFC_PIN_GROUP(hscif2_ctrl_a),
  3243. SH_PFC_PIN_GROUP(hscif2_data_b),
  3244. SH_PFC_PIN_GROUP(hscif2_clk_b),
  3245. SH_PFC_PIN_GROUP(hscif2_ctrl_b),
  3246. SH_PFC_PIN_GROUP(hscif2_data_c),
  3247. SH_PFC_PIN_GROUP(hscif2_clk_c),
  3248. SH_PFC_PIN_GROUP(hscif2_ctrl_c),
  3249. SH_PFC_PIN_GROUP(hscif3_data_a),
  3250. SH_PFC_PIN_GROUP(hscif3_clk),
  3251. SH_PFC_PIN_GROUP(hscif3_ctrl),
  3252. SH_PFC_PIN_GROUP(hscif3_data_b),
  3253. SH_PFC_PIN_GROUP(hscif3_data_c),
  3254. SH_PFC_PIN_GROUP(hscif3_data_d),
  3255. SH_PFC_PIN_GROUP(hscif4_data_a),
  3256. SH_PFC_PIN_GROUP(hscif4_clk),
  3257. SH_PFC_PIN_GROUP(hscif4_ctrl),
  3258. SH_PFC_PIN_GROUP(hscif4_data_b),
  3259. SH_PFC_PIN_GROUP(i2c1_a),
  3260. SH_PFC_PIN_GROUP(i2c1_b),
  3261. SH_PFC_PIN_GROUP(i2c2_a),
  3262. SH_PFC_PIN_GROUP(i2c2_b),
  3263. SH_PFC_PIN_GROUP(i2c6_a),
  3264. SH_PFC_PIN_GROUP(i2c6_b),
  3265. SH_PFC_PIN_GROUP(i2c6_c),
  3266. SH_PFC_PIN_GROUP(msiof0_clk),
  3267. SH_PFC_PIN_GROUP(msiof0_sync),
  3268. SH_PFC_PIN_GROUP(msiof0_ss1),
  3269. SH_PFC_PIN_GROUP(msiof0_ss2),
  3270. SH_PFC_PIN_GROUP(msiof0_txd),
  3271. SH_PFC_PIN_GROUP(msiof0_rxd),
  3272. SH_PFC_PIN_GROUP(msiof1_clk_a),
  3273. SH_PFC_PIN_GROUP(msiof1_sync_a),
  3274. SH_PFC_PIN_GROUP(msiof1_ss1_a),
  3275. SH_PFC_PIN_GROUP(msiof1_ss2_a),
  3276. SH_PFC_PIN_GROUP(msiof1_txd_a),
  3277. SH_PFC_PIN_GROUP(msiof1_rxd_a),
  3278. SH_PFC_PIN_GROUP(msiof1_clk_b),
  3279. SH_PFC_PIN_GROUP(msiof1_sync_b),
  3280. SH_PFC_PIN_GROUP(msiof1_ss1_b),
  3281. SH_PFC_PIN_GROUP(msiof1_ss2_b),
  3282. SH_PFC_PIN_GROUP(msiof1_txd_b),
  3283. SH_PFC_PIN_GROUP(msiof1_rxd_b),
  3284. SH_PFC_PIN_GROUP(msiof1_clk_c),
  3285. SH_PFC_PIN_GROUP(msiof1_sync_c),
  3286. SH_PFC_PIN_GROUP(msiof1_ss1_c),
  3287. SH_PFC_PIN_GROUP(msiof1_ss2_c),
  3288. SH_PFC_PIN_GROUP(msiof1_txd_c),
  3289. SH_PFC_PIN_GROUP(msiof1_rxd_c),
  3290. SH_PFC_PIN_GROUP(msiof1_clk_d),
  3291. SH_PFC_PIN_GROUP(msiof1_sync_d),
  3292. SH_PFC_PIN_GROUP(msiof1_ss1_d),
  3293. SH_PFC_PIN_GROUP(msiof1_ss2_d),
  3294. SH_PFC_PIN_GROUP(msiof1_txd_d),
  3295. SH_PFC_PIN_GROUP(msiof1_rxd_d),
  3296. SH_PFC_PIN_GROUP(msiof1_clk_e),
  3297. SH_PFC_PIN_GROUP(msiof1_sync_e),
  3298. SH_PFC_PIN_GROUP(msiof1_ss1_e),
  3299. SH_PFC_PIN_GROUP(msiof1_ss2_e),
  3300. SH_PFC_PIN_GROUP(msiof1_txd_e),
  3301. SH_PFC_PIN_GROUP(msiof1_rxd_e),
  3302. SH_PFC_PIN_GROUP(msiof1_clk_f),
  3303. SH_PFC_PIN_GROUP(msiof1_sync_f),
  3304. SH_PFC_PIN_GROUP(msiof1_ss1_f),
  3305. SH_PFC_PIN_GROUP(msiof1_ss2_f),
  3306. SH_PFC_PIN_GROUP(msiof1_txd_f),
  3307. SH_PFC_PIN_GROUP(msiof1_rxd_f),
  3308. SH_PFC_PIN_GROUP(msiof1_clk_g),
  3309. SH_PFC_PIN_GROUP(msiof1_sync_g),
  3310. SH_PFC_PIN_GROUP(msiof1_ss1_g),
  3311. SH_PFC_PIN_GROUP(msiof1_ss2_g),
  3312. SH_PFC_PIN_GROUP(msiof1_txd_g),
  3313. SH_PFC_PIN_GROUP(msiof1_rxd_g),
  3314. SH_PFC_PIN_GROUP(msiof2_clk_a),
  3315. SH_PFC_PIN_GROUP(msiof2_sync_a),
  3316. SH_PFC_PIN_GROUP(msiof2_ss1_a),
  3317. SH_PFC_PIN_GROUP(msiof2_ss2_a),
  3318. SH_PFC_PIN_GROUP(msiof2_txd_a),
  3319. SH_PFC_PIN_GROUP(msiof2_rxd_a),
  3320. SH_PFC_PIN_GROUP(msiof2_clk_b),
  3321. SH_PFC_PIN_GROUP(msiof2_sync_b),
  3322. SH_PFC_PIN_GROUP(msiof2_ss1_b),
  3323. SH_PFC_PIN_GROUP(msiof2_ss2_b),
  3324. SH_PFC_PIN_GROUP(msiof2_txd_b),
  3325. SH_PFC_PIN_GROUP(msiof2_rxd_b),
  3326. SH_PFC_PIN_GROUP(msiof2_clk_c),
  3327. SH_PFC_PIN_GROUP(msiof2_sync_c),
  3328. SH_PFC_PIN_GROUP(msiof2_ss1_c),
  3329. SH_PFC_PIN_GROUP(msiof2_ss2_c),
  3330. SH_PFC_PIN_GROUP(msiof2_txd_c),
  3331. SH_PFC_PIN_GROUP(msiof2_rxd_c),
  3332. SH_PFC_PIN_GROUP(msiof2_clk_d),
  3333. SH_PFC_PIN_GROUP(msiof2_sync_d),
  3334. SH_PFC_PIN_GROUP(msiof2_ss1_d),
  3335. SH_PFC_PIN_GROUP(msiof2_ss2_d),
  3336. SH_PFC_PIN_GROUP(msiof2_txd_d),
  3337. SH_PFC_PIN_GROUP(msiof2_rxd_d),
  3338. SH_PFC_PIN_GROUP(msiof3_clk_a),
  3339. SH_PFC_PIN_GROUP(msiof3_sync_a),
  3340. SH_PFC_PIN_GROUP(msiof3_ss1_a),
  3341. SH_PFC_PIN_GROUP(msiof3_ss2_a),
  3342. SH_PFC_PIN_GROUP(msiof3_txd_a),
  3343. SH_PFC_PIN_GROUP(msiof3_rxd_a),
  3344. SH_PFC_PIN_GROUP(msiof3_clk_b),
  3345. SH_PFC_PIN_GROUP(msiof3_sync_b),
  3346. SH_PFC_PIN_GROUP(msiof3_ss1_b),
  3347. SH_PFC_PIN_GROUP(msiof3_ss2_b),
  3348. SH_PFC_PIN_GROUP(msiof3_txd_b),
  3349. SH_PFC_PIN_GROUP(msiof3_rxd_b),
  3350. SH_PFC_PIN_GROUP(msiof3_clk_c),
  3351. SH_PFC_PIN_GROUP(msiof3_sync_c),
  3352. SH_PFC_PIN_GROUP(msiof3_txd_c),
  3353. SH_PFC_PIN_GROUP(msiof3_rxd_c),
  3354. SH_PFC_PIN_GROUP(msiof3_clk_d),
  3355. SH_PFC_PIN_GROUP(msiof3_sync_d),
  3356. SH_PFC_PIN_GROUP(msiof3_ss1_d),
  3357. SH_PFC_PIN_GROUP(msiof3_txd_d),
  3358. SH_PFC_PIN_GROUP(msiof3_rxd_d),
  3359. SH_PFC_PIN_GROUP(msiof3_clk_e),
  3360. SH_PFC_PIN_GROUP(msiof3_sync_e),
  3361. SH_PFC_PIN_GROUP(msiof3_ss1_e),
  3362. SH_PFC_PIN_GROUP(msiof3_ss2_e),
  3363. SH_PFC_PIN_GROUP(msiof3_txd_e),
  3364. SH_PFC_PIN_GROUP(msiof3_rxd_e),
  3365. SH_PFC_PIN_GROUP(scif0_data),
  3366. SH_PFC_PIN_GROUP(scif0_clk),
  3367. SH_PFC_PIN_GROUP(scif0_ctrl),
  3368. SH_PFC_PIN_GROUP(scif1_data_a),
  3369. SH_PFC_PIN_GROUP(scif1_clk),
  3370. SH_PFC_PIN_GROUP(scif1_ctrl),
  3371. SH_PFC_PIN_GROUP(scif1_data_b),
  3372. SH_PFC_PIN_GROUP(scif2_data_a),
  3373. SH_PFC_PIN_GROUP(scif2_clk),
  3374. SH_PFC_PIN_GROUP(scif2_data_b),
  3375. SH_PFC_PIN_GROUP(scif3_data_a),
  3376. SH_PFC_PIN_GROUP(scif3_clk),
  3377. SH_PFC_PIN_GROUP(scif3_ctrl),
  3378. SH_PFC_PIN_GROUP(scif3_data_b),
  3379. SH_PFC_PIN_GROUP(scif4_data_a),
  3380. SH_PFC_PIN_GROUP(scif4_clk_a),
  3381. SH_PFC_PIN_GROUP(scif4_ctrl_a),
  3382. SH_PFC_PIN_GROUP(scif4_data_b),
  3383. SH_PFC_PIN_GROUP(scif4_clk_b),
  3384. SH_PFC_PIN_GROUP(scif4_ctrl_b),
  3385. SH_PFC_PIN_GROUP(scif4_data_c),
  3386. SH_PFC_PIN_GROUP(scif4_clk_c),
  3387. SH_PFC_PIN_GROUP(scif4_ctrl_c),
  3388. SH_PFC_PIN_GROUP(scif5_data_a),
  3389. SH_PFC_PIN_GROUP(scif5_clk_a),
  3390. SH_PFC_PIN_GROUP(scif5_data_b),
  3391. SH_PFC_PIN_GROUP(scif5_clk_b),
  3392. SH_PFC_PIN_GROUP(scif_clk_a),
  3393. SH_PFC_PIN_GROUP(scif_clk_b),
  3394. SH_PFC_PIN_GROUP(sdhi0_data1),
  3395. SH_PFC_PIN_GROUP(sdhi0_data4),
  3396. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  3397. SH_PFC_PIN_GROUP(sdhi0_cd),
  3398. SH_PFC_PIN_GROUP(sdhi0_wp),
  3399. SH_PFC_PIN_GROUP(sdhi1_data1),
  3400. SH_PFC_PIN_GROUP(sdhi1_data4),
  3401. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  3402. SH_PFC_PIN_GROUP(sdhi1_cd),
  3403. SH_PFC_PIN_GROUP(sdhi1_wp),
  3404. SH_PFC_PIN_GROUP(sdhi2_data1),
  3405. SH_PFC_PIN_GROUP(sdhi2_data4),
  3406. SH_PFC_PIN_GROUP(sdhi2_data8),
  3407. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  3408. SH_PFC_PIN_GROUP(sdhi2_cd_a),
  3409. SH_PFC_PIN_GROUP(sdhi2_wp_a),
  3410. SH_PFC_PIN_GROUP(sdhi2_cd_b),
  3411. SH_PFC_PIN_GROUP(sdhi2_wp_b),
  3412. SH_PFC_PIN_GROUP(sdhi2_ds),
  3413. SH_PFC_PIN_GROUP(sdhi3_data1),
  3414. SH_PFC_PIN_GROUP(sdhi3_data4),
  3415. SH_PFC_PIN_GROUP(sdhi3_data8),
  3416. SH_PFC_PIN_GROUP(sdhi3_ctrl),
  3417. SH_PFC_PIN_GROUP(sdhi3_cd),
  3418. SH_PFC_PIN_GROUP(sdhi3_wp),
  3419. SH_PFC_PIN_GROUP(sdhi3_ds),
  3420. };
  3421. static const char * const avb_groups[] = {
  3422. "avb_link",
  3423. "avb_magic",
  3424. "avb_phy_int",
  3425. "avb_mdc",
  3426. "avb_avtp_pps",
  3427. "avb_avtp_match_a",
  3428. "avb_avtp_capture_a",
  3429. "avb_avtp_match_b",
  3430. "avb_avtp_capture_b",
  3431. };
  3432. static const char * const can0_groups[] = {
  3433. "can0_data_a",
  3434. "can0_data_b",
  3435. };
  3436. static const char * const can1_groups[] = {
  3437. "can1_data",
  3438. };
  3439. static const char * const can_clk_groups[] = {
  3440. "can_clk",
  3441. };
  3442. static const char * const canfd0_groups[] = {
  3443. "canfd0_data_a",
  3444. "canfd0_data_b",
  3445. };
  3446. static const char * const canfd1_groups[] = {
  3447. "canfd1_data",
  3448. };
  3449. static const char * const drif0_groups[] = {
  3450. "drif0_ctrl_a",
  3451. "drif0_data0_a",
  3452. "drif0_data1_a",
  3453. "drif0_ctrl_b",
  3454. "drif0_data0_b",
  3455. "drif0_data1_b",
  3456. "drif0_ctrl_c",
  3457. "drif0_data0_c",
  3458. "drif0_data1_c",
  3459. };
  3460. static const char * const drif1_groups[] = {
  3461. "drif1_ctrl_a",
  3462. "drif1_data0_a",
  3463. "drif1_data1_a",
  3464. "drif1_ctrl_b",
  3465. "drif1_data0_b",
  3466. "drif1_data1_b",
  3467. "drif1_ctrl_c",
  3468. "drif1_data0_c",
  3469. "drif1_data1_c",
  3470. };
  3471. static const char * const drif2_groups[] = {
  3472. "drif2_ctrl_a",
  3473. "drif2_data0_a",
  3474. "drif2_data1_a",
  3475. "drif2_ctrl_b",
  3476. "drif2_data0_b",
  3477. "drif2_data1_b",
  3478. };
  3479. static const char * const drif3_groups[] = {
  3480. "drif3_ctrl_a",
  3481. "drif3_data0_a",
  3482. "drif3_data1_a",
  3483. "drif3_ctrl_b",
  3484. "drif3_data0_b",
  3485. "drif3_data1_b",
  3486. };
  3487. static const char * const du_groups[] = {
  3488. "du_rgb666",
  3489. "du_rgb888",
  3490. "du_clk_out_0",
  3491. "du_clk_out_1",
  3492. "du_sync",
  3493. "du_oddf",
  3494. "du_cde",
  3495. "du_disp",
  3496. };
  3497. static const char * const hscif0_groups[] = {
  3498. "hscif0_data",
  3499. "hscif0_clk",
  3500. "hscif0_ctrl",
  3501. };
  3502. static const char * const hscif1_groups[] = {
  3503. "hscif1_data_a",
  3504. "hscif1_clk_a",
  3505. "hscif1_ctrl_a",
  3506. "hscif1_data_b",
  3507. "hscif1_clk_b",
  3508. "hscif1_ctrl_b",
  3509. };
  3510. static const char * const hscif2_groups[] = {
  3511. "hscif2_data_a",
  3512. "hscif2_clk_a",
  3513. "hscif2_ctrl_a",
  3514. "hscif2_data_b",
  3515. "hscif2_clk_b",
  3516. "hscif2_ctrl_b",
  3517. "hscif2_data_c",
  3518. "hscif2_clk_c",
  3519. "hscif2_ctrl_c",
  3520. };
  3521. static const char * const hscif3_groups[] = {
  3522. "hscif3_data_a",
  3523. "hscif3_clk",
  3524. "hscif3_ctrl",
  3525. "hscif3_data_b",
  3526. "hscif3_data_c",
  3527. "hscif3_data_d",
  3528. };
  3529. static const char * const hscif4_groups[] = {
  3530. "hscif4_data_a",
  3531. "hscif4_clk",
  3532. "hscif4_ctrl",
  3533. "hscif4_data_b",
  3534. };
  3535. static const char * const i2c1_groups[] = {
  3536. "i2c1_a",
  3537. "i2c1_b",
  3538. };
  3539. static const char * const i2c2_groups[] = {
  3540. "i2c2_a",
  3541. "i2c2_b",
  3542. };
  3543. static const char * const i2c6_groups[] = {
  3544. "i2c6_a",
  3545. "i2c6_b",
  3546. "i2c6_c",
  3547. };
  3548. static const char * const msiof0_groups[] = {
  3549. "msiof0_clk",
  3550. "msiof0_sync",
  3551. "msiof0_ss1",
  3552. "msiof0_ss2",
  3553. "msiof0_txd",
  3554. "msiof0_rxd",
  3555. };
  3556. static const char * const msiof1_groups[] = {
  3557. "msiof1_clk_a",
  3558. "msiof1_sync_a",
  3559. "msiof1_ss1_a",
  3560. "msiof1_ss2_a",
  3561. "msiof1_txd_a",
  3562. "msiof1_rxd_a",
  3563. "msiof1_clk_b",
  3564. "msiof1_sync_b",
  3565. "msiof1_ss1_b",
  3566. "msiof1_ss2_b",
  3567. "msiof1_txd_b",
  3568. "msiof1_rxd_b",
  3569. "msiof1_clk_c",
  3570. "msiof1_sync_c",
  3571. "msiof1_ss1_c",
  3572. "msiof1_ss2_c",
  3573. "msiof1_txd_c",
  3574. "msiof1_rxd_c",
  3575. "msiof1_clk_d",
  3576. "msiof1_sync_d",
  3577. "msiof1_ss1_d",
  3578. "msiof1_ss2_d",
  3579. "msiof1_txd_d",
  3580. "msiof1_rxd_d",
  3581. "msiof1_clk_e",
  3582. "msiof1_sync_e",
  3583. "msiof1_ss1_e",
  3584. "msiof1_ss2_e",
  3585. "msiof1_txd_e",
  3586. "msiof1_rxd_e",
  3587. "msiof1_clk_f",
  3588. "msiof1_sync_f",
  3589. "msiof1_ss1_f",
  3590. "msiof1_ss2_f",
  3591. "msiof1_txd_f",
  3592. "msiof1_rxd_f",
  3593. "msiof1_clk_g",
  3594. "msiof1_sync_g",
  3595. "msiof1_ss1_g",
  3596. "msiof1_ss2_g",
  3597. "msiof1_txd_g",
  3598. "msiof1_rxd_g",
  3599. };
  3600. static const char * const msiof2_groups[] = {
  3601. "msiof2_clk_a",
  3602. "msiof2_sync_a",
  3603. "msiof2_ss1_a",
  3604. "msiof2_ss2_a",
  3605. "msiof2_txd_a",
  3606. "msiof2_rxd_a",
  3607. "msiof2_clk_b",
  3608. "msiof2_sync_b",
  3609. "msiof2_ss1_b",
  3610. "msiof2_ss2_b",
  3611. "msiof2_txd_b",
  3612. "msiof2_rxd_b",
  3613. "msiof2_clk_c",
  3614. "msiof2_sync_c",
  3615. "msiof2_ss1_c",
  3616. "msiof2_ss2_c",
  3617. "msiof2_txd_c",
  3618. "msiof2_rxd_c",
  3619. "msiof2_clk_d",
  3620. "msiof2_sync_d",
  3621. "msiof2_ss1_d",
  3622. "msiof2_ss2_d",
  3623. "msiof2_txd_d",
  3624. "msiof2_rxd_d",
  3625. };
  3626. static const char * const msiof3_groups[] = {
  3627. "msiof3_clk_a",
  3628. "msiof3_sync_a",
  3629. "msiof3_ss1_a",
  3630. "msiof3_ss2_a",
  3631. "msiof3_txd_a",
  3632. "msiof3_rxd_a",
  3633. "msiof3_clk_b",
  3634. "msiof3_sync_b",
  3635. "msiof3_ss1_b",
  3636. "msiof3_ss2_b",
  3637. "msiof3_txd_b",
  3638. "msiof3_rxd_b",
  3639. "msiof3_clk_c",
  3640. "msiof3_sync_c",
  3641. "msiof3_txd_c",
  3642. "msiof3_rxd_c",
  3643. "msiof3_clk_d",
  3644. "msiof3_sync_d",
  3645. "msiof3_ss1_d",
  3646. "msiof3_txd_d",
  3647. "msiof3_rxd_d",
  3648. "msiof3_clk_e",
  3649. "msiof3_sync_e",
  3650. "msiof3_ss1_e",
  3651. "msiof3_ss2_e",
  3652. "msiof3_txd_e",
  3653. "msiof3_rxd_e",
  3654. };
  3655. static const char * const scif0_groups[] = {
  3656. "scif0_data",
  3657. "scif0_clk",
  3658. "scif0_ctrl",
  3659. };
  3660. static const char * const scif1_groups[] = {
  3661. "scif1_data_a",
  3662. "scif1_clk",
  3663. "scif1_ctrl",
  3664. "scif1_data_b",
  3665. };
  3666. static const char * const scif2_groups[] = {
  3667. "scif2_data_a",
  3668. "scif2_clk",
  3669. "scif2_data_b",
  3670. };
  3671. static const char * const scif3_groups[] = {
  3672. "scif3_data_a",
  3673. "scif3_clk",
  3674. "scif3_ctrl",
  3675. "scif3_data_b",
  3676. };
  3677. static const char * const scif4_groups[] = {
  3678. "scif4_data_a",
  3679. "scif4_clk_a",
  3680. "scif4_ctrl_a",
  3681. "scif4_data_b",
  3682. "scif4_clk_b",
  3683. "scif4_ctrl_b",
  3684. "scif4_data_c",
  3685. "scif4_clk_c",
  3686. "scif4_ctrl_c",
  3687. };
  3688. static const char * const scif5_groups[] = {
  3689. "scif5_data_a",
  3690. "scif5_clk_a",
  3691. "scif5_data_b",
  3692. "scif5_clk_b",
  3693. };
  3694. static const char * const scif_clk_groups[] = {
  3695. "scif_clk_a",
  3696. "scif_clk_b",
  3697. };
  3698. static const char * const sdhi0_groups[] = {
  3699. "sdhi0_data1",
  3700. "sdhi0_data4",
  3701. "sdhi0_ctrl",
  3702. "sdhi0_cd",
  3703. "sdhi0_wp",
  3704. };
  3705. static const char * const sdhi1_groups[] = {
  3706. "sdhi1_data1",
  3707. "sdhi1_data4",
  3708. "sdhi1_ctrl",
  3709. "sdhi1_cd",
  3710. "sdhi1_wp",
  3711. };
  3712. static const char * const sdhi2_groups[] = {
  3713. "sdhi2_data1",
  3714. "sdhi2_data4",
  3715. "sdhi2_data8",
  3716. "sdhi2_ctrl",
  3717. "sdhi2_cd_a",
  3718. "sdhi2_wp_a",
  3719. "sdhi2_cd_b",
  3720. "sdhi2_wp_b",
  3721. "sdhi2_ds",
  3722. };
  3723. static const char * const sdhi3_groups[] = {
  3724. "sdhi3_data1",
  3725. "sdhi3_data4",
  3726. "sdhi3_data8",
  3727. "sdhi3_ctrl",
  3728. "sdhi3_cd",
  3729. "sdhi3_wp",
  3730. "sdhi3_ds",
  3731. };
  3732. static const struct sh_pfc_function pinmux_functions[] = {
  3733. SH_PFC_FUNCTION(avb),
  3734. SH_PFC_FUNCTION(can0),
  3735. SH_PFC_FUNCTION(can1),
  3736. SH_PFC_FUNCTION(can_clk),
  3737. SH_PFC_FUNCTION(canfd0),
  3738. SH_PFC_FUNCTION(canfd1),
  3739. SH_PFC_FUNCTION(drif0),
  3740. SH_PFC_FUNCTION(drif1),
  3741. SH_PFC_FUNCTION(drif2),
  3742. SH_PFC_FUNCTION(drif3),
  3743. SH_PFC_FUNCTION(du),
  3744. SH_PFC_FUNCTION(hscif0),
  3745. SH_PFC_FUNCTION(hscif1),
  3746. SH_PFC_FUNCTION(hscif2),
  3747. SH_PFC_FUNCTION(hscif3),
  3748. SH_PFC_FUNCTION(hscif4),
  3749. SH_PFC_FUNCTION(i2c1),
  3750. SH_PFC_FUNCTION(i2c2),
  3751. SH_PFC_FUNCTION(i2c6),
  3752. SH_PFC_FUNCTION(msiof0),
  3753. SH_PFC_FUNCTION(msiof1),
  3754. SH_PFC_FUNCTION(msiof2),
  3755. SH_PFC_FUNCTION(msiof3),
  3756. SH_PFC_FUNCTION(scif0),
  3757. SH_PFC_FUNCTION(scif1),
  3758. SH_PFC_FUNCTION(scif2),
  3759. SH_PFC_FUNCTION(scif3),
  3760. SH_PFC_FUNCTION(scif4),
  3761. SH_PFC_FUNCTION(scif5),
  3762. SH_PFC_FUNCTION(scif_clk),
  3763. SH_PFC_FUNCTION(sdhi0),
  3764. SH_PFC_FUNCTION(sdhi1),
  3765. SH_PFC_FUNCTION(sdhi2),
  3766. SH_PFC_FUNCTION(sdhi3),
  3767. };
  3768. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  3769. #define F_(x, y) FN_##y
  3770. #define FM(x) FN_##x
  3771. { PINMUX_CFG_REG("GPSR0", 0xe6060100, 32, 1) {
  3772. 0, 0,
  3773. 0, 0,
  3774. 0, 0,
  3775. 0, 0,
  3776. 0, 0,
  3777. 0, 0,
  3778. 0, 0,
  3779. 0, 0,
  3780. 0, 0,
  3781. 0, 0,
  3782. 0, 0,
  3783. 0, 0,
  3784. 0, 0,
  3785. 0, 0,
  3786. 0, 0,
  3787. 0, 0,
  3788. GP_0_15_FN, GPSR0_15,
  3789. GP_0_14_FN, GPSR0_14,
  3790. GP_0_13_FN, GPSR0_13,
  3791. GP_0_12_FN, GPSR0_12,
  3792. GP_0_11_FN, GPSR0_11,
  3793. GP_0_10_FN, GPSR0_10,
  3794. GP_0_9_FN, GPSR0_9,
  3795. GP_0_8_FN, GPSR0_8,
  3796. GP_0_7_FN, GPSR0_7,
  3797. GP_0_6_FN, GPSR0_6,
  3798. GP_0_5_FN, GPSR0_5,
  3799. GP_0_4_FN, GPSR0_4,
  3800. GP_0_3_FN, GPSR0_3,
  3801. GP_0_2_FN, GPSR0_2,
  3802. GP_0_1_FN, GPSR0_1,
  3803. GP_0_0_FN, GPSR0_0, }
  3804. },
  3805. { PINMUX_CFG_REG("GPSR1", 0xe6060104, 32, 1) {
  3806. 0, 0,
  3807. 0, 0,
  3808. 0, 0,
  3809. GP_1_28_FN, GPSR1_28,
  3810. GP_1_27_FN, GPSR1_27,
  3811. GP_1_26_FN, GPSR1_26,
  3812. GP_1_25_FN, GPSR1_25,
  3813. GP_1_24_FN, GPSR1_24,
  3814. GP_1_23_FN, GPSR1_23,
  3815. GP_1_22_FN, GPSR1_22,
  3816. GP_1_21_FN, GPSR1_21,
  3817. GP_1_20_FN, GPSR1_20,
  3818. GP_1_19_FN, GPSR1_19,
  3819. GP_1_18_FN, GPSR1_18,
  3820. GP_1_17_FN, GPSR1_17,
  3821. GP_1_16_FN, GPSR1_16,
  3822. GP_1_15_FN, GPSR1_15,
  3823. GP_1_14_FN, GPSR1_14,
  3824. GP_1_13_FN, GPSR1_13,
  3825. GP_1_12_FN, GPSR1_12,
  3826. GP_1_11_FN, GPSR1_11,
  3827. GP_1_10_FN, GPSR1_10,
  3828. GP_1_9_FN, GPSR1_9,
  3829. GP_1_8_FN, GPSR1_8,
  3830. GP_1_7_FN, GPSR1_7,
  3831. GP_1_6_FN, GPSR1_6,
  3832. GP_1_5_FN, GPSR1_5,
  3833. GP_1_4_FN, GPSR1_4,
  3834. GP_1_3_FN, GPSR1_3,
  3835. GP_1_2_FN, GPSR1_2,
  3836. GP_1_1_FN, GPSR1_1,
  3837. GP_1_0_FN, GPSR1_0, }
  3838. },
  3839. { PINMUX_CFG_REG("GPSR2", 0xe6060108, 32, 1) {
  3840. 0, 0,
  3841. 0, 0,
  3842. 0, 0,
  3843. 0, 0,
  3844. 0, 0,
  3845. 0, 0,
  3846. 0, 0,
  3847. 0, 0,
  3848. 0, 0,
  3849. 0, 0,
  3850. 0, 0,
  3851. 0, 0,
  3852. 0, 0,
  3853. 0, 0,
  3854. 0, 0,
  3855. 0, 0,
  3856. 0, 0,
  3857. GP_2_14_FN, GPSR2_14,
  3858. GP_2_13_FN, GPSR2_13,
  3859. GP_2_12_FN, GPSR2_12,
  3860. GP_2_11_FN, GPSR2_11,
  3861. GP_2_10_FN, GPSR2_10,
  3862. GP_2_9_FN, GPSR2_9,
  3863. GP_2_8_FN, GPSR2_8,
  3864. GP_2_7_FN, GPSR2_7,
  3865. GP_2_6_FN, GPSR2_6,
  3866. GP_2_5_FN, GPSR2_5,
  3867. GP_2_4_FN, GPSR2_4,
  3868. GP_2_3_FN, GPSR2_3,
  3869. GP_2_2_FN, GPSR2_2,
  3870. GP_2_1_FN, GPSR2_1,
  3871. GP_2_0_FN, GPSR2_0, }
  3872. },
  3873. { PINMUX_CFG_REG("GPSR3", 0xe606010c, 32, 1) {
  3874. 0, 0,
  3875. 0, 0,
  3876. 0, 0,
  3877. 0, 0,
  3878. 0, 0,
  3879. 0, 0,
  3880. 0, 0,
  3881. 0, 0,
  3882. 0, 0,
  3883. 0, 0,
  3884. 0, 0,
  3885. 0, 0,
  3886. 0, 0,
  3887. 0, 0,
  3888. 0, 0,
  3889. 0, 0,
  3890. GP_3_15_FN, GPSR3_15,
  3891. GP_3_14_FN, GPSR3_14,
  3892. GP_3_13_FN, GPSR3_13,
  3893. GP_3_12_FN, GPSR3_12,
  3894. GP_3_11_FN, GPSR3_11,
  3895. GP_3_10_FN, GPSR3_10,
  3896. GP_3_9_FN, GPSR3_9,
  3897. GP_3_8_FN, GPSR3_8,
  3898. GP_3_7_FN, GPSR3_7,
  3899. GP_3_6_FN, GPSR3_6,
  3900. GP_3_5_FN, GPSR3_5,
  3901. GP_3_4_FN, GPSR3_4,
  3902. GP_3_3_FN, GPSR3_3,
  3903. GP_3_2_FN, GPSR3_2,
  3904. GP_3_1_FN, GPSR3_1,
  3905. GP_3_0_FN, GPSR3_0, }
  3906. },
  3907. { PINMUX_CFG_REG("GPSR4", 0xe6060110, 32, 1) {
  3908. 0, 0,
  3909. 0, 0,
  3910. 0, 0,
  3911. 0, 0,
  3912. 0, 0,
  3913. 0, 0,
  3914. 0, 0,
  3915. 0, 0,
  3916. 0, 0,
  3917. 0, 0,
  3918. 0, 0,
  3919. 0, 0,
  3920. 0, 0,
  3921. 0, 0,
  3922. GP_4_17_FN, GPSR4_17,
  3923. GP_4_16_FN, GPSR4_16,
  3924. GP_4_15_FN, GPSR4_15,
  3925. GP_4_14_FN, GPSR4_14,
  3926. GP_4_13_FN, GPSR4_13,
  3927. GP_4_12_FN, GPSR4_12,
  3928. GP_4_11_FN, GPSR4_11,
  3929. GP_4_10_FN, GPSR4_10,
  3930. GP_4_9_FN, GPSR4_9,
  3931. GP_4_8_FN, GPSR4_8,
  3932. GP_4_7_FN, GPSR4_7,
  3933. GP_4_6_FN, GPSR4_6,
  3934. GP_4_5_FN, GPSR4_5,
  3935. GP_4_4_FN, GPSR4_4,
  3936. GP_4_3_FN, GPSR4_3,
  3937. GP_4_2_FN, GPSR4_2,
  3938. GP_4_1_FN, GPSR4_1,
  3939. GP_4_0_FN, GPSR4_0, }
  3940. },
  3941. { PINMUX_CFG_REG("GPSR5", 0xe6060114, 32, 1) {
  3942. 0, 0,
  3943. 0, 0,
  3944. 0, 0,
  3945. 0, 0,
  3946. 0, 0,
  3947. 0, 0,
  3948. GP_5_25_FN, GPSR5_25,
  3949. GP_5_24_FN, GPSR5_24,
  3950. GP_5_23_FN, GPSR5_23,
  3951. GP_5_22_FN, GPSR5_22,
  3952. GP_5_21_FN, GPSR5_21,
  3953. GP_5_20_FN, GPSR5_20,
  3954. GP_5_19_FN, GPSR5_19,
  3955. GP_5_18_FN, GPSR5_18,
  3956. GP_5_17_FN, GPSR5_17,
  3957. GP_5_16_FN, GPSR5_16,
  3958. GP_5_15_FN, GPSR5_15,
  3959. GP_5_14_FN, GPSR5_14,
  3960. GP_5_13_FN, GPSR5_13,
  3961. GP_5_12_FN, GPSR5_12,
  3962. GP_5_11_FN, GPSR5_11,
  3963. GP_5_10_FN, GPSR5_10,
  3964. GP_5_9_FN, GPSR5_9,
  3965. GP_5_8_FN, GPSR5_8,
  3966. GP_5_7_FN, GPSR5_7,
  3967. GP_5_6_FN, GPSR5_6,
  3968. GP_5_5_FN, GPSR5_5,
  3969. GP_5_4_FN, GPSR5_4,
  3970. GP_5_3_FN, GPSR5_3,
  3971. GP_5_2_FN, GPSR5_2,
  3972. GP_5_1_FN, GPSR5_1,
  3973. GP_5_0_FN, GPSR5_0, }
  3974. },
  3975. { PINMUX_CFG_REG("GPSR6", 0xe6060118, 32, 1) {
  3976. GP_6_31_FN, GPSR6_31,
  3977. GP_6_30_FN, GPSR6_30,
  3978. GP_6_29_FN, GPSR6_29,
  3979. GP_6_28_FN, GPSR6_28,
  3980. GP_6_27_FN, GPSR6_27,
  3981. GP_6_26_FN, GPSR6_26,
  3982. GP_6_25_FN, GPSR6_25,
  3983. GP_6_24_FN, GPSR6_24,
  3984. GP_6_23_FN, GPSR6_23,
  3985. GP_6_22_FN, GPSR6_22,
  3986. GP_6_21_FN, GPSR6_21,
  3987. GP_6_20_FN, GPSR6_20,
  3988. GP_6_19_FN, GPSR6_19,
  3989. GP_6_18_FN, GPSR6_18,
  3990. GP_6_17_FN, GPSR6_17,
  3991. GP_6_16_FN, GPSR6_16,
  3992. GP_6_15_FN, GPSR6_15,
  3993. GP_6_14_FN, GPSR6_14,
  3994. GP_6_13_FN, GPSR6_13,
  3995. GP_6_12_FN, GPSR6_12,
  3996. GP_6_11_FN, GPSR6_11,
  3997. GP_6_10_FN, GPSR6_10,
  3998. GP_6_9_FN, GPSR6_9,
  3999. GP_6_8_FN, GPSR6_8,
  4000. GP_6_7_FN, GPSR6_7,
  4001. GP_6_6_FN, GPSR6_6,
  4002. GP_6_5_FN, GPSR6_5,
  4003. GP_6_4_FN, GPSR6_4,
  4004. GP_6_3_FN, GPSR6_3,
  4005. GP_6_2_FN, GPSR6_2,
  4006. GP_6_1_FN, GPSR6_1,
  4007. GP_6_0_FN, GPSR6_0, }
  4008. },
  4009. { PINMUX_CFG_REG("GPSR7", 0xe606011c, 32, 1) {
  4010. 0, 0,
  4011. 0, 0,
  4012. 0, 0,
  4013. 0, 0,
  4014. 0, 0,
  4015. 0, 0,
  4016. 0, 0,
  4017. 0, 0,
  4018. 0, 0,
  4019. 0, 0,
  4020. 0, 0,
  4021. 0, 0,
  4022. 0, 0,
  4023. 0, 0,
  4024. 0, 0,
  4025. 0, 0,
  4026. 0, 0,
  4027. 0, 0,
  4028. 0, 0,
  4029. 0, 0,
  4030. 0, 0,
  4031. 0, 0,
  4032. 0, 0,
  4033. 0, 0,
  4034. 0, 0,
  4035. 0, 0,
  4036. 0, 0,
  4037. 0, 0,
  4038. GP_7_3_FN, GPSR7_3,
  4039. GP_7_2_FN, GPSR7_2,
  4040. GP_7_1_FN, GPSR7_1,
  4041. GP_7_0_FN, GPSR7_0, }
  4042. },
  4043. #undef F_
  4044. #undef FM
  4045. #define F_(x, y) x,
  4046. #define FM(x) FN_##x,
  4047. { PINMUX_CFG_REG("IPSR0", 0xe6060200, 32, 4) {
  4048. IP0_31_28
  4049. IP0_27_24
  4050. IP0_23_20
  4051. IP0_19_16
  4052. IP0_15_12
  4053. IP0_11_8
  4054. IP0_7_4
  4055. IP0_3_0 }
  4056. },
  4057. { PINMUX_CFG_REG("IPSR1", 0xe6060204, 32, 4) {
  4058. IP1_31_28
  4059. IP1_27_24
  4060. IP1_23_20
  4061. IP1_19_16
  4062. IP1_15_12
  4063. IP1_11_8
  4064. IP1_7_4
  4065. IP1_3_0 }
  4066. },
  4067. { PINMUX_CFG_REG("IPSR2", 0xe6060208, 32, 4) {
  4068. IP2_31_28
  4069. IP2_27_24
  4070. IP2_23_20
  4071. IP2_19_16
  4072. IP2_15_12
  4073. IP2_11_8
  4074. IP2_7_4
  4075. IP2_3_0 }
  4076. },
  4077. { PINMUX_CFG_REG("IPSR3", 0xe606020c, 32, 4) {
  4078. IP3_31_28
  4079. IP3_27_24
  4080. IP3_23_20
  4081. IP3_19_16
  4082. IP3_15_12
  4083. IP3_11_8
  4084. IP3_7_4
  4085. IP3_3_0 }
  4086. },
  4087. { PINMUX_CFG_REG("IPSR4", 0xe6060210, 32, 4) {
  4088. IP4_31_28
  4089. IP4_27_24
  4090. IP4_23_20
  4091. IP4_19_16
  4092. IP4_15_12
  4093. IP4_11_8
  4094. IP4_7_4
  4095. IP4_3_0 }
  4096. },
  4097. { PINMUX_CFG_REG("IPSR5", 0xe6060214, 32, 4) {
  4098. IP5_31_28
  4099. IP5_27_24
  4100. IP5_23_20
  4101. IP5_19_16
  4102. IP5_15_12
  4103. IP5_11_8
  4104. IP5_7_4
  4105. IP5_3_0 }
  4106. },
  4107. { PINMUX_CFG_REG("IPSR6", 0xe6060218, 32, 4) {
  4108. IP6_31_28
  4109. IP6_27_24
  4110. IP6_23_20
  4111. IP6_19_16
  4112. IP6_15_12
  4113. IP6_11_8
  4114. IP6_7_4
  4115. IP6_3_0 }
  4116. },
  4117. { PINMUX_CFG_REG("IPSR7", 0xe606021c, 32, 4) {
  4118. IP7_31_28
  4119. IP7_27_24
  4120. IP7_23_20
  4121. IP7_19_16
  4122. IP7_15_12
  4123. IP7_11_8
  4124. IP7_7_4
  4125. IP7_3_0 }
  4126. },
  4127. { PINMUX_CFG_REG("IPSR8", 0xe6060220, 32, 4) {
  4128. IP8_31_28
  4129. IP8_27_24
  4130. IP8_23_20
  4131. IP8_19_16
  4132. IP8_15_12
  4133. IP8_11_8
  4134. IP8_7_4
  4135. IP8_3_0 }
  4136. },
  4137. { PINMUX_CFG_REG("IPSR9", 0xe6060224, 32, 4) {
  4138. IP9_31_28
  4139. IP9_27_24
  4140. IP9_23_20
  4141. IP9_19_16
  4142. IP9_15_12
  4143. IP9_11_8
  4144. IP9_7_4
  4145. IP9_3_0 }
  4146. },
  4147. { PINMUX_CFG_REG("IPSR10", 0xe6060228, 32, 4) {
  4148. IP10_31_28
  4149. IP10_27_24
  4150. IP10_23_20
  4151. IP10_19_16
  4152. IP10_15_12
  4153. IP10_11_8
  4154. IP10_7_4
  4155. IP10_3_0 }
  4156. },
  4157. { PINMUX_CFG_REG("IPSR11", 0xe606022c, 32, 4) {
  4158. IP11_31_28
  4159. IP11_27_24
  4160. IP11_23_20
  4161. IP11_19_16
  4162. IP11_15_12
  4163. IP11_11_8
  4164. IP11_7_4
  4165. IP11_3_0 }
  4166. },
  4167. { PINMUX_CFG_REG("IPSR12", 0xe6060230, 32, 4) {
  4168. IP12_31_28
  4169. IP12_27_24
  4170. IP12_23_20
  4171. IP12_19_16
  4172. IP12_15_12
  4173. IP12_11_8
  4174. IP12_7_4
  4175. IP12_3_0 }
  4176. },
  4177. { PINMUX_CFG_REG("IPSR13", 0xe6060234, 32, 4) {
  4178. IP13_31_28
  4179. IP13_27_24
  4180. IP13_23_20
  4181. IP13_19_16
  4182. IP13_15_12
  4183. IP13_11_8
  4184. IP13_7_4
  4185. IP13_3_0 }
  4186. },
  4187. { PINMUX_CFG_REG("IPSR14", 0xe6060238, 32, 4) {
  4188. IP14_31_28
  4189. IP14_27_24
  4190. IP14_23_20
  4191. IP14_19_16
  4192. IP14_15_12
  4193. IP14_11_8
  4194. IP14_7_4
  4195. IP14_3_0 }
  4196. },
  4197. { PINMUX_CFG_REG("IPSR15", 0xe606023c, 32, 4) {
  4198. IP15_31_28
  4199. IP15_27_24
  4200. IP15_23_20
  4201. IP15_19_16
  4202. IP15_15_12
  4203. IP15_11_8
  4204. IP15_7_4
  4205. IP15_3_0 }
  4206. },
  4207. { PINMUX_CFG_REG("IPSR16", 0xe6060240, 32, 4) {
  4208. IP16_31_28
  4209. IP16_27_24
  4210. IP16_23_20
  4211. IP16_19_16
  4212. IP16_15_12
  4213. IP16_11_8
  4214. IP16_7_4
  4215. IP16_3_0 }
  4216. },
  4217. { PINMUX_CFG_REG("IPSR17", 0xe6060244, 32, 4) {
  4218. IP17_31_28
  4219. IP17_27_24
  4220. IP17_23_20
  4221. IP17_19_16
  4222. IP17_15_12
  4223. IP17_11_8
  4224. IP17_7_4
  4225. IP17_3_0 }
  4226. },
  4227. { PINMUX_CFG_REG("IPSR18", 0xe6060248, 32, 4) {
  4228. /* IP18_31_28 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4229. /* IP18_27_24 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4230. /* IP18_23_20 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4231. /* IP18_19_16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4232. /* IP18_15_12 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4233. /* IP18_11_8 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4234. IP18_7_4
  4235. IP18_3_0 }
  4236. },
  4237. #undef F_
  4238. #undef FM
  4239. #define F_(x, y) x,
  4240. #define FM(x) FN_##x,
  4241. { PINMUX_CFG_REG_VAR("MOD_SEL0", 0xe6060500, 32,
  4242. 3, 2, 3, 1, 1, 1, 1, 1, 2, 1,
  4243. 1, 2, 1, 1, 1, 2, 2, 1, 2, 3) {
  4244. MOD_SEL0_31_30_29
  4245. MOD_SEL0_28_27
  4246. MOD_SEL0_26_25_24
  4247. MOD_SEL0_23
  4248. MOD_SEL0_22
  4249. MOD_SEL0_21
  4250. MOD_SEL0_20
  4251. MOD_SEL0_19
  4252. MOD_SEL0_18_17
  4253. MOD_SEL0_16
  4254. MOD_SEL0_15
  4255. MOD_SEL0_14_13
  4256. MOD_SEL0_12
  4257. MOD_SEL0_11
  4258. MOD_SEL0_10
  4259. MOD_SEL0_9_8
  4260. MOD_SEL0_7_6
  4261. MOD_SEL0_5
  4262. MOD_SEL0_4_3
  4263. /* RESERVED 2, 1, 0 */
  4264. 0, 0, 0, 0, 0, 0, 0, 0 }
  4265. },
  4266. { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xe6060504, 32,
  4267. 2, 3, 1, 2, 3, 1, 1, 2, 1,
  4268. 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1) {
  4269. MOD_SEL1_31_30
  4270. MOD_SEL1_29_28_27
  4271. MOD_SEL1_26
  4272. MOD_SEL1_25_24
  4273. MOD_SEL1_23_22_21
  4274. MOD_SEL1_20
  4275. MOD_SEL1_19
  4276. MOD_SEL1_18_17
  4277. MOD_SEL1_16
  4278. MOD_SEL1_15_14
  4279. MOD_SEL1_13
  4280. MOD_SEL1_12
  4281. MOD_SEL1_11
  4282. MOD_SEL1_10
  4283. MOD_SEL1_9
  4284. 0, 0, 0, 0, /* RESERVED 8, 7 */
  4285. MOD_SEL1_6
  4286. MOD_SEL1_5
  4287. MOD_SEL1_4
  4288. MOD_SEL1_3
  4289. MOD_SEL1_2
  4290. MOD_SEL1_1
  4291. MOD_SEL1_0 }
  4292. },
  4293. { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xe6060508, 32,
  4294. 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1,
  4295. 4, 4, 4, 3, 1) {
  4296. MOD_SEL2_31
  4297. MOD_SEL2_30
  4298. MOD_SEL2_29
  4299. MOD_SEL2_28_27
  4300. MOD_SEL2_26
  4301. MOD_SEL2_25_24_23
  4302. MOD_SEL2_22
  4303. MOD_SEL2_21
  4304. MOD_SEL2_20
  4305. MOD_SEL2_19
  4306. MOD_SEL2_18
  4307. MOD_SEL2_17
  4308. /* RESERVED 16 */
  4309. 0, 0,
  4310. /* RESERVED 15, 14, 13, 12 */
  4311. 0, 0, 0, 0, 0, 0, 0, 0,
  4312. 0, 0, 0, 0, 0, 0, 0, 0,
  4313. /* RESERVED 11, 10, 9, 8 */
  4314. 0, 0, 0, 0, 0, 0, 0, 0,
  4315. 0, 0, 0, 0, 0, 0, 0, 0,
  4316. /* RESERVED 7, 6, 5, 4 */
  4317. 0, 0, 0, 0, 0, 0, 0, 0,
  4318. 0, 0, 0, 0, 0, 0, 0, 0,
  4319. /* RESERVED 3, 2, 1 */
  4320. 0, 0, 0, 0, 0, 0, 0, 0,
  4321. MOD_SEL2_0 }
  4322. },
  4323. { },
  4324. };
  4325. static const struct pinmux_drive_reg pinmux_drive_regs[] = {
  4326. { PINMUX_DRIVE_REG("DRVCTRL0", 0xe6060300) {
  4327. { PIN_NUMBER('W', 3), 28, 2 }, /* QSPI0_SPCLK */
  4328. { PIN_A_NUMBER('C', 5), 24, 2 }, /* QSPI0_MOSI_IO0 */
  4329. { PIN_A_NUMBER('B', 4), 20, 2 }, /* QSPI0_MISO_IO1 */
  4330. { PIN_NUMBER('Y', 6), 16, 2 }, /* QSPI0_IO2 */
  4331. { PIN_A_NUMBER('B', 6), 12, 2 }, /* QSPI0_IO3 */
  4332. { PIN_NUMBER('Y', 3), 8, 2 }, /* QSPI0_SSL */
  4333. { PIN_NUMBER('V', 3), 4, 2 }, /* QSPI1_SPCLK */
  4334. { PIN_A_NUMBER('C', 7), 0, 2 }, /* QSPI1_MOSI_IO0 */
  4335. } },
  4336. { PINMUX_DRIVE_REG("DRVCTRL1", 0xe6060304) {
  4337. { PIN_A_NUMBER('E', 5), 28, 2 }, /* QSPI1_MISO_IO1 */
  4338. { PIN_A_NUMBER('E', 4), 24, 2 }, /* QSPI1_IO2 */
  4339. { PIN_A_NUMBER('C', 3), 20, 2 }, /* QSPI1_IO3 */
  4340. { PIN_NUMBER('V', 5), 16, 2 }, /* QSPI1_SSL */
  4341. { PIN_NUMBER('Y', 7), 12, 2 }, /* RPC_INT# */
  4342. { PIN_NUMBER('V', 6), 8, 2 }, /* RPC_WP# */
  4343. { PIN_NUMBER('V', 7), 4, 2 }, /* RPC_RESET# */
  4344. { PIN_NUMBER('A', 16), 0, 3 }, /* AVB_RX_CTL */
  4345. } },
  4346. { PINMUX_DRIVE_REG("DRVCTRL2", 0xe6060308) {
  4347. { PIN_NUMBER('B', 19), 28, 3 }, /* AVB_RXC */
  4348. { PIN_NUMBER('A', 13), 24, 3 }, /* AVB_RD0 */
  4349. { PIN_NUMBER('B', 13), 20, 3 }, /* AVB_RD1 */
  4350. { PIN_NUMBER('A', 14), 16, 3 }, /* AVB_RD2 */
  4351. { PIN_NUMBER('B', 14), 12, 3 }, /* AVB_RD3 */
  4352. { PIN_NUMBER('A', 8), 8, 3 }, /* AVB_TX_CTL */
  4353. { PIN_NUMBER('A', 19), 4, 3 }, /* AVB_TXC */
  4354. { PIN_NUMBER('A', 18), 0, 3 }, /* AVB_TD0 */
  4355. } },
  4356. { PINMUX_DRIVE_REG("DRVCTRL3", 0xe606030c) {
  4357. { PIN_NUMBER('B', 18), 28, 3 }, /* AVB_TD1 */
  4358. { PIN_NUMBER('A', 17), 24, 3 }, /* AVB_TD2 */
  4359. { PIN_NUMBER('B', 17), 20, 3 }, /* AVB_TD3 */
  4360. { PIN_NUMBER('A', 12), 16, 3 }, /* AVB_TXCREFCLK */
  4361. { PIN_NUMBER('A', 9), 12, 3 }, /* AVB_MDIO */
  4362. { RCAR_GP_PIN(2, 9), 8, 3 }, /* AVB_MDC */
  4363. { RCAR_GP_PIN(2, 10), 4, 3 }, /* AVB_MAGIC */
  4364. { RCAR_GP_PIN(2, 11), 0, 3 }, /* AVB_PHY_INT */
  4365. } },
  4366. { PINMUX_DRIVE_REG("DRVCTRL4", 0xe6060310) {
  4367. { RCAR_GP_PIN(2, 12), 28, 3 }, /* AVB_LINK */
  4368. { RCAR_GP_PIN(2, 13), 24, 3 }, /* AVB_AVTP_MATCH */
  4369. { RCAR_GP_PIN(2, 14), 20, 3 }, /* AVB_AVTP_CAPTURE */
  4370. { RCAR_GP_PIN(2, 0), 16, 3 }, /* IRQ0 */
  4371. { RCAR_GP_PIN(2, 1), 12, 3 }, /* IRQ1 */
  4372. { RCAR_GP_PIN(2, 2), 8, 3 }, /* IRQ2 */
  4373. { RCAR_GP_PIN(2, 3), 4, 3 }, /* IRQ3 */
  4374. { RCAR_GP_PIN(2, 4), 0, 3 }, /* IRQ4 */
  4375. } },
  4376. { PINMUX_DRIVE_REG("DRVCTRL5", 0xe6060314) {
  4377. { RCAR_GP_PIN(2, 5), 28, 3 }, /* IRQ5 */
  4378. { RCAR_GP_PIN(2, 6), 24, 3 }, /* PWM0 */
  4379. { RCAR_GP_PIN(2, 7), 20, 3 }, /* PWM1 */
  4380. { RCAR_GP_PIN(2, 8), 16, 3 }, /* PWM2 */
  4381. { RCAR_GP_PIN(1, 0), 12, 3 }, /* A0 */
  4382. { RCAR_GP_PIN(1, 1), 8, 3 }, /* A1 */
  4383. { RCAR_GP_PIN(1, 2), 4, 3 }, /* A2 */
  4384. { RCAR_GP_PIN(1, 3), 0, 3 }, /* A3 */
  4385. } },
  4386. { PINMUX_DRIVE_REG("DRVCTRL6", 0xe6060318) {
  4387. { RCAR_GP_PIN(1, 4), 28, 3 }, /* A4 */
  4388. { RCAR_GP_PIN(1, 5), 24, 3 }, /* A5 */
  4389. { RCAR_GP_PIN(1, 6), 20, 3 }, /* A6 */
  4390. { RCAR_GP_PIN(1, 7), 16, 3 }, /* A7 */
  4391. { RCAR_GP_PIN(1, 8), 12, 3 }, /* A8 */
  4392. { RCAR_GP_PIN(1, 9), 8, 3 }, /* A9 */
  4393. { RCAR_GP_PIN(1, 10), 4, 3 }, /* A10 */
  4394. { RCAR_GP_PIN(1, 11), 0, 3 }, /* A11 */
  4395. } },
  4396. { PINMUX_DRIVE_REG("DRVCTRL7", 0xe606031c) {
  4397. { RCAR_GP_PIN(1, 12), 28, 3 }, /* A12 */
  4398. { RCAR_GP_PIN(1, 13), 24, 3 }, /* A13 */
  4399. { RCAR_GP_PIN(1, 14), 20, 3 }, /* A14 */
  4400. { RCAR_GP_PIN(1, 15), 16, 3 }, /* A15 */
  4401. { RCAR_GP_PIN(1, 16), 12, 3 }, /* A16 */
  4402. { RCAR_GP_PIN(1, 17), 8, 3 }, /* A17 */
  4403. { RCAR_GP_PIN(1, 18), 4, 3 }, /* A18 */
  4404. { RCAR_GP_PIN(1, 19), 0, 3 }, /* A19 */
  4405. } },
  4406. { PINMUX_DRIVE_REG("DRVCTRL8", 0xe6060320) {
  4407. { RCAR_GP_PIN(1, 28), 28, 3 }, /* CLKOUT */
  4408. { RCAR_GP_PIN(1, 20), 24, 3 }, /* CS0 */
  4409. { RCAR_GP_PIN(1, 21), 20, 3 }, /* CS1_A26 */
  4410. { RCAR_GP_PIN(1, 22), 16, 3 }, /* BS */
  4411. { RCAR_GP_PIN(1, 23), 12, 3 }, /* RD */
  4412. { RCAR_GP_PIN(1, 24), 8, 3 }, /* RD_WR */
  4413. { RCAR_GP_PIN(1, 25), 4, 3 }, /* WE0 */
  4414. { RCAR_GP_PIN(1, 26), 0, 3 }, /* WE1 */
  4415. } },
  4416. { PINMUX_DRIVE_REG("DRVCTRL9", 0xe6060324) {
  4417. { RCAR_GP_PIN(1, 27), 28, 3 }, /* EX_WAIT0 */
  4418. { PIN_NUMBER('C', 1), 24, 3 }, /* PRESETOUT# */
  4419. { RCAR_GP_PIN(0, 0), 20, 3 }, /* D0 */
  4420. { RCAR_GP_PIN(0, 1), 16, 3 }, /* D1 */
  4421. { RCAR_GP_PIN(0, 2), 12, 3 }, /* D2 */
  4422. { RCAR_GP_PIN(0, 3), 8, 3 }, /* D3 */
  4423. { RCAR_GP_PIN(0, 4), 4, 3 }, /* D4 */
  4424. { RCAR_GP_PIN(0, 5), 0, 3 }, /* D5 */
  4425. } },
  4426. { PINMUX_DRIVE_REG("DRVCTRL10", 0xe6060328) {
  4427. { RCAR_GP_PIN(0, 6), 28, 3 }, /* D6 */
  4428. { RCAR_GP_PIN(0, 7), 24, 3 }, /* D7 */
  4429. { RCAR_GP_PIN(0, 8), 20, 3 }, /* D8 */
  4430. { RCAR_GP_PIN(0, 9), 16, 3 }, /* D9 */
  4431. { RCAR_GP_PIN(0, 10), 12, 3 }, /* D10 */
  4432. { RCAR_GP_PIN(0, 11), 8, 3 }, /* D11 */
  4433. { RCAR_GP_PIN(0, 12), 4, 3 }, /* D12 */
  4434. { RCAR_GP_PIN(0, 13), 0, 3 }, /* D13 */
  4435. } },
  4436. { PINMUX_DRIVE_REG("DRVCTRL11", 0xe606032c) {
  4437. { RCAR_GP_PIN(0, 14), 28, 3 }, /* D14 */
  4438. { RCAR_GP_PIN(0, 15), 24, 3 }, /* D15 */
  4439. { RCAR_GP_PIN(7, 0), 20, 3 }, /* AVS1 */
  4440. { RCAR_GP_PIN(7, 1), 16, 3 }, /* AVS2 */
  4441. { RCAR_GP_PIN(7, 2), 12, 3 }, /* HDMI0_CEC */
  4442. { RCAR_GP_PIN(7, 3), 8, 3 }, /* GP7_03 */
  4443. { PIN_A_NUMBER('P', 7), 4, 2 }, /* DU_DOTCLKIN0 */
  4444. { PIN_A_NUMBER('P', 8), 0, 2 }, /* DU_DOTCLKIN1 */
  4445. } },
  4446. { PINMUX_DRIVE_REG("DRVCTRL12", 0xe6060330) {
  4447. { PIN_A_NUMBER('R', 8), 28, 2 }, /* DU_DOTCLKIN2 */
  4448. { PIN_A_NUMBER('D', 38), 20, 2 }, /* FSCLKST */
  4449. { PIN_A_NUMBER('R', 30), 4, 2 }, /* TMS */
  4450. } },
  4451. { PINMUX_DRIVE_REG("DRVCTRL13", 0xe6060334) {
  4452. { PIN_A_NUMBER('T', 28), 28, 2 }, /* TDO */
  4453. { PIN_A_NUMBER('T', 30), 24, 2 }, /* ASEBRK */
  4454. { RCAR_GP_PIN(3, 0), 20, 3 }, /* SD0_CLK */
  4455. { RCAR_GP_PIN(3, 1), 16, 3 }, /* SD0_CMD */
  4456. { RCAR_GP_PIN(3, 2), 12, 3 }, /* SD0_DAT0 */
  4457. { RCAR_GP_PIN(3, 3), 8, 3 }, /* SD0_DAT1 */
  4458. { RCAR_GP_PIN(3, 4), 4, 3 }, /* SD0_DAT2 */
  4459. { RCAR_GP_PIN(3, 5), 0, 3 }, /* SD0_DAT3 */
  4460. } },
  4461. { PINMUX_DRIVE_REG("DRVCTRL14", 0xe6060338) {
  4462. { RCAR_GP_PIN(3, 6), 28, 3 }, /* SD1_CLK */
  4463. { RCAR_GP_PIN(3, 7), 24, 3 }, /* SD1_CMD */
  4464. { RCAR_GP_PIN(3, 8), 20, 3 }, /* SD1_DAT0 */
  4465. { RCAR_GP_PIN(3, 9), 16, 3 }, /* SD1_DAT1 */
  4466. { RCAR_GP_PIN(3, 10), 12, 3 }, /* SD1_DAT2 */
  4467. { RCAR_GP_PIN(3, 11), 8, 3 }, /* SD1_DAT3 */
  4468. { RCAR_GP_PIN(4, 0), 4, 3 }, /* SD2_CLK */
  4469. { RCAR_GP_PIN(4, 1), 0, 3 }, /* SD2_CMD */
  4470. } },
  4471. { PINMUX_DRIVE_REG("DRVCTRL15", 0xe606033c) {
  4472. { RCAR_GP_PIN(4, 2), 28, 3 }, /* SD2_DAT0 */
  4473. { RCAR_GP_PIN(4, 3), 24, 3 }, /* SD2_DAT1 */
  4474. { RCAR_GP_PIN(4, 4), 20, 3 }, /* SD2_DAT2 */
  4475. { RCAR_GP_PIN(4, 5), 16, 3 }, /* SD2_DAT3 */
  4476. { RCAR_GP_PIN(4, 6), 12, 3 }, /* SD2_DS */
  4477. { RCAR_GP_PIN(4, 7), 8, 3 }, /* SD3_CLK */
  4478. { RCAR_GP_PIN(4, 8), 4, 3 }, /* SD3_CMD */
  4479. { RCAR_GP_PIN(4, 9), 0, 3 }, /* SD3_DAT0 */
  4480. } },
  4481. { PINMUX_DRIVE_REG("DRVCTRL16", 0xe6060340) {
  4482. { RCAR_GP_PIN(4, 10), 28, 3 }, /* SD3_DAT1 */
  4483. { RCAR_GP_PIN(4, 11), 24, 3 }, /* SD3_DAT2 */
  4484. { RCAR_GP_PIN(4, 12), 20, 3 }, /* SD3_DAT3 */
  4485. { RCAR_GP_PIN(4, 13), 16, 3 }, /* SD3_DAT4 */
  4486. { RCAR_GP_PIN(4, 14), 12, 3 }, /* SD3_DAT5 */
  4487. { RCAR_GP_PIN(4, 15), 8, 3 }, /* SD3_DAT6 */
  4488. { RCAR_GP_PIN(4, 16), 4, 3 }, /* SD3_DAT7 */
  4489. { RCAR_GP_PIN(4, 17), 0, 3 }, /* SD3_DS */
  4490. } },
  4491. { PINMUX_DRIVE_REG("DRVCTRL17", 0xe6060344) {
  4492. { RCAR_GP_PIN(3, 12), 28, 3 }, /* SD0_CD */
  4493. { RCAR_GP_PIN(3, 13), 24, 3 }, /* SD0_WP */
  4494. { RCAR_GP_PIN(3, 14), 20, 3 }, /* SD1_CD */
  4495. { RCAR_GP_PIN(3, 15), 16, 3 }, /* SD1_WP */
  4496. { RCAR_GP_PIN(5, 0), 12, 3 }, /* SCK0 */
  4497. { RCAR_GP_PIN(5, 1), 8, 3 }, /* RX0 */
  4498. { RCAR_GP_PIN(5, 2), 4, 3 }, /* TX0 */
  4499. { RCAR_GP_PIN(5, 3), 0, 3 }, /* CTS0 */
  4500. } },
  4501. { PINMUX_DRIVE_REG("DRVCTRL18", 0xe6060348) {
  4502. { RCAR_GP_PIN(5, 4), 28, 3 }, /* RTS0_TANS */
  4503. { RCAR_GP_PIN(5, 5), 24, 3 }, /* RX1 */
  4504. { RCAR_GP_PIN(5, 6), 20, 3 }, /* TX1 */
  4505. { RCAR_GP_PIN(5, 7), 16, 3 }, /* CTS1 */
  4506. { RCAR_GP_PIN(5, 8), 12, 3 }, /* RTS1_TANS */
  4507. { RCAR_GP_PIN(5, 9), 8, 3 }, /* SCK2 */
  4508. { RCAR_GP_PIN(5, 10), 4, 3 }, /* TX2 */
  4509. { RCAR_GP_PIN(5, 11), 0, 3 }, /* RX2 */
  4510. } },
  4511. { PINMUX_DRIVE_REG("DRVCTRL19", 0xe606034c) {
  4512. { RCAR_GP_PIN(5, 12), 28, 3 }, /* HSCK0 */
  4513. { RCAR_GP_PIN(5, 13), 24, 3 }, /* HRX0 */
  4514. { RCAR_GP_PIN(5, 14), 20, 3 }, /* HTX0 */
  4515. { RCAR_GP_PIN(5, 15), 16, 3 }, /* HCTS0 */
  4516. { RCAR_GP_PIN(5, 16), 12, 3 }, /* HRTS0 */
  4517. { RCAR_GP_PIN(5, 17), 8, 3 }, /* MSIOF0_SCK */
  4518. { RCAR_GP_PIN(5, 18), 4, 3 }, /* MSIOF0_SYNC */
  4519. { RCAR_GP_PIN(5, 19), 0, 3 }, /* MSIOF0_SS1 */
  4520. } },
  4521. { PINMUX_DRIVE_REG("DRVCTRL20", 0xe6060350) {
  4522. { RCAR_GP_PIN(5, 20), 28, 3 }, /* MSIOF0_TXD */
  4523. { RCAR_GP_PIN(5, 21), 24, 3 }, /* MSIOF0_SS2 */
  4524. { RCAR_GP_PIN(5, 22), 20, 3 }, /* MSIOF0_RXD */
  4525. { RCAR_GP_PIN(5, 23), 16, 3 }, /* MLB_CLK */
  4526. { RCAR_GP_PIN(5, 24), 12, 3 }, /* MLB_SIG */
  4527. { RCAR_GP_PIN(5, 25), 8, 3 }, /* MLB_DAT */
  4528. { PIN_NUMBER('H', 37), 4, 3 }, /* MLB_REF */
  4529. { RCAR_GP_PIN(6, 0), 0, 3 }, /* SSI_SCK01239 */
  4530. } },
  4531. { PINMUX_DRIVE_REG("DRVCTRL21", 0xe6060354) {
  4532. { RCAR_GP_PIN(6, 1), 28, 3 }, /* SSI_WS01239 */
  4533. { RCAR_GP_PIN(6, 2), 24, 3 }, /* SSI_SDATA0 */
  4534. { RCAR_GP_PIN(6, 3), 20, 3 }, /* SSI_SDATA1 */
  4535. { RCAR_GP_PIN(6, 4), 16, 3 }, /* SSI_SDATA2 */
  4536. { RCAR_GP_PIN(6, 5), 12, 3 }, /* SSI_SCK34 */
  4537. { RCAR_GP_PIN(6, 6), 8, 3 }, /* SSI_WS34 */
  4538. { RCAR_GP_PIN(6, 7), 4, 3 }, /* SSI_SDATA3 */
  4539. { RCAR_GP_PIN(6, 8), 0, 3 }, /* SSI_SCK4 */
  4540. } },
  4541. { PINMUX_DRIVE_REG("DRVCTRL22", 0xe6060358) {
  4542. { RCAR_GP_PIN(6, 9), 28, 3 }, /* SSI_WS4 */
  4543. { RCAR_GP_PIN(6, 10), 24, 3 }, /* SSI_SDATA4 */
  4544. { RCAR_GP_PIN(6, 11), 20, 3 }, /* SSI_SCK5 */
  4545. { RCAR_GP_PIN(6, 12), 16, 3 }, /* SSI_WS5 */
  4546. { RCAR_GP_PIN(6, 13), 12, 3 }, /* SSI_SDATA5 */
  4547. { RCAR_GP_PIN(6, 14), 8, 3 }, /* SSI_SCK6 */
  4548. { RCAR_GP_PIN(6, 15), 4, 3 }, /* SSI_WS6 */
  4549. { RCAR_GP_PIN(6, 16), 0, 3 }, /* SSI_SDATA6 */
  4550. } },
  4551. { PINMUX_DRIVE_REG("DRVCTRL23", 0xe606035c) {
  4552. { RCAR_GP_PIN(6, 17), 28, 3 }, /* SSI_SCK78 */
  4553. { RCAR_GP_PIN(6, 18), 24, 3 }, /* SSI_WS78 */
  4554. { RCAR_GP_PIN(6, 19), 20, 3 }, /* SSI_SDATA7 */
  4555. { RCAR_GP_PIN(6, 20), 16, 3 }, /* SSI_SDATA8 */
  4556. { RCAR_GP_PIN(6, 21), 12, 3 }, /* SSI_SDATA9 */
  4557. { RCAR_GP_PIN(6, 22), 8, 3 }, /* AUDIO_CLKA */
  4558. { RCAR_GP_PIN(6, 23), 4, 3 }, /* AUDIO_CLKB */
  4559. { RCAR_GP_PIN(6, 24), 0, 3 }, /* USB0_PWEN */
  4560. } },
  4561. { PINMUX_DRIVE_REG("DRVCTRL24", 0xe6060360) {
  4562. { RCAR_GP_PIN(6, 25), 28, 3 }, /* USB0_OVC */
  4563. { RCAR_GP_PIN(6, 26), 24, 3 }, /* USB1_PWEN */
  4564. { RCAR_GP_PIN(6, 27), 20, 3 }, /* USB1_OVC */
  4565. { RCAR_GP_PIN(6, 28), 16, 3 }, /* USB30_PWEN */
  4566. { RCAR_GP_PIN(6, 29), 12, 3 }, /* USB30_OVC */
  4567. { RCAR_GP_PIN(6, 30), 8, 3 }, /* GP6_30 */
  4568. { RCAR_GP_PIN(6, 31), 4, 3 }, /* GP6_31 */
  4569. } },
  4570. { },
  4571. };
  4572. static int r8a7796_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl)
  4573. {
  4574. int bit = -EINVAL;
  4575. *pocctrl = 0xe6060380;
  4576. if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11))
  4577. bit = pin & 0x1f;
  4578. if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17))
  4579. bit = (pin & 0x1f) + 12;
  4580. return bit;
  4581. }
  4582. #define PUEN 0xe6060400
  4583. #define PUD 0xe6060440
  4584. #define PU0 0x00
  4585. #define PU1 0x04
  4586. #define PU2 0x08
  4587. #define PU3 0x0c
  4588. #define PU4 0x10
  4589. #define PU5 0x14
  4590. #define PU6 0x18
  4591. static const struct sh_pfc_bias_info bias_info[] = {
  4592. { RCAR_GP_PIN(2, 11), PU0, 31 }, /* AVB_PHY_INT */
  4593. { RCAR_GP_PIN(2, 10), PU0, 30 }, /* AVB_MAGIC */
  4594. { RCAR_GP_PIN(2, 9), PU0, 29 }, /* AVB_MDC */
  4595. { PIN_NUMBER('A', 9), PU0, 28 }, /* AVB_MDIO */
  4596. { PIN_NUMBER('A', 12), PU0, 27 }, /* AVB_TXCREFCLK */
  4597. { PIN_NUMBER('B', 17), PU0, 26 }, /* AVB_TD3 */
  4598. { PIN_NUMBER('A', 17), PU0, 25 }, /* AVB_TD2 */
  4599. { PIN_NUMBER('B', 18), PU0, 24 }, /* AVB_TD1 */
  4600. { PIN_NUMBER('A', 18), PU0, 23 }, /* AVB_TD0 */
  4601. { PIN_NUMBER('A', 19), PU0, 22 }, /* AVB_TXC */
  4602. { PIN_NUMBER('A', 8), PU0, 21 }, /* AVB_TX_CTL */
  4603. { PIN_NUMBER('B', 14), PU0, 20 }, /* AVB_RD3 */
  4604. { PIN_NUMBER('A', 14), PU0, 19 }, /* AVB_RD2 */
  4605. { PIN_NUMBER('B', 13), PU0, 18 }, /* AVB_RD1 */
  4606. { PIN_NUMBER('A', 13), PU0, 17 }, /* AVB_RD0 */
  4607. { PIN_NUMBER('B', 19), PU0, 16 }, /* AVB_RXC */
  4608. { PIN_NUMBER('A', 16), PU0, 15 }, /* AVB_RX_CTL */
  4609. { PIN_NUMBER('V', 7), PU0, 14 }, /* RPC_RESET# */
  4610. { PIN_NUMBER('V', 6), PU0, 13 }, /* RPC_WP# */
  4611. { PIN_NUMBER('Y', 7), PU0, 12 }, /* RPC_INT# */
  4612. { PIN_NUMBER('V', 5), PU0, 11 }, /* QSPI1_SSL */
  4613. { PIN_A_NUMBER('C', 3), PU0, 10 }, /* QSPI1_IO3 */
  4614. { PIN_A_NUMBER('E', 4), PU0, 9 }, /* QSPI1_IO2 */
  4615. { PIN_A_NUMBER('E', 5), PU0, 8 }, /* QSPI1_MISO_IO1 */
  4616. { PIN_A_NUMBER('C', 7), PU0, 7 }, /* QSPI1_MOSI_IO0 */
  4617. { PIN_NUMBER('V', 3), PU0, 6 }, /* QSPI1_SPCLK */
  4618. { PIN_NUMBER('Y', 3), PU0, 5 }, /* QSPI0_SSL */
  4619. { PIN_A_NUMBER('B', 6), PU0, 4 }, /* QSPI0_IO3 */
  4620. { PIN_NUMBER('Y', 6), PU0, 3 }, /* QSPI0_IO2 */
  4621. { PIN_A_NUMBER('B', 4), PU0, 2 }, /* QSPI0_MISO_IO1 */
  4622. { PIN_A_NUMBER('C', 5), PU0, 1 }, /* QSPI0_MOSI_IO0 */
  4623. { PIN_NUMBER('W', 3), PU0, 0 }, /* QSPI0_SPCLK */
  4624. { RCAR_GP_PIN(1, 19), PU1, 31 }, /* A19 */
  4625. { RCAR_GP_PIN(1, 18), PU1, 30 }, /* A18 */
  4626. { RCAR_GP_PIN(1, 17), PU1, 29 }, /* A17 */
  4627. { RCAR_GP_PIN(1, 16), PU1, 28 }, /* A16 */
  4628. { RCAR_GP_PIN(1, 15), PU1, 27 }, /* A15 */
  4629. { RCAR_GP_PIN(1, 14), PU1, 26 }, /* A14 */
  4630. { RCAR_GP_PIN(1, 13), PU1, 25 }, /* A13 */
  4631. { RCAR_GP_PIN(1, 12), PU1, 24 }, /* A12 */
  4632. { RCAR_GP_PIN(1, 11), PU1, 23 }, /* A11 */
  4633. { RCAR_GP_PIN(1, 10), PU1, 22 }, /* A10 */
  4634. { RCAR_GP_PIN(1, 9), PU1, 21 }, /* A9 */
  4635. { RCAR_GP_PIN(1, 8), PU1, 20 }, /* A8 */
  4636. { RCAR_GP_PIN(1, 7), PU1, 19 }, /* A7 */
  4637. { RCAR_GP_PIN(1, 6), PU1, 18 }, /* A6 */
  4638. { RCAR_GP_PIN(1, 5), PU1, 17 }, /* A5 */
  4639. { RCAR_GP_PIN(1, 4), PU1, 16 }, /* A4 */
  4640. { RCAR_GP_PIN(1, 3), PU1, 15 }, /* A3 */
  4641. { RCAR_GP_PIN(1, 2), PU1, 14 }, /* A2 */
  4642. { RCAR_GP_PIN(1, 1), PU1, 13 }, /* A1 */
  4643. { RCAR_GP_PIN(1, 0), PU1, 12 }, /* A0 */
  4644. { RCAR_GP_PIN(2, 8), PU1, 11 }, /* PWM2_A */
  4645. { RCAR_GP_PIN(2, 7), PU1, 10 }, /* PWM1_A */
  4646. { RCAR_GP_PIN(2, 6), PU1, 9 }, /* PWM0 */
  4647. { RCAR_GP_PIN(2, 5), PU1, 8 }, /* IRQ5 */
  4648. { RCAR_GP_PIN(2, 4), PU1, 7 }, /* IRQ4 */
  4649. { RCAR_GP_PIN(2, 3), PU1, 6 }, /* IRQ3 */
  4650. { RCAR_GP_PIN(2, 2), PU1, 5 }, /* IRQ2 */
  4651. { RCAR_GP_PIN(2, 1), PU1, 4 }, /* IRQ1 */
  4652. { RCAR_GP_PIN(2, 0), PU1, 3 }, /* IRQ0 */
  4653. { RCAR_GP_PIN(2, 14), PU1, 2 }, /* AVB_AVTP_CAPTURE_A */
  4654. { RCAR_GP_PIN(2, 13), PU1, 1 }, /* AVB_AVTP_MATCH_A */
  4655. { RCAR_GP_PIN(2, 12), PU1, 0 }, /* AVB_LINK */
  4656. { PIN_A_NUMBER('P', 8), PU2, 31 }, /* DU_DOTCLKIN1 */
  4657. { PIN_A_NUMBER('P', 7), PU2, 30 }, /* DU_DOTCLKIN0 */
  4658. { RCAR_GP_PIN(7, 3), PU2, 29 }, /* GP7_03 */
  4659. { RCAR_GP_PIN(7, 2), PU2, 28 }, /* HDMI0_CEC */
  4660. { RCAR_GP_PIN(7, 1), PU2, 27 }, /* AVS2 */
  4661. { RCAR_GP_PIN(7, 0), PU2, 26 }, /* AVS1 */
  4662. { RCAR_GP_PIN(0, 15), PU2, 25 }, /* D15 */
  4663. { RCAR_GP_PIN(0, 14), PU2, 24 }, /* D14 */
  4664. { RCAR_GP_PIN(0, 13), PU2, 23 }, /* D13 */
  4665. { RCAR_GP_PIN(0, 12), PU2, 22 }, /* D12 */
  4666. { RCAR_GP_PIN(0, 11), PU2, 21 }, /* D11 */
  4667. { RCAR_GP_PIN(0, 10), PU2, 20 }, /* D10 */
  4668. { RCAR_GP_PIN(0, 9), PU2, 19 }, /* D9 */
  4669. { RCAR_GP_PIN(0, 8), PU2, 18 }, /* D8 */
  4670. { RCAR_GP_PIN(0, 7), PU2, 17 }, /* D7 */
  4671. { RCAR_GP_PIN(0, 6), PU2, 16 }, /* D6 */
  4672. { RCAR_GP_PIN(0, 5), PU2, 15 }, /* D5 */
  4673. { RCAR_GP_PIN(0, 4), PU2, 14 }, /* D4 */
  4674. { RCAR_GP_PIN(0, 3), PU2, 13 }, /* D3 */
  4675. { RCAR_GP_PIN(0, 2), PU2, 12 }, /* D2 */
  4676. { RCAR_GP_PIN(0, 1), PU2, 11 }, /* D1 */
  4677. { RCAR_GP_PIN(0, 0), PU2, 10 }, /* D0 */
  4678. { PIN_NUMBER('C', 1), PU2, 9 }, /* PRESETOUT# */
  4679. { RCAR_GP_PIN(1, 27), PU2, 8 }, /* EX_WAIT0_A */
  4680. { RCAR_GP_PIN(1, 26), PU2, 7 }, /* WE1_N */
  4681. { RCAR_GP_PIN(1, 25), PU2, 6 }, /* WE0_N */
  4682. { RCAR_GP_PIN(1, 24), PU2, 5 }, /* RD_WR_N */
  4683. { RCAR_GP_PIN(1, 23), PU2, 4 }, /* RD_N */
  4684. { RCAR_GP_PIN(1, 22), PU2, 3 }, /* BS_N */
  4685. { RCAR_GP_PIN(1, 21), PU2, 2 }, /* CS1_N_A26 */
  4686. { RCAR_GP_PIN(1, 20), PU2, 1 }, /* CS0_N */
  4687. { RCAR_GP_PIN(1, 28), PU2, 0 }, /* CLKOUT */
  4688. { RCAR_GP_PIN(4, 9), PU3, 31 }, /* SD3_DAT0 */
  4689. { RCAR_GP_PIN(4, 8), PU3, 30 }, /* SD3_CMD */
  4690. { RCAR_GP_PIN(4, 7), PU3, 29 }, /* SD3_CLK */
  4691. { RCAR_GP_PIN(4, 6), PU3, 28 }, /* SD2_DS */
  4692. { RCAR_GP_PIN(4, 5), PU3, 27 }, /* SD2_DAT3 */
  4693. { RCAR_GP_PIN(4, 4), PU3, 26 }, /* SD2_DAT2 */
  4694. { RCAR_GP_PIN(4, 3), PU3, 25 }, /* SD2_DAT1 */
  4695. { RCAR_GP_PIN(4, 2), PU3, 24 }, /* SD2_DAT0 */
  4696. { RCAR_GP_PIN(4, 1), PU3, 23 }, /* SD2_CMD */
  4697. { RCAR_GP_PIN(4, 0), PU3, 22 }, /* SD2_CLK */
  4698. { RCAR_GP_PIN(3, 11), PU3, 21 }, /* SD1_DAT3 */
  4699. { RCAR_GP_PIN(3, 10), PU3, 20 }, /* SD1_DAT2 */
  4700. { RCAR_GP_PIN(3, 9), PU3, 19 }, /* SD1_DAT1 */
  4701. { RCAR_GP_PIN(3, 8), PU3, 18 }, /* SD1_DAT0 */
  4702. { RCAR_GP_PIN(3, 7), PU3, 17 }, /* SD1_CMD */
  4703. { RCAR_GP_PIN(3, 6), PU3, 16 }, /* SD1_CLK */
  4704. { RCAR_GP_PIN(3, 5), PU3, 15 }, /* SD0_DAT3 */
  4705. { RCAR_GP_PIN(3, 4), PU3, 14 }, /* SD0_DAT2 */
  4706. { RCAR_GP_PIN(3, 3), PU3, 13 }, /* SD0_DAT1 */
  4707. { RCAR_GP_PIN(3, 2), PU3, 12 }, /* SD0_DAT0 */
  4708. { RCAR_GP_PIN(3, 1), PU3, 11 }, /* SD0_CMD */
  4709. { RCAR_GP_PIN(3, 0), PU3, 10 }, /* SD0_CLK */
  4710. { PIN_A_NUMBER('T', 30), PU3, 9 }, /* ASEBRK */
  4711. /* bit 8 n/a */
  4712. { PIN_A_NUMBER('R', 29), PU3, 7 }, /* TDI */
  4713. { PIN_A_NUMBER('R', 30), PU3, 6 }, /* TMS */
  4714. { PIN_A_NUMBER('T', 27), PU3, 5 }, /* TCK */
  4715. { PIN_A_NUMBER('R', 26), PU3, 4 }, /* TRST# */
  4716. { PIN_A_NUMBER('D', 39), PU3, 3 }, /* EXTALR*/
  4717. { PIN_A_NUMBER('D', 38), PU3, 2 }, /* FSCLKST */
  4718. /* bit 1 n/a on M3*/
  4719. { PIN_A_NUMBER('R', 8), PU3, 0 }, /* DU_DOTCLKIN2 */
  4720. { RCAR_GP_PIN(5, 19), PU4, 31 }, /* MSIOF0_SS1 */
  4721. { RCAR_GP_PIN(5, 18), PU4, 30 }, /* MSIOF0_SYNC */
  4722. { RCAR_GP_PIN(5, 17), PU4, 29 }, /* MSIOF0_SCK */
  4723. { RCAR_GP_PIN(5, 16), PU4, 28 }, /* HRTS0_N */
  4724. { RCAR_GP_PIN(5, 15), PU4, 27 }, /* HCTS0_N */
  4725. { RCAR_GP_PIN(5, 14), PU4, 26 }, /* HTX0 */
  4726. { RCAR_GP_PIN(5, 13), PU4, 25 }, /* HRX0 */
  4727. { RCAR_GP_PIN(5, 12), PU4, 24 }, /* HSCK0 */
  4728. { RCAR_GP_PIN(5, 11), PU4, 23 }, /* RX2_A */
  4729. { RCAR_GP_PIN(5, 10), PU4, 22 }, /* TX2_A */
  4730. { RCAR_GP_PIN(5, 9), PU4, 21 }, /* SCK2 */
  4731. { RCAR_GP_PIN(5, 8), PU4, 20 }, /* RTS1_N_TANS */
  4732. { RCAR_GP_PIN(5, 7), PU4, 19 }, /* CTS1_N */
  4733. { RCAR_GP_PIN(5, 6), PU4, 18 }, /* TX1_A */
  4734. { RCAR_GP_PIN(5, 5), PU4, 17 }, /* RX1_A */
  4735. { RCAR_GP_PIN(5, 4), PU4, 16 }, /* RTS0_N_TANS */
  4736. { RCAR_GP_PIN(5, 3), PU4, 15 }, /* CTS0_N */
  4737. { RCAR_GP_PIN(5, 2), PU4, 14 }, /* TX0 */
  4738. { RCAR_GP_PIN(5, 1), PU4, 13 }, /* RX0 */
  4739. { RCAR_GP_PIN(5, 0), PU4, 12 }, /* SCK0 */
  4740. { RCAR_GP_PIN(3, 15), PU4, 11 }, /* SD1_WP */
  4741. { RCAR_GP_PIN(3, 14), PU4, 10 }, /* SD1_CD */
  4742. { RCAR_GP_PIN(3, 13), PU4, 9 }, /* SD0_WP */
  4743. { RCAR_GP_PIN(3, 12), PU4, 8 }, /* SD0_CD */
  4744. { RCAR_GP_PIN(4, 17), PU4, 7 }, /* SD3_DS */
  4745. { RCAR_GP_PIN(4, 16), PU4, 6 }, /* SD3_DAT7 */
  4746. { RCAR_GP_PIN(4, 15), PU4, 5 }, /* SD3_DAT6 */
  4747. { RCAR_GP_PIN(4, 14), PU4, 4 }, /* SD3_DAT5 */
  4748. { RCAR_GP_PIN(4, 13), PU4, 3 }, /* SD3_DAT4 */
  4749. { RCAR_GP_PIN(4, 12), PU4, 2 }, /* SD3_DAT3 */
  4750. { RCAR_GP_PIN(4, 11), PU4, 1 }, /* SD3_DAT2 */
  4751. { RCAR_GP_PIN(4, 10), PU4, 0 }, /* SD3_DAT1 */
  4752. { RCAR_GP_PIN(6, 24), PU5, 31 }, /* USB0_PWEN */
  4753. { RCAR_GP_PIN(6, 23), PU5, 30 }, /* AUDIO_CLKB_B */
  4754. { RCAR_GP_PIN(6, 22), PU5, 29 }, /* AUDIO_CLKA_A */
  4755. { RCAR_GP_PIN(6, 21), PU5, 28 }, /* SSI_SDATA9_A */
  4756. { RCAR_GP_PIN(6, 20), PU5, 27 }, /* SSI_SDATA8 */
  4757. { RCAR_GP_PIN(6, 19), PU5, 26 }, /* SSI_SDATA7 */
  4758. { RCAR_GP_PIN(6, 18), PU5, 25 }, /* SSI_WS78 */
  4759. { RCAR_GP_PIN(6, 17), PU5, 24 }, /* SSI_SCK78 */
  4760. { RCAR_GP_PIN(6, 16), PU5, 23 }, /* SSI_SDATA6 */
  4761. { RCAR_GP_PIN(6, 15), PU5, 22 }, /* SSI_WS6 */
  4762. { RCAR_GP_PIN(6, 14), PU5, 21 }, /* SSI_SCK6 */
  4763. { RCAR_GP_PIN(6, 13), PU5, 20 }, /* SSI_SDATA5 */
  4764. { RCAR_GP_PIN(6, 12), PU5, 19 }, /* SSI_WS5 */
  4765. { RCAR_GP_PIN(6, 11), PU5, 18 }, /* SSI_SCK5 */
  4766. { RCAR_GP_PIN(6, 10), PU5, 17 }, /* SSI_SDATA4 */
  4767. { RCAR_GP_PIN(6, 9), PU5, 16 }, /* SSI_WS4 */
  4768. { RCAR_GP_PIN(6, 8), PU5, 15 }, /* SSI_SCK4 */
  4769. { RCAR_GP_PIN(6, 7), PU5, 14 }, /* SSI_SDATA3 */
  4770. { RCAR_GP_PIN(6, 6), PU5, 13 }, /* SSI_WS34 */
  4771. { RCAR_GP_PIN(6, 5), PU5, 12 }, /* SSI_SCK34 */
  4772. { RCAR_GP_PIN(6, 4), PU5, 11 }, /* SSI_SDATA2_A */
  4773. { RCAR_GP_PIN(6, 3), PU5, 10 }, /* SSI_SDATA1_A */
  4774. { RCAR_GP_PIN(6, 2), PU5, 9 }, /* SSI_SDATA0 */
  4775. { RCAR_GP_PIN(6, 1), PU5, 8 }, /* SSI_WS01239 */
  4776. { RCAR_GP_PIN(6, 0), PU5, 7 }, /* SSI_SCK01239 */
  4777. { PIN_NUMBER('H', 37), PU5, 6 }, /* MLB_REF */
  4778. { RCAR_GP_PIN(5, 25), PU5, 5 }, /* MLB_DAT */
  4779. { RCAR_GP_PIN(5, 24), PU5, 4 }, /* MLB_SIG */
  4780. { RCAR_GP_PIN(5, 23), PU5, 3 }, /* MLB_CLK */
  4781. { RCAR_GP_PIN(5, 22), PU5, 2 }, /* MSIOF0_RXD */
  4782. { RCAR_GP_PIN(5, 21), PU5, 1 }, /* MSIOF0_SS2 */
  4783. { RCAR_GP_PIN(5, 20), PU5, 0 }, /* MSIOF0_TXD */
  4784. { RCAR_GP_PIN(6, 31), PU6, 6 }, /* GP6_31 */
  4785. { RCAR_GP_PIN(6, 30), PU6, 5 }, /* GP6_30 */
  4786. { RCAR_GP_PIN(6, 29), PU6, 4 }, /* USB30_OVC */
  4787. { RCAR_GP_PIN(6, 28), PU6, 3 }, /* USB30_PWEN */
  4788. { RCAR_GP_PIN(6, 27), PU6, 2 }, /* USB1_OVC */
  4789. { RCAR_GP_PIN(6, 26), PU6, 1 }, /* USB1_PWEN */
  4790. { RCAR_GP_PIN(6, 25), PU6, 0 }, /* USB0_OVC */
  4791. };
  4792. static unsigned int r8a7796_pinmux_get_bias(struct sh_pfc *pfc,
  4793. unsigned int pin)
  4794. {
  4795. const struct sh_pfc_bias_info *info;
  4796. u32 reg;
  4797. u32 bit;
  4798. info = sh_pfc_pin_to_bias_info(bias_info, ARRAY_SIZE(bias_info), pin);
  4799. if (!info)
  4800. return PIN_CONFIG_BIAS_DISABLE;
  4801. reg = info->reg;
  4802. bit = BIT(info->bit);
  4803. if (!(sh_pfc_read_reg(pfc, PUEN + reg, 32) & bit))
  4804. return PIN_CONFIG_BIAS_DISABLE;
  4805. else if (sh_pfc_read_reg(pfc, PUD + reg, 32) & bit)
  4806. return PIN_CONFIG_BIAS_PULL_UP;
  4807. else
  4808. return PIN_CONFIG_BIAS_PULL_DOWN;
  4809. }
  4810. static void r8a7796_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
  4811. unsigned int bias)
  4812. {
  4813. const struct sh_pfc_bias_info *info;
  4814. u32 enable, updown;
  4815. u32 reg;
  4816. u32 bit;
  4817. info = sh_pfc_pin_to_bias_info(bias_info, ARRAY_SIZE(bias_info), pin);
  4818. if (!info)
  4819. return;
  4820. reg = info->reg;
  4821. bit = BIT(info->bit);
  4822. enable = sh_pfc_read_reg(pfc, PUEN + reg, 32) & ~bit;
  4823. if (bias != PIN_CONFIG_BIAS_DISABLE)
  4824. enable |= bit;
  4825. updown = sh_pfc_read_reg(pfc, PUD + reg, 32) & ~bit;
  4826. if (bias == PIN_CONFIG_BIAS_PULL_UP)
  4827. updown |= bit;
  4828. sh_pfc_write_reg(pfc, PUD + reg, 32, updown);
  4829. sh_pfc_write_reg(pfc, PUEN + reg, 32, enable);
  4830. }
  4831. static const struct sh_pfc_soc_operations r8a7796_pinmux_ops = {
  4832. .pin_to_pocctrl = r8a7796_pin_to_pocctrl,
  4833. .get_bias = r8a7796_pinmux_get_bias,
  4834. .set_bias = r8a7796_pinmux_set_bias,
  4835. };
  4836. const struct sh_pfc_soc_info r8a7796_pinmux_info = {
  4837. .name = "r8a77960_pfc",
  4838. .ops = &r8a7796_pinmux_ops,
  4839. .unlock_reg = 0xe6060000, /* PMMR */
  4840. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  4841. .pins = pinmux_pins,
  4842. .nr_pins = ARRAY_SIZE(pinmux_pins),
  4843. .groups = pinmux_groups,
  4844. .nr_groups = ARRAY_SIZE(pinmux_groups),
  4845. .functions = pinmux_functions,
  4846. .nr_functions = ARRAY_SIZE(pinmux_functions),
  4847. .cfg_regs = pinmux_config_regs,
  4848. .drive_regs = pinmux_drive_regs,
  4849. .pinmux_data = pinmux_data,
  4850. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  4851. };