pfc-sh73a0.c 128 KB

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