mt_spm_reg.h 175 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919
  1. /*
  2. * Copyright (c) 2020, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. /****************************************************************
  7. * Auto generated by DE, please DO NOT modify this file directly.
  8. *****************************************************************/
  9. #ifndef MT_SPM_REG
  10. #define MT_SPM_REG
  11. #include "pcm_def.h"
  12. #include <platform_def.h>
  13. #include "sleep_def.h"
  14. /**************************************
  15. * Define and Declare
  16. **************************************/
  17. #define POWERON_CONFIG_EN (SPM_BASE + 0x000)
  18. #define SPM_POWER_ON_VAL0 (SPM_BASE + 0x004)
  19. #define SPM_POWER_ON_VAL1 (SPM_BASE + 0x008)
  20. #define SPM_CLK_CON (SPM_BASE + 0x00C)
  21. #define SPM_CLK_SETTLE (SPM_BASE + 0x010)
  22. #define SPM_AP_STANDBY_CON (SPM_BASE + 0x014)
  23. #define PCM_CON0 (SPM_BASE + 0x018)
  24. #define PCM_CON1 (SPM_BASE + 0x01C)
  25. #define SPM_POWER_ON_VAL2 (SPM_BASE + 0x020)
  26. #define SPM_POWER_ON_VAL3 (SPM_BASE + 0x024)
  27. #define PCM_REG_DATA_INI (SPM_BASE + 0x028)
  28. #define PCM_PWR_IO_EN (SPM_BASE + 0x02C)
  29. #define PCM_TIMER_VAL (SPM_BASE + 0x030)
  30. #define PCM_WDT_VAL (SPM_BASE + 0x034)
  31. #define SPM_SRC6_MASK (SPM_BASE + 0x038)
  32. #define SPM_SW_RST_CON (SPM_BASE + 0x040)
  33. #define SPM_SW_RST_CON_SET (SPM_BASE + 0x044)
  34. #define SPM_SW_RST_CON_CLR (SPM_BASE + 0x048)
  35. #define VS1_PSR_MASK_B (SPM_BASE + 0x04C)
  36. #define VS2_PSR_MASK_B (SPM_BASE + 0x050)
  37. #define MD32_CLK_CON (SPM_BASE + 0x084)
  38. #define SPM_SRAM_RSV_CON (SPM_BASE + 0x088)
  39. #define SPM_SWINT (SPM_BASE + 0x08C)
  40. #define SPM_SWINT_SET (SPM_BASE + 0x090)
  41. #define SPM_SWINT_CLR (SPM_BASE + 0x094)
  42. #define SPM_SCP_MAILBOX (SPM_BASE + 0x098)
  43. #define SCP_SPM_MAILBOX (SPM_BASE + 0x09C)
  44. #define SPM_TWAM_CON (SPM_BASE + 0x0A0)
  45. #define SPM_TWAM_WINDOW_LEN (SPM_BASE + 0x0A4)
  46. #define SPM_TWAM_IDLE_SEL (SPM_BASE + 0x0A8)
  47. #define SPM_SCP_IRQ (SPM_BASE + 0x0AC)
  48. #define SPM_CPU_WAKEUP_EVENT (SPM_BASE + 0x0B0)
  49. #define SPM_IRQ_MASK (SPM_BASE + 0x0B4)
  50. #define SPM_SRC_REQ (SPM_BASE + 0x0B8)
  51. #define SPM_SRC_MASK (SPM_BASE + 0x0BC)
  52. #define SPM_SRC2_MASK (SPM_BASE + 0x0C0)
  53. #define SPM_SRC3_MASK (SPM_BASE + 0x0C4)
  54. #define SPM_SRC4_MASK (SPM_BASE + 0x0C8)
  55. #define SPM_SRC5_MASK (SPM_BASE + 0x0CC)
  56. #define SPM_WAKEUP_EVENT_MASK (SPM_BASE + 0x0D0)
  57. #define SPM_WAKEUP_EVENT_EXT_MASK (SPM_BASE + 0x0D4)
  58. #define SPM_TWAM_EVENT_CLEAR (SPM_BASE + 0x0D8)
  59. #define SCP_CLK_CON (SPM_BASE + 0x0DC)
  60. #define PCM_DEBUG_CON (SPM_BASE + 0x0E0)
  61. #define AHB_BUS_CON (SPM_BASE + 0x0E4)
  62. #define DDR_EN_DBC_CON0 (SPM_BASE + 0x0E8)
  63. #define DDR_EN_DBC_CON1 (SPM_BASE + 0x0EC)
  64. #define SPM_RESOURCE_ACK_CON0 (SPM_BASE + 0x0F0)
  65. #define SPM_RESOURCE_ACK_CON1 (SPM_BASE + 0x0F4)
  66. #define SPM_RESOURCE_ACK_CON2 (SPM_BASE + 0x0F8)
  67. #define SPM_RESOURCE_ACK_CON3 (SPM_BASE + 0x0FC)
  68. #define PCM_REG0_DATA (SPM_BASE + 0x100)
  69. #define PCM_REG2_DATA (SPM_BASE + 0x104)
  70. #define PCM_REG6_DATA (SPM_BASE + 0x108)
  71. #define PCM_REG7_DATA (SPM_BASE + 0x10C)
  72. #define PCM_REG13_DATA (SPM_BASE + 0x110)
  73. #define SRC_REQ_STA_0 (SPM_BASE + 0x114)
  74. #define SRC_REQ_STA_1 (SPM_BASE + 0x118)
  75. #define SRC_REQ_STA_2 (SPM_BASE + 0x11C)
  76. #define PCM_TIMER_OUT (SPM_BASE + 0x120)
  77. #define PCM_WDT_OUT (SPM_BASE + 0x124)
  78. #define SPM_IRQ_STA (SPM_BASE + 0x128)
  79. #define SRC_REQ_STA_4 (SPM_BASE + 0x12C)
  80. #define MD32PCM_WAKEUP_STA (SPM_BASE + 0x130)
  81. #define MD32PCM_EVENT_STA (SPM_BASE + 0x134)
  82. #define SPM_WAKEUP_STA (SPM_BASE + 0x138)
  83. #define SPM_WAKEUP_EXT_STA (SPM_BASE + 0x13C)
  84. #define SPM_WAKEUP_MISC (SPM_BASE + 0x140)
  85. #define MM_DVFS_HALT (SPM_BASE + 0x144)
  86. #define BUS_PROTECT_RDY (SPM_BASE + 0x150)
  87. #define BUS_PROTECT1_RDY (SPM_BASE + 0x154)
  88. #define BUS_PROTECT2_RDY (SPM_BASE + 0x158)
  89. #define BUS_PROTECT3_RDY (SPM_BASE + 0x15C)
  90. #define SUBSYS_IDLE_STA (SPM_BASE + 0x160)
  91. #define PCM_STA (SPM_BASE + 0x164)
  92. #define SRC_REQ_STA_3 (SPM_BASE + 0x168)
  93. #define PWR_STATUS (SPM_BASE + 0x16C)
  94. #define PWR_STATUS_2ND (SPM_BASE + 0x170)
  95. #define CPU_PWR_STATUS (SPM_BASE + 0x174)
  96. #define OTHER_PWR_STATUS (SPM_BASE + 0x178)
  97. #define SPM_VTCXO_EVENT_COUNT_STA (SPM_BASE + 0x17C)
  98. #define SPM_INFRA_EVENT_COUNT_STA (SPM_BASE + 0x180)
  99. #define SPM_VRF18_EVENT_COUNT_STA (SPM_BASE + 0x184)
  100. #define SPM_APSRC_EVENT_COUNT_STA (SPM_BASE + 0x188)
  101. #define SPM_DDREN_EVENT_COUNT_STA (SPM_BASE + 0x18C)
  102. #define MD32PCM_STA (SPM_BASE + 0x190)
  103. #define MD32PCM_PC (SPM_BASE + 0x194)
  104. #define DVFSRC_EVENT_STA (SPM_BASE + 0x1A4)
  105. #define BUS_PROTECT4_RDY (SPM_BASE + 0x1A8)
  106. #define BUS_PROTECT5_RDY (SPM_BASE + 0x1AC)
  107. #define BUS_PROTECT6_RDY (SPM_BASE + 0x1B0)
  108. #define BUS_PROTECT7_RDY (SPM_BASE + 0x1B4)
  109. #define BUS_PROTECT8_RDY (SPM_BASE + 0x1B8)
  110. #define SPM_TWAM_LAST_STA0 (SPM_BASE + 0x1D0)
  111. #define SPM_TWAM_LAST_STA1 (SPM_BASE + 0x1D4)
  112. #define SPM_TWAM_LAST_STA2 (SPM_BASE + 0x1D8)
  113. #define SPM_TWAM_LAST_STA3 (SPM_BASE + 0x1DC)
  114. #define SPM_TWAM_CURR_STA0 (SPM_BASE + 0x1E0)
  115. #define SPM_TWAM_CURR_STA1 (SPM_BASE + 0x1E4)
  116. #define SPM_TWAM_CURR_STA2 (SPM_BASE + 0x1E8)
  117. #define SPM_TWAM_CURR_STA3 (SPM_BASE + 0x1EC)
  118. #define SPM_TWAM_TIMER_OUT (SPM_BASE + 0x1F0)
  119. #define SPM_CG_CHECK_STA (SPM_BASE + 0x1F4)
  120. #define SPM_DVFS_STA (SPM_BASE + 0x1F8)
  121. #define SPM_DVFS_OPP_STA (SPM_BASE + 0x1FC)
  122. #define SPM_MCUSYS_PWR_CON (SPM_BASE + 0x200)
  123. #define SPM_CPUTOP_PWR_CON (SPM_BASE + 0x204)
  124. #define SPM_CPU0_PWR_CON (SPM_BASE + 0x208)
  125. #define SPM_CPU1_PWR_CON (SPM_BASE + 0x20C)
  126. #define SPM_CPU2_PWR_CON (SPM_BASE + 0x210)
  127. #define SPM_CPU3_PWR_CON (SPM_BASE + 0x214)
  128. #define SPM_CPU4_PWR_CON (SPM_BASE + 0x218)
  129. #define SPM_CPU5_PWR_CON (SPM_BASE + 0x21C)
  130. #define SPM_CPU6_PWR_CON (SPM_BASE + 0x220)
  131. #define SPM_CPU7_PWR_CON (SPM_BASE + 0x224)
  132. #define ARMPLL_CLK_CON (SPM_BASE + 0x22C)
  133. #define MCUSYS_IDLE_STA (SPM_BASE + 0x230)
  134. #define GIC_WAKEUP_STA (SPM_BASE + 0x234)
  135. #define CPU_SPARE_CON (SPM_BASE + 0x238)
  136. #define CPU_SPARE_CON_SET (SPM_BASE + 0x23C)
  137. #define CPU_SPARE_CON_CLR (SPM_BASE + 0x240)
  138. #define ARMPLL_CLK_SEL (SPM_BASE + 0x244)
  139. #define EXT_INT_WAKEUP_REQ (SPM_BASE + 0x248)
  140. #define EXT_INT_WAKEUP_REQ_SET (SPM_BASE + 0x24C)
  141. #define EXT_INT_WAKEUP_REQ_CLR (SPM_BASE + 0x250)
  142. #define MP0_CPU0_IRQ_MASK (SPM_BASE + 0x260)
  143. #define MP0_CPU1_IRQ_MASK (SPM_BASE + 0x264)
  144. #define MP0_CPU2_IRQ_MASK (SPM_BASE + 0x268)
  145. #define MP0_CPU3_IRQ_MASK (SPM_BASE + 0x26C)
  146. #define MP1_CPU0_IRQ_MASK (SPM_BASE + 0x270)
  147. #define MP1_CPU1_IRQ_MASK (SPM_BASE + 0x274)
  148. #define MP1_CPU2_IRQ_MASK (SPM_BASE + 0x278)
  149. #define MP1_CPU3_IRQ_MASK (SPM_BASE + 0x27C)
  150. #define MP0_CPU0_WFI_EN (SPM_BASE + 0x280)
  151. #define MP0_CPU1_WFI_EN (SPM_BASE + 0x284)
  152. #define MP0_CPU2_WFI_EN (SPM_BASE + 0x288)
  153. #define MP0_CPU3_WFI_EN (SPM_BASE + 0x28C)
  154. #define MP0_CPU4_WFI_EN (SPM_BASE + 0x290)
  155. #define MP0_CPU5_WFI_EN (SPM_BASE + 0x294)
  156. #define MP0_CPU6_WFI_EN (SPM_BASE + 0x298)
  157. #define MP0_CPU7_WFI_EN (SPM_BASE + 0x29C)
  158. #define ROOT_CPUTOP_ADDR (SPM_BASE + 0x2A0)
  159. #define ROOT_CORE_ADDR (SPM_BASE + 0x2A4)
  160. #define SPM2SW_MAILBOX_0 (SPM_BASE + 0x2D0)
  161. #define SPM2SW_MAILBOX_1 (SPM_BASE + 0x2D4)
  162. #define SPM2SW_MAILBOX_2 (SPM_BASE + 0x2D8)
  163. #define SPM2SW_MAILBOX_3 (SPM_BASE + 0x2DC)
  164. #define SW2SPM_INT (SPM_BASE + 0x2E0)
  165. #define SW2SPM_INT_SET (SPM_BASE + 0x2E4)
  166. #define SW2SPM_INT_CLR (SPM_BASE + 0x2E8)
  167. #define SW2SPM_MAILBOX_0 (SPM_BASE + 0x2EC)
  168. #define SW2SPM_MAILBOX_1 (SPM_BASE + 0x2F0)
  169. #define SW2SPM_MAILBOX_2 (SPM_BASE + 0x2F4)
  170. #define SW2SPM_MAILBOX_3 (SPM_BASE + 0x2F8)
  171. #define SW2SPM_CFG (SPM_BASE + 0x2FC)
  172. #define MD1_PWR_CON (SPM_BASE + 0x300)
  173. #define CONN_PWR_CON (SPM_BASE + 0x304)
  174. #define MFG0_PWR_CON (SPM_BASE + 0x308)
  175. #define MFG1_PWR_CON (SPM_BASE + 0x30C)
  176. #define MFG2_PWR_CON (SPM_BASE + 0x310)
  177. #define MFG3_PWR_CON (SPM_BASE + 0x314)
  178. #define MFG4_PWR_CON (SPM_BASE + 0x318)
  179. #define MFG5_PWR_CON (SPM_BASE + 0x31C)
  180. #define MFG6_PWR_CON (SPM_BASE + 0x320)
  181. #define IFR_PWR_CON (SPM_BASE + 0x324)
  182. #define IFR_SUB_PWR_CON (SPM_BASE + 0x328)
  183. #define DPY_PWR_CON (SPM_BASE + 0x32C)
  184. #define ISP_PWR_CON (SPM_BASE + 0x330)
  185. #define ISP2_PWR_CON (SPM_BASE + 0x334)
  186. #define IPE_PWR_CON (SPM_BASE + 0x338)
  187. #define VDE_PWR_CON (SPM_BASE + 0x33C)
  188. #define VDE2_PWR_CON (SPM_BASE + 0x340)
  189. #define VEN_PWR_CON (SPM_BASE + 0x344)
  190. #define VEN_CORE1_PWR_CON (SPM_BASE + 0x348)
  191. #define MDP_PWR_CON (SPM_BASE + 0x34C)
  192. #define DIS_PWR_CON (SPM_BASE + 0x350)
  193. #define AUDIO_PWR_CON (SPM_BASE + 0x354)
  194. #define ADSP_PWR_CON (SPM_BASE + 0x358)
  195. #define CAM_PWR_CON (SPM_BASE + 0x35C)
  196. #define CAM_RAWA_PWR_CON (SPM_BASE + 0x360)
  197. #define CAM_RAWB_PWR_CON (SPM_BASE + 0x364)
  198. #define CAM_RAWC_PWR_CON (SPM_BASE + 0x368)
  199. #define SYSRAM_CON (SPM_BASE + 0x36C)
  200. #define SYSROM_CON (SPM_BASE + 0x370)
  201. #define SSPM_SRAM_CON (SPM_BASE + 0x374)
  202. #define SCP_SRAM_CON (SPM_BASE + 0x378)
  203. #define DPY_SHU_SRAM_CON (SPM_BASE + 0x37C)
  204. #define UFS_SRAM_CON (SPM_BASE + 0x380)
  205. #define DEVAPC_IFR_SRAM_CON (SPM_BASE + 0x384)
  206. #define DEVAPC_SUBIFR_SRAM_CON (SPM_BASE + 0x388)
  207. #define DEVAPC_ACP_SRAM_CON (SPM_BASE + 0x38C)
  208. #define USB_SRAM_CON (SPM_BASE + 0x390)
  209. #define DUMMY_SRAM_CON (SPM_BASE + 0x394)
  210. #define MD_EXT_BUCK_ISO_CON (SPM_BASE + 0x398)
  211. #define EXT_BUCK_ISO (SPM_BASE + 0x39C)
  212. #define DXCC_SRAM_CON (SPM_BASE + 0x3A0)
  213. #define MSDC_SRAM_CON (SPM_BASE + 0x3A4)
  214. #define DEBUGTOP_SRAM_CON (SPM_BASE + 0x3A8)
  215. #define DP_TX_PWR_CON (SPM_BASE + 0x3AC)
  216. #define DPMAIF_SRAM_CON (SPM_BASE + 0x3B0)
  217. #define DPY_SHU2_SRAM_CON (SPM_BASE + 0x3B4)
  218. #define DRAMC_MCU2_SRAM_CON (SPM_BASE + 0x3B8)
  219. #define DRAMC_MCU_SRAM_CON (SPM_BASE + 0x3BC)
  220. #define MCUPM_SRAM_CON (SPM_BASE + 0x3C0)
  221. #define DPY2_PWR_CON (SPM_BASE + 0x3C4)
  222. #define PERI_PWR_CON (SPM_BASE + 0x3C8)
  223. #define SPM_MEM_CK_SEL (SPM_BASE + 0x400)
  224. #define SPM_BUS_PROTECT_MASK_B (SPM_BASE + 0x404)
  225. #define SPM_BUS_PROTECT1_MASK_B (SPM_BASE + 0x408)
  226. #define SPM_BUS_PROTECT2_MASK_B (SPM_BASE + 0x40C)
  227. #define SPM_BUS_PROTECT3_MASK_B (SPM_BASE + 0x410)
  228. #define SPM_BUS_PROTECT4_MASK_B (SPM_BASE + 0x414)
  229. #define SPM_EMI_BW_MODE (SPM_BASE + 0x418)
  230. #define AP2MD_PEER_WAKEUP (SPM_BASE + 0x41C)
  231. #define ULPOSC_CON (SPM_BASE + 0x420)
  232. #define SPM2MM_CON (SPM_BASE + 0x424)
  233. #define SPM_BUS_PROTECT5_MASK_B (SPM_BASE + 0x428)
  234. #define SPM2MCUPM_CON (SPM_BASE + 0x42C)
  235. #define AP_MDSRC_REQ (SPM_BASE + 0x430)
  236. #define SPM2EMI_ENTER_ULPM (SPM_BASE + 0x434)
  237. #define SPM2MD_DVFS_CON (SPM_BASE + 0x438)
  238. #define MD2SPM_DVFS_CON (SPM_BASE + 0x43C)
  239. #define SPM_BUS_PROTECT6_MASK_B (SPM_BASE + 0x440)
  240. #define SPM_BUS_PROTECT7_MASK_B (SPM_BASE + 0x444)
  241. #define SPM_BUS_PROTECT8_MASK_B (SPM_BASE + 0x448)
  242. #define SPM_PLL_CON (SPM_BASE + 0x44C)
  243. #define CPU_DVFS_REQ (SPM_BASE + 0x450)
  244. #define SPM_DRAM_MCU_SW_CON_0 (SPM_BASE + 0x454)
  245. #define SPM_DRAM_MCU_SW_CON_1 (SPM_BASE + 0x458)
  246. #define SPM_DRAM_MCU_SW_CON_2 (SPM_BASE + 0x45C)
  247. #define SPM_DRAM_MCU_SW_CON_3 (SPM_BASE + 0x460)
  248. #define SPM_DRAM_MCU_SW_CON_4 (SPM_BASE + 0x464)
  249. #define SPM_DRAM_MCU_STA_0 (SPM_BASE + 0x468)
  250. #define SPM_DRAM_MCU_STA_1 (SPM_BASE + 0x46C)
  251. #define SPM_DRAM_MCU_STA_2 (SPM_BASE + 0x470)
  252. #define SPM_DRAM_MCU_SW_SEL_0 (SPM_BASE + 0x474)
  253. #define RELAY_DVFS_LEVEL (SPM_BASE + 0x478)
  254. #define DRAMC_DPY_CLK_SW_CON_0 (SPM_BASE + 0x480)
  255. #define DRAMC_DPY_CLK_SW_CON_1 (SPM_BASE + 0x484)
  256. #define DRAMC_DPY_CLK_SW_CON_2 (SPM_BASE + 0x488)
  257. #define DRAMC_DPY_CLK_SW_CON_3 (SPM_BASE + 0x48C)
  258. #define DRAMC_DPY_CLK_SW_SEL_0 (SPM_BASE + 0x490)
  259. #define DRAMC_DPY_CLK_SW_SEL_1 (SPM_BASE + 0x494)
  260. #define DRAMC_DPY_CLK_SW_SEL_2 (SPM_BASE + 0x498)
  261. #define DRAMC_DPY_CLK_SW_SEL_3 (SPM_BASE + 0x49C)
  262. #define DRAMC_DPY_CLK_SPM_CON (SPM_BASE + 0x4A0)
  263. #define SPM_DVFS_LEVEL (SPM_BASE + 0x4A4)
  264. #define SPM_CIRQ_CON (SPM_BASE + 0x4A8)
  265. #define SPM_DVFS_MISC (SPM_BASE + 0x4AC)
  266. #define SPM_VS1_VS2_RC_CON (SPM_BASE + 0x4B0)
  267. #define RG_MODULE_SW_CG_0_MASK_REQ_0 (SPM_BASE + 0x4B4)
  268. #define RG_MODULE_SW_CG_0_MASK_REQ_1 (SPM_BASE + 0x4B8)
  269. #define RG_MODULE_SW_CG_0_MASK_REQ_2 (SPM_BASE + 0x4BC)
  270. #define RG_MODULE_SW_CG_1_MASK_REQ_0 (SPM_BASE + 0x4C0)
  271. #define RG_MODULE_SW_CG_1_MASK_REQ_1 (SPM_BASE + 0x4C4)
  272. #define RG_MODULE_SW_CG_1_MASK_REQ_2 (SPM_BASE + 0x4C8)
  273. #define RG_MODULE_SW_CG_2_MASK_REQ_0 (SPM_BASE + 0x4CC)
  274. #define RG_MODULE_SW_CG_2_MASK_REQ_1 (SPM_BASE + 0x4D0)
  275. #define RG_MODULE_SW_CG_2_MASK_REQ_2 (SPM_BASE + 0x4D4)
  276. #define RG_MODULE_SW_CG_3_MASK_REQ_0 (SPM_BASE + 0x4D8)
  277. #define RG_MODULE_SW_CG_3_MASK_REQ_1 (SPM_BASE + 0x4DC)
  278. #define RG_MODULE_SW_CG_3_MASK_REQ_2 (SPM_BASE + 0x4E0)
  279. #define PWR_STATUS_MASK_REQ_0 (SPM_BASE + 0x4E4)
  280. #define PWR_STATUS_MASK_REQ_1 (SPM_BASE + 0x4E8)
  281. #define PWR_STATUS_MASK_REQ_2 (SPM_BASE + 0x4EC)
  282. #define SPM_CG_CHECK_CON (SPM_BASE + 0x4F0)
  283. #define SPM_SRC_RDY_STA (SPM_BASE + 0x4F4)
  284. #define SPM_DVS_DFS_LEVEL (SPM_BASE + 0x4F8)
  285. #define SPM_FORCE_DVFS (SPM_BASE + 0x4FC)
  286. #define SRCLKEN_RC_CFG (SPM_BASE + 0x500)
  287. #define RC_CENTRAL_CFG1 (SPM_BASE + 0x504)
  288. #define RC_CENTRAL_CFG2 (SPM_BASE + 0x508)
  289. #define RC_CMD_ARB_CFG (SPM_BASE + 0x50C)
  290. #define RC_PMIC_RCEN_ADDR (SPM_BASE + 0x510)
  291. #define RC_PMIC_RCEN_SET_CLR_ADDR (SPM_BASE + 0x514)
  292. #define RC_DCXO_FPM_CFG (SPM_BASE + 0x518)
  293. #define RC_CENTRAL_CFG3 (SPM_BASE + 0x51C)
  294. #define RC_M00_SRCLKEN_CFG (SPM_BASE + 0x520)
  295. #define RC_M01_SRCLKEN_CFG (SPM_BASE + 0x524)
  296. #define RC_M02_SRCLKEN_CFG (SPM_BASE + 0x528)
  297. #define RC_M03_SRCLKEN_CFG (SPM_BASE + 0x52C)
  298. #define RC_M04_SRCLKEN_CFG (SPM_BASE + 0x530)
  299. #define RC_M05_SRCLKEN_CFG (SPM_BASE + 0x534)
  300. #define RC_M06_SRCLKEN_CFG (SPM_BASE + 0x538)
  301. #define RC_M07_SRCLKEN_CFG (SPM_BASE + 0x53C)
  302. #define RC_M08_SRCLKEN_CFG (SPM_BASE + 0x540)
  303. #define RC_M09_SRCLKEN_CFG (SPM_BASE + 0x544)
  304. #define RC_M10_SRCLKEN_CFG (SPM_BASE + 0x548)
  305. #define RC_M11_SRCLKEN_CFG (SPM_BASE + 0x54C)
  306. #define RC_M12_SRCLKEN_CFG (SPM_BASE + 0x550)
  307. #define RC_SRCLKEN_SW_CON_CFG (SPM_BASE + 0x554)
  308. #define RC_CENTRAL_CFG4 (SPM_BASE + 0x558)
  309. #define RC_PROTOCOL_CHK_CFG (SPM_BASE + 0x560)
  310. #define RC_DEBUG_CFG (SPM_BASE + 0x564)
  311. #define RC_MISC_0 (SPM_BASE + 0x5B4)
  312. #define RC_SPM_CTRL (SPM_BASE + 0x5B8)
  313. #define SUBSYS_INTF_CFG (SPM_BASE + 0x5BC)
  314. #define PCM_WDT_LATCH_25 (SPM_BASE + 0x5C0)
  315. #define PCM_WDT_LATCH_26 (SPM_BASE + 0x5C4)
  316. #define PCM_WDT_LATCH_27 (SPM_BASE + 0x5C8)
  317. #define PCM_WDT_LATCH_28 (SPM_BASE + 0x5CC)
  318. #define PCM_WDT_LATCH_29 (SPM_BASE + 0x5D0)
  319. #define PCM_WDT_LATCH_30 (SPM_BASE + 0x5D4)
  320. #define PCM_WDT_LATCH_31 (SPM_BASE + 0x5D8)
  321. #define PCM_WDT_LATCH_32 (SPM_BASE + 0x5DC)
  322. #define PCM_WDT_LATCH_33 (SPM_BASE + 0x5E0)
  323. #define PCM_WDT_LATCH_34 (SPM_BASE + 0x5E4)
  324. #define PCM_WDT_LATCH_35 (SPM_BASE + 0x5EC)
  325. #define PCM_WDT_LATCH_36 (SPM_BASE + 0x5F0)
  326. #define PCM_WDT_LATCH_37 (SPM_BASE + 0x5F4)
  327. #define PCM_WDT_LATCH_38 (SPM_BASE + 0x5F8)
  328. #define PCM_WDT_LATCH_39 (SPM_BASE + 0x5FC)
  329. #define SPM_SW_FLAG_0 (SPM_BASE + 0x600)
  330. #define SPM_SW_DEBUG_0 (SPM_BASE + 0x604)
  331. #define SPM_SW_FLAG_1 (SPM_BASE + 0x608)
  332. #define SPM_SW_DEBUG_1 (SPM_BASE + 0x60C)
  333. #define SPM_SW_RSV_0 (SPM_BASE + 0x610)
  334. #define SPM_SW_RSV_1 (SPM_BASE + 0x614)
  335. #define SPM_SW_RSV_2 (SPM_BASE + 0x618)
  336. #define SPM_SW_RSV_3 (SPM_BASE + 0x61C)
  337. #define SPM_SW_RSV_4 (SPM_BASE + 0x620)
  338. #define SPM_SW_RSV_5 (SPM_BASE + 0x624)
  339. #define SPM_SW_RSV_6 (SPM_BASE + 0x628)
  340. #define SPM_SW_RSV_7 (SPM_BASE + 0x62C)
  341. #define SPM_SW_RSV_8 (SPM_BASE + 0x630)
  342. #define SPM_BK_WAKE_EVENT (SPM_BASE + 0x634)
  343. #define SPM_BK_VTCXO_DUR (SPM_BASE + 0x638)
  344. #define SPM_BK_WAKE_MISC (SPM_BASE + 0x63C)
  345. #define SPM_BK_PCM_TIMER (SPM_BASE + 0x640)
  346. #define SPM_RSV_CON_0 (SPM_BASE + 0x650)
  347. #define SPM_RSV_CON_1 (SPM_BASE + 0x654)
  348. #define SPM_RSV_STA_0 (SPM_BASE + 0x658)
  349. #define SPM_RSV_STA_1 (SPM_BASE + 0x65C)
  350. #define SPM_SPARE_CON (SPM_BASE + 0x660)
  351. #define SPM_SPARE_CON_SET (SPM_BASE + 0x664)
  352. #define SPM_SPARE_CON_CLR (SPM_BASE + 0x668)
  353. #define SPM_CROSS_WAKE_M00_REQ (SPM_BASE + 0x66C)
  354. #define SPM_CROSS_WAKE_M01_REQ (SPM_BASE + 0x670)
  355. #define SPM_CROSS_WAKE_M02_REQ (SPM_BASE + 0x674)
  356. #define SPM_CROSS_WAKE_M03_REQ (SPM_BASE + 0x678)
  357. #define SCP_VCORE_LEVEL (SPM_BASE + 0x67C)
  358. #define SC_MM_CK_SEL_CON (SPM_BASE + 0x680)
  359. #define SPARE_ACK_MASK (SPM_BASE + 0x684)
  360. #define SPM_CROSS_WAKE_M04_REQ (SPM_BASE + 0x688)
  361. #define SPM_DV_CON_0 (SPM_BASE + 0x68C)
  362. #define SPM_DV_CON_1 (SPM_BASE + 0x690)
  363. #define SPM_DV_STA (SPM_BASE + 0x694)
  364. #define CONN_XOWCN_DEBUG_EN (SPM_BASE + 0x698)
  365. #define SPM_SEMA_M0 (SPM_BASE + 0x69C)
  366. #define SPM_SEMA_M1 (SPM_BASE + 0x6A0)
  367. #define SPM_SEMA_M2 (SPM_BASE + 0x6A4)
  368. #define SPM_SEMA_M3 (SPM_BASE + 0x6A8)
  369. #define SPM_SEMA_M4 (SPM_BASE + 0x6AC)
  370. #define SPM_SEMA_M5 (SPM_BASE + 0x6B0)
  371. #define SPM_SEMA_M6 (SPM_BASE + 0x6B4)
  372. #define SPM_SEMA_M7 (SPM_BASE + 0x6B8)
  373. #define SPM2ADSP_MAILBOX (SPM_BASE + 0x6BC)
  374. #define ADSP2SPM_MAILBOX (SPM_BASE + 0x6C0)
  375. #define SPM_ADSP_IRQ (SPM_BASE + 0x6C4)
  376. #define SPM_MD32_IRQ (SPM_BASE + 0x6C8)
  377. #define SPM2PMCU_MAILBOX_0 (SPM_BASE + 0x6CC)
  378. #define SPM2PMCU_MAILBOX_1 (SPM_BASE + 0x6D0)
  379. #define SPM2PMCU_MAILBOX_2 (SPM_BASE + 0x6D4)
  380. #define SPM2PMCU_MAILBOX_3 (SPM_BASE + 0x6D8)
  381. #define PMCU2SPM_MAILBOX_0 (SPM_BASE + 0x6DC)
  382. #define PMCU2SPM_MAILBOX_1 (SPM_BASE + 0x6E0)
  383. #define PMCU2SPM_MAILBOX_2 (SPM_BASE + 0x6E4)
  384. #define PMCU2SPM_MAILBOX_3 (SPM_BASE + 0x6E8)
  385. #define UFS_PSRI_SW (SPM_BASE + 0x6EC)
  386. #define UFS_PSRI_SW_SET (SPM_BASE + 0x6F0)
  387. #define UFS_PSRI_SW_CLR (SPM_BASE + 0x6F4)
  388. #define SPM_AP_SEMA (SPM_BASE + 0x6F8)
  389. #define SPM_SPM_SEMA (SPM_BASE + 0x6FC)
  390. #define SPM_DVFS_CON (SPM_BASE + 0x700)
  391. #define SPM_DVFS_CON_STA (SPM_BASE + 0x704)
  392. #define SPM_PMIC_SPMI_CON (SPM_BASE + 0x708)
  393. #define SPM_DVFS_CMD0 (SPM_BASE + 0x710)
  394. #define SPM_DVFS_CMD1 (SPM_BASE + 0x714)
  395. #define SPM_DVFS_CMD2 (SPM_BASE + 0x718)
  396. #define SPM_DVFS_CMD3 (SPM_BASE + 0x71C)
  397. #define SPM_DVFS_CMD4 (SPM_BASE + 0x720)
  398. #define SPM_DVFS_CMD5 (SPM_BASE + 0x724)
  399. #define SPM_DVFS_CMD6 (SPM_BASE + 0x728)
  400. #define SPM_DVFS_CMD7 (SPM_BASE + 0x72C)
  401. #define SPM_DVFS_CMD8 (SPM_BASE + 0x730)
  402. #define SPM_DVFS_CMD9 (SPM_BASE + 0x734)
  403. #define SPM_DVFS_CMD10 (SPM_BASE + 0x738)
  404. #define SPM_DVFS_CMD11 (SPM_BASE + 0x73C)
  405. #define SPM_DVFS_CMD12 (SPM_BASE + 0x740)
  406. #define SPM_DVFS_CMD13 (SPM_BASE + 0x744)
  407. #define SPM_DVFS_CMD14 (SPM_BASE + 0x748)
  408. #define SPM_DVFS_CMD15 (SPM_BASE + 0x74C)
  409. #define SPM_DVFS_CMD16 (SPM_BASE + 0x750)
  410. #define SPM_DVFS_CMD17 (SPM_BASE + 0x754)
  411. #define SPM_DVFS_CMD18 (SPM_BASE + 0x758)
  412. #define SPM_DVFS_CMD19 (SPM_BASE + 0x75C)
  413. #define SPM_DVFS_CMD20 (SPM_BASE + 0x760)
  414. #define SPM_DVFS_CMD21 (SPM_BASE + 0x764)
  415. #define SPM_DVFS_CMD22 (SPM_BASE + 0x768)
  416. #define SPM_DVFS_CMD23 (SPM_BASE + 0x76C)
  417. #define SYS_TIMER_VALUE_L (SPM_BASE + 0x770)
  418. #define SYS_TIMER_VALUE_H (SPM_BASE + 0x774)
  419. #define SYS_TIMER_START_L (SPM_BASE + 0x778)
  420. #define SYS_TIMER_START_H (SPM_BASE + 0x77C)
  421. #define SYS_TIMER_LATCH_L_00 (SPM_BASE + 0x780)
  422. #define SYS_TIMER_LATCH_H_00 (SPM_BASE + 0x784)
  423. #define SYS_TIMER_LATCH_L_01 (SPM_BASE + 0x788)
  424. #define SYS_TIMER_LATCH_H_01 (SPM_BASE + 0x78C)
  425. #define SYS_TIMER_LATCH_L_02 (SPM_BASE + 0x790)
  426. #define SYS_TIMER_LATCH_H_02 (SPM_BASE + 0x794)
  427. #define SYS_TIMER_LATCH_L_03 (SPM_BASE + 0x798)
  428. #define SYS_TIMER_LATCH_H_03 (SPM_BASE + 0x79C)
  429. #define SYS_TIMER_LATCH_L_04 (SPM_BASE + 0x7A0)
  430. #define SYS_TIMER_LATCH_H_04 (SPM_BASE + 0x7A4)
  431. #define SYS_TIMER_LATCH_L_05 (SPM_BASE + 0x7A8)
  432. #define SYS_TIMER_LATCH_H_05 (SPM_BASE + 0x7AC)
  433. #define SYS_TIMER_LATCH_L_06 (SPM_BASE + 0x7B0)
  434. #define SYS_TIMER_LATCH_H_06 (SPM_BASE + 0x7B4)
  435. #define SYS_TIMER_LATCH_L_07 (SPM_BASE + 0x7B8)
  436. #define SYS_TIMER_LATCH_H_07 (SPM_BASE + 0x7BC)
  437. #define SYS_TIMER_LATCH_L_08 (SPM_BASE + 0x7C0)
  438. #define SYS_TIMER_LATCH_H_08 (SPM_BASE + 0x7C4)
  439. #define SYS_TIMER_LATCH_L_09 (SPM_BASE + 0x7C8)
  440. #define SYS_TIMER_LATCH_H_09 (SPM_BASE + 0x7CC)
  441. #define SYS_TIMER_LATCH_L_10 (SPM_BASE + 0x7D0)
  442. #define SYS_TIMER_LATCH_H_10 (SPM_BASE + 0x7D4)
  443. #define SYS_TIMER_LATCH_L_11 (SPM_BASE + 0x7D8)
  444. #define SYS_TIMER_LATCH_H_11 (SPM_BASE + 0x7DC)
  445. #define SYS_TIMER_LATCH_L_12 (SPM_BASE + 0x7E0)
  446. #define SYS_TIMER_LATCH_H_12 (SPM_BASE + 0x7E4)
  447. #define SYS_TIMER_LATCH_L_13 (SPM_BASE + 0x7E8)
  448. #define SYS_TIMER_LATCH_H_13 (SPM_BASE + 0x7EC)
  449. #define SYS_TIMER_LATCH_L_14 (SPM_BASE + 0x7F0)
  450. #define SYS_TIMER_LATCH_H_14 (SPM_BASE + 0x7F4)
  451. #define SYS_TIMER_LATCH_L_15 (SPM_BASE + 0x7F8)
  452. #define SYS_TIMER_LATCH_H_15 (SPM_BASE + 0x7FC)
  453. #define PCM_WDT_LATCH_0 (SPM_BASE + 0x800)
  454. #define PCM_WDT_LATCH_1 (SPM_BASE + 0x804)
  455. #define PCM_WDT_LATCH_2 (SPM_BASE + 0x808)
  456. #define PCM_WDT_LATCH_3 (SPM_BASE + 0x80C)
  457. #define PCM_WDT_LATCH_4 (SPM_BASE + 0x810)
  458. #define PCM_WDT_LATCH_5 (SPM_BASE + 0x814)
  459. #define PCM_WDT_LATCH_6 (SPM_BASE + 0x818)
  460. #define PCM_WDT_LATCH_7 (SPM_BASE + 0x81C)
  461. #define PCM_WDT_LATCH_8 (SPM_BASE + 0x820)
  462. #define PCM_WDT_LATCH_9 (SPM_BASE + 0x824)
  463. #define PCM_WDT_LATCH_10 (SPM_BASE + 0x828)
  464. #define PCM_WDT_LATCH_11 (SPM_BASE + 0x82C)
  465. #define PCM_WDT_LATCH_12 (SPM_BASE + 0x830)
  466. #define PCM_WDT_LATCH_13 (SPM_BASE + 0x834)
  467. #define PCM_WDT_LATCH_14 (SPM_BASE + 0x838)
  468. #define PCM_WDT_LATCH_15 (SPM_BASE + 0x83C)
  469. #define PCM_WDT_LATCH_16 (SPM_BASE + 0x840)
  470. #define PCM_WDT_LATCH_17 (SPM_BASE + 0x844)
  471. #define PCM_WDT_LATCH_18 (SPM_BASE + 0x848)
  472. #define PCM_WDT_LATCH_SPARE_0 (SPM_BASE + 0x84C)
  473. #define PCM_WDT_LATCH_SPARE_1 (SPM_BASE + 0x850)
  474. #define PCM_WDT_LATCH_SPARE_2 (SPM_BASE + 0x854)
  475. #define PCM_WDT_LATCH_CONN_0 (SPM_BASE + 0x870)
  476. #define PCM_WDT_LATCH_CONN_1 (SPM_BASE + 0x874)
  477. #define PCM_WDT_LATCH_CONN_2 (SPM_BASE + 0x878)
  478. #define DRAMC_GATING_ERR_LATCH_CH0_0 (SPM_BASE + 0x8A0)
  479. #define DRAMC_GATING_ERR_LATCH_CH0_1 (SPM_BASE + 0x8A4)
  480. #define DRAMC_GATING_ERR_LATCH_CH0_2 (SPM_BASE + 0x8A8)
  481. #define DRAMC_GATING_ERR_LATCH_CH0_3 (SPM_BASE + 0x8AC)
  482. #define DRAMC_GATING_ERR_LATCH_CH0_4 (SPM_BASE + 0x8B0)
  483. #define DRAMC_GATING_ERR_LATCH_CH0_5 (SPM_BASE + 0x8B4)
  484. #define DRAMC_GATING_ERR_LATCH_CH0_6 (SPM_BASE + 0x8B8)
  485. #define DRAMC_GATING_ERR_LATCH_SPARE_0 (SPM_BASE + 0x8F4)
  486. #define SPM_ACK_CHK_CON_0 (SPM_BASE + 0x900)
  487. #define SPM_ACK_CHK_PC_0 (SPM_BASE + 0x904)
  488. #define SPM_ACK_CHK_SEL_0 (SPM_BASE + 0x908)
  489. #define SPM_ACK_CHK_TIMER_0 (SPM_BASE + 0x90C)
  490. #define SPM_ACK_CHK_STA_0 (SPM_BASE + 0x910)
  491. #define SPM_ACK_CHK_SWINT_0 (SPM_BASE + 0x914)
  492. #define SPM_ACK_CHK_CON_1 (SPM_BASE + 0x920)
  493. #define SPM_ACK_CHK_PC_1 (SPM_BASE + 0x924)
  494. #define SPM_ACK_CHK_SEL_1 (SPM_BASE + 0x928)
  495. #define SPM_ACK_CHK_TIMER_1 (SPM_BASE + 0x92C)
  496. #define SPM_ACK_CHK_STA_1 (SPM_BASE + 0x930)
  497. #define SPM_ACK_CHK_SWINT_1 (SPM_BASE + 0x934)
  498. #define SPM_ACK_CHK_CON_2 (SPM_BASE + 0x940)
  499. #define SPM_ACK_CHK_PC_2 (SPM_BASE + 0x944)
  500. #define SPM_ACK_CHK_SEL_2 (SPM_BASE + 0x948)
  501. #define SPM_ACK_CHK_TIMER_2 (SPM_BASE + 0x94C)
  502. #define SPM_ACK_CHK_STA_2 (SPM_BASE + 0x950)
  503. #define SPM_ACK_CHK_SWINT_2 (SPM_BASE + 0x954)
  504. #define SPM_ACK_CHK_CON_3 (SPM_BASE + 0x960)
  505. #define SPM_ACK_CHK_PC_3 (SPM_BASE + 0x964)
  506. #define SPM_ACK_CHK_SEL_3 (SPM_BASE + 0x968)
  507. #define SPM_ACK_CHK_TIMER_3 (SPM_BASE + 0x96C)
  508. #define SPM_ACK_CHK_STA_3 (SPM_BASE + 0x970)
  509. #define SPM_ACK_CHK_SWINT_3 (SPM_BASE + 0x974)
  510. #define SPM_COUNTER_0 (SPM_BASE + 0x978)
  511. #define SPM_COUNTER_1 (SPM_BASE + 0x97C)
  512. #define SPM_COUNTER_2 (SPM_BASE + 0x980)
  513. #define SYS_TIMER_CON (SPM_BASE + 0x98C)
  514. #define RC_FSM_STA_0 (SPM_BASE + 0xE00)
  515. #define RC_CMD_STA_0 (SPM_BASE + 0xE04)
  516. #define RC_CMD_STA_1 (SPM_BASE + 0xE08)
  517. #define RC_SPI_STA_0 (SPM_BASE + 0xE0C)
  518. #define RC_PI_PO_STA_0 (SPM_BASE + 0xE10)
  519. #define RC_M00_REQ_STA_0 (SPM_BASE + 0xE14)
  520. #define RC_M01_REQ_STA_0 (SPM_BASE + 0xE1C)
  521. #define RC_M02_REQ_STA_0 (SPM_BASE + 0xE20)
  522. #define RC_M03_REQ_STA_0 (SPM_BASE + 0xE24)
  523. #define RC_M04_REQ_STA_0 (SPM_BASE + 0xE28)
  524. #define RC_M05_REQ_STA_0 (SPM_BASE + 0xE2C)
  525. #define RC_M06_REQ_STA_0 (SPM_BASE + 0xE30)
  526. #define RC_M07_REQ_STA_0 (SPM_BASE + 0xE34)
  527. #define RC_M08_REQ_STA_0 (SPM_BASE + 0xE38)
  528. #define RC_M09_REQ_STA_0 (SPM_BASE + 0xE3C)
  529. #define RC_M10_REQ_STA_0 (SPM_BASE + 0xE40)
  530. #define RC_M11_REQ_STA_0 (SPM_BASE + 0xE44)
  531. #define RC_M12_REQ_STA_0 (SPM_BASE + 0xE48)
  532. #define RC_DEBUG_STA_0 (SPM_BASE + 0xE4C)
  533. #define RC_DEBUG_TRACE_0_LSB (SPM_BASE + 0xE50)
  534. #define RC_DEBUG_TRACE_0_MSB (SPM_BASE + 0xE54)
  535. #define RC_DEBUG_TRACE_1_LSB (SPM_BASE + 0xE5C)
  536. #define RC_DEBUG_TRACE_1_MSB (SPM_BASE + 0xE60)
  537. #define RC_DEBUG_TRACE_2_LSB (SPM_BASE + 0xE64)
  538. #define RC_DEBUG_TRACE_2_MSB (SPM_BASE + 0xE6C)
  539. #define RC_DEBUG_TRACE_3_LSB (SPM_BASE + 0xE70)
  540. #define RC_DEBUG_TRACE_3_MSB (SPM_BASE + 0xE74)
  541. #define RC_DEBUG_TRACE_4_LSB (SPM_BASE + 0xE78)
  542. #define RC_DEBUG_TRACE_4_MSB (SPM_BASE + 0xE7C)
  543. #define RC_DEBUG_TRACE_5_LSB (SPM_BASE + 0xE80)
  544. #define RC_DEBUG_TRACE_5_MSB (SPM_BASE + 0xE84)
  545. #define RC_DEBUG_TRACE_6_LSB (SPM_BASE + 0xE88)
  546. #define RC_DEBUG_TRACE_6_MSB (SPM_BASE + 0xE8C)
  547. #define RC_DEBUG_TRACE_7_LSB (SPM_BASE + 0xE90)
  548. #define RC_DEBUG_TRACE_7_MSB (SPM_BASE + 0xE94)
  549. #define RC_SYS_TIMER_LATCH_0_LSB (SPM_BASE + 0xE98)
  550. #define RC_SYS_TIMER_LATCH_0_MSB (SPM_BASE + 0xE9C)
  551. #define RC_SYS_TIMER_LATCH_1_LSB (SPM_BASE + 0xEA0)
  552. #define RC_SYS_TIMER_LATCH_1_MSB (SPM_BASE + 0xEA4)
  553. #define RC_SYS_TIMER_LATCH_2_LSB (SPM_BASE + 0xEA8)
  554. #define RC_SYS_TIMER_LATCH_2_MSB (SPM_BASE + 0xEAC)
  555. #define RC_SYS_TIMER_LATCH_3_LSB (SPM_BASE + 0xEB0)
  556. #define RC_SYS_TIMER_LATCH_3_MSB (SPM_BASE + 0xEB4)
  557. #define RC_SYS_TIMER_LATCH_4_LSB (SPM_BASE + 0xEB8)
  558. #define RC_SYS_TIMER_LATCH_4_MSB (SPM_BASE + 0xEBC)
  559. #define RC_SYS_TIMER_LATCH_5_LSB (SPM_BASE + 0xEC0)
  560. #define RC_SYS_TIMER_LATCH_5_MSB (SPM_BASE + 0xEC4)
  561. #define RC_SYS_TIMER_LATCH_6_LSB (SPM_BASE + 0xEC8)
  562. #define RC_SYS_TIMER_LATCH_6_MSB (SPM_BASE + 0xECC)
  563. #define RC_SYS_TIMER_LATCH_7_LSB (SPM_BASE + 0xED0)
  564. #define RC_SYS_TIMER_LATCH_7_MSB (SPM_BASE + 0xED4)
  565. #define PCM_WDT_LATCH_19 (SPM_BASE + 0xED8)
  566. #define PCM_WDT_LATCH_20 (SPM_BASE + 0xEDC)
  567. #define PCM_WDT_LATCH_21 (SPM_BASE + 0xEE0)
  568. #define PCM_WDT_LATCH_22 (SPM_BASE + 0xEE4)
  569. #define PCM_WDT_LATCH_23 (SPM_BASE + 0xEE8)
  570. #define PCM_WDT_LATCH_24 (SPM_BASE + 0xEEC)
  571. #define PMSR_LAST_DAT (SPM_BASE + 0xF00)
  572. #define PMSR_LAST_CNT (SPM_BASE + 0xF04)
  573. #define PMSR_LAST_ACK (SPM_BASE + 0xF08)
  574. #define SPM_PMSR_SEL_CON0 (SPM_BASE + 0xF10)
  575. #define SPM_PMSR_SEL_CON1 (SPM_BASE + 0xF14)
  576. #define SPM_PMSR_SEL_CON2 (SPM_BASE + 0xF18)
  577. #define SPM_PMSR_SEL_CON3 (SPM_BASE + 0xF1C)
  578. #define SPM_PMSR_SEL_CON4 (SPM_BASE + 0xF20)
  579. #define SPM_PMSR_SEL_CON5 (SPM_BASE + 0xF24)
  580. #define SPM_PMSR_SEL_CON6 (SPM_BASE + 0xF28)
  581. #define SPM_PMSR_SEL_CON7 (SPM_BASE + 0xF2C)
  582. #define SPM_PMSR_SEL_CON8 (SPM_BASE + 0xF30)
  583. #define SPM_PMSR_SEL_CON9 (SPM_BASE + 0xF34)
  584. #define SPM_PMSR_SEL_CON10 (SPM_BASE + 0xF3C)
  585. #define SPM_PMSR_SEL_CON11 (SPM_BASE + 0xF40)
  586. #define SPM_PMSR_TIEMR_STA0 (SPM_BASE + 0xFB8)
  587. #define SPM_PMSR_TIEMR_STA1 (SPM_BASE + 0xFBC)
  588. #define SPM_PMSR_TIEMR_STA2 (SPM_BASE + 0xFC0)
  589. #define SPM_PMSR_GENERAL_CON0 (SPM_BASE + 0xFC4)
  590. #define SPM_PMSR_GENERAL_CON1 (SPM_BASE + 0xFC8)
  591. #define SPM_PMSR_GENERAL_CON2 (SPM_BASE + 0xFCC)
  592. #define SPM_PMSR_GENERAL_CON3 (SPM_BASE + 0xFD0)
  593. #define SPM_PMSR_GENERAL_CON4 (SPM_BASE + 0xFD4)
  594. #define SPM_PMSR_GENERAL_CON5 (SPM_BASE + 0xFD8)
  595. #define SPM_PMSR_SW_RESET (SPM_BASE + 0xFDC)
  596. #define SPM_PMSR_MON_CON0 (SPM_BASE + 0xFE0)
  597. #define SPM_PMSR_MON_CON1 (SPM_BASE + 0xFE4)
  598. #define SPM_PMSR_MON_CON2 (SPM_BASE + 0xFE8)
  599. #define SPM_PMSR_LEN_CON0 (SPM_BASE + 0xFEC)
  600. #define SPM_PMSR_LEN_CON1 (SPM_BASE + 0xFF0)
  601. #define SPM_PMSR_LEN_CON2 (SPM_BASE + 0xFF4)
  602. /* POWERON_CONFIG_EN (0x10006000+0x000) */
  603. #define BCLK_CG_EN_LSB (1U << 0) /* 1b */
  604. #define PROJECT_CODE_LSB (1U << 16) /* 16b */
  605. /* SPM_POWER_ON_VAL0 (0x10006000+0x004) */
  606. #define POWER_ON_VAL0_LSB (1U << 0) /* 32b */
  607. /* SPM_POWER_ON_VAL1 (0x10006000+0x008) */
  608. #define POWER_ON_VAL1_LSB (1U << 0) /* 32b */
  609. /* SPM_CLK_CON (0x10006000+0x00C) */
  610. #define REG_SRCCLKEN0_CTL_LSB (1U << 0) /* 2b */
  611. #define REG_SRCCLKEN1_CTL_LSB (1U << 2) /* 2b */
  612. #define SYS_SETTLE_SEL_LSB (1U << 4) /* 1b */
  613. #define REG_SPM_LOCK_INFRA_DCM_LSB (1U << 5) /* 1b */
  614. #define REG_SRCCLKEN_MASK_LSB (1U << 6) /* 3b */
  615. #define REG_MD1_C32RM_EN_LSB (1U << 9) /* 1b */
  616. #define REG_MD2_C32RM_EN_LSB (1U << 10) /* 1b */
  617. #define REG_CLKSQ0_SEL_CTRL_LSB (1U << 11) /* 1b */
  618. #define REG_CLKSQ1_SEL_CTRL_LSB (1U << 12) /* 1b */
  619. #define REG_SRCCLKEN0_EN_LSB (1U << 13) /* 1b */
  620. #define REG_SRCCLKEN1_EN_LSB (1U << 14) /* 1b */
  621. #define SCP_DCM_EN_LSB (1U << 15) /* 1b */
  622. #define REG_SYSCLK0_SRC_MASK_B_LSB (1U << 16) /* 8b */
  623. #define REG_SYSCLK1_SRC_MASK_B_LSB (1U << 24) /* 8b */
  624. /* SPM_CLK_SETTLE (0x10006000+0x010) */
  625. #define SYSCLK_SETTLE_LSB (1U << 0) /* 28b */
  626. /* SPM_AP_STANDBY_CON (0x10006000+0x014) */
  627. #define REG_WFI_OP_LSB (1U << 0) /* 1b */
  628. #define REG_WFI_TYPE_LSB (1U << 1) /* 1b */
  629. #define REG_MP0_CPUTOP_IDLE_MASK_LSB (1U << 2) /* 1b */
  630. #define REG_MP1_CPUTOP_IDLE_MASK_LSB (1U << 3) /* 1b */
  631. #define REG_MCUSYS_IDLE_MASK_LSB (1U << 4) /* 1b */
  632. #define REG_MD_APSRC_1_SEL_LSB (1U << 25) /* 1b */
  633. #define REG_MD_APSRC_0_SEL_LSB (1U << 26) /* 1b */
  634. #define REG_CONN_APSRC_SEL_LSB (1U << 29) /* 1b */
  635. /* PCM_CON0 (0x10006000+0x018) */
  636. #define PCM_CK_EN_LSB (1U << 2) /* 1b */
  637. #define RG_EN_IM_SLEEP_DVS_LSB (1U << 3) /* 1b */
  638. #define PCM_CK_FROM_CKSYS_LSB (1U << 4) /* 1b */
  639. #define PCM_SW_RESET_LSB (1U << 15) /* 1b */
  640. #define PCM_CON0_PROJECT_CODE_LSB (1U << 16) /* 16b */
  641. /* PCM_CON1 (0x10006000+0x01C) */
  642. #define RG_IM_SLAVE_LSB (1U << 0) /* 1b */
  643. #define RG_IM_SLEEP_LSB (1U << 1) /* 1b */
  644. #define REG_SPM_SRAM_CTRL_MUX_LSB (1U << 2) /* 1b */
  645. #define RG_AHBMIF_APBEN_LSB (1U << 3) /* 1b */
  646. #define RG_IM_PDN_LSB (1U << 4) /* 1b */
  647. #define RG_PCM_TIMER_EN_LSB (1U << 5) /* 1b */
  648. #define SPM_EVENT_COUNTER_CLR_LSB (1U << 6) /* 1b */
  649. #define RG_DIS_MIF_PROT_LSB (1U << 7) /* 1b */
  650. #define RG_PCM_WDT_EN_LSB (1U << 8) /* 1b */
  651. #define RG_PCM_WDT_WAKE_LSB (1U << 9) /* 1b */
  652. #define REG_SPM_SRAM_SLEEP_B_LSB (1U << 10) /* 1b */
  653. #define REG_SPM_SRAM_ISOINT_B_LSB (1U << 11) /* 1b */
  654. #define REG_EVENT_LOCK_EN_LSB (1U << 12) /* 1b */
  655. #define REG_SRCCLKEN_FAST_RESP_LSB (1U << 13) /* 1b */
  656. #define REG_MD32_APB_INTERNAL_EN_LSB (1U << 14) /* 1b */
  657. #define RG_PCM_IRQ_MSK_LSB (1U << 15) /* 1b */
  658. #define PCM_CON1_PROJECT_CODE_LSB (1U << 16) /* 16b */
  659. /* SPM_POWER_ON_VAL2 (0x10006000+0x020) */
  660. #define POWER_ON_VAL2_LSB (1U << 0) /* 32b */
  661. /* SPM_POWER_ON_VAL3 (0x10006000+0x024) */
  662. #define POWER_ON_VAL3_LSB (1U << 0) /* 32b */
  663. /* PCM_REG_DATA_INI (0x10006000+0x028) */
  664. #define PCM_REG_DATA_INI_LSB (1U << 0) /* 32b */
  665. /* PCM_PWR_IO_EN (0x10006000+0x02C) */
  666. #define PCM_PWR_IO_EN_LSB (1U << 0) /* 8b */
  667. #define RG_RF_SYNC_EN_LSB (1U << 16) /* 8b */
  668. /* PCM_TIMER_VAL (0x10006000+0x030) */
  669. #define REG_PCM_TIMER_VAL_LSB (1U << 0) /* 32b */
  670. /* PCM_WDT_VAL (0x10006000+0x034) */
  671. #define RG_PCM_WDT_VAL_LSB (1U << 0) /* 32b */
  672. /* SPM_SRC6_MASK (0x10006000+0x038) */
  673. #define REG_DPMAIF_SRCCLKENA_MASK_B_LSB (1U << 0) /* 1b */
  674. #define REG_DPMAIF_INFRA_REQ_MASK_B_LSB (1U << 1) /* 1b */
  675. #define REG_DPMAIF_APSRC_REQ_MASK_B_LSB (1U << 2) /* 1b */
  676. #define REG_DPMAIF_VRF18_REQ_MASK_B_LSB (1U << 3) /* 1b */
  677. #define REG_DPMAIF_DDR_EN_MASK_B_LSB (1U << 4) /* 1b */
  678. /* SPM_SW_RST_CON (0x10006000+0x040) */
  679. #define SPM_SW_RST_CON_LSB (1U << 0) /* 16b */
  680. #define SPM_SW_RST_CON_PROJECT_CODE_LSB (1U << 16) /* 16b */
  681. /* SPM_SW_RST_CON_SET (0x10006000+0x044) */
  682. #define SPM_SW_RST_CON_SET_LSB (1U << 0) /* 16b */
  683. #define SPM_SW_RST_CON_SET_PROJECT_CODE_LSB (1U << 16) /* 16b */
  684. /* SPM_SW_RST_CON_CLR (0x10006000+0x048) */
  685. #define SPM_SW_RST_CON_CLR_LSB (1U << 0) /* 16b */
  686. #define SPM_SW_RST_CON_CLR_PROJECT_CODE_LSB (1U << 16) /* 16b */
  687. /* VS1_PSR_MASK_B (0x10006000+0x04C) */
  688. #define VS1_OPP0_PSR_MASK_B_LSB (1U << 0) /* 8b */
  689. #define VS1_OPP1_PSR_MASK_B_LSB (1U << 8) /* 8b */
  690. /* VS2_PSR_MASK_B (0x10006000+0x050) */
  691. #define VS2_OPP0_PSR_MASK_B_LSB (1U << 0) /* 8b */
  692. #define VS2_OPP1_PSR_MASK_B_LSB (1U << 8) /* 8b */
  693. #define VS2_OPP2_PSR_MASK_B_LSB (1U << 16) /* 8b */
  694. /* MD32_CLK_CON (0x10006000+0x084) */
  695. #define REG_MD32_26M_CK_SEL_LSB (1U << 0) /* 1b */
  696. #define REG_MD32_DCM_EN_LSB (1U << 1) /* 1b */
  697. /* SPM_SRAM_RSV_CON (0x10006000+0x088) */
  698. #define SPM_SRAM_SLEEP_B_ECO_EN_LSB (1U << 0) /* 1b */
  699. /* SPM_SWINT (0x10006000+0x08C) */
  700. #define SPM_SWINT_LSB (1U << 0) /* 32b */
  701. /* SPM_SWINT_SET (0x10006000+0x090) */
  702. #define SPM_SWINT_SET_LSB (1U << 0) /* 32b */
  703. /* SPM_SWINT_CLR (0x10006000+0x094) */
  704. #define SPM_SWINT_CLR_LSB (1U << 0) /* 32b */
  705. /* SPM_SCP_MAILBOX (0x10006000+0x098) */
  706. #define SPM_SCP_MAILBOX_LSB (1U << 0) /* 32b */
  707. /* SCP_SPM_MAILBOX (0x10006000+0x09C) */
  708. #define SCP_SPM_MAILBOX_LSB (1U << 0) /* 32b */
  709. /* SPM_TWAM_CON (0x10006000+0x0A0) */
  710. #define REG_TWAM_ENABLE_LSB (1U << 0) /* 1b */
  711. #define REG_TWAM_SPEED_MODE_EN_LSB (1U << 1) /* 1b */
  712. #define REG_TWAM_SW_RST_LSB (1U << 2) /* 1b */
  713. #define REG_TWAM_IRQ_MASK_LSB (1U << 3) /* 1b */
  714. #define REG_TWAM_MON_TYPE_0_LSB (1U << 4) /* 2b */
  715. #define REG_TWAM_MON_TYPE_1_LSB (1U << 6) /* 2b */
  716. #define REG_TWAM_MON_TYPE_2_LSB (1U << 8) /* 2b */
  717. #define REG_TWAM_MON_TYPE_3_LSB (1U << 10) /* 2b */
  718. /* SPM_TWAM_WINDOW_LEN (0x10006000+0x0A4) */
  719. #define REG_TWAM_WINDOW_LEN_LSB (1U << 0) /* 32b */
  720. /* SPM_TWAM_IDLE_SEL (0x10006000+0x0A8) */
  721. #define REG_TWAM_SIG_SEL_0_LSB (1U << 0) /* 7b */
  722. #define REG_TWAM_SIG_SEL_1_LSB (1U << 8) /* 7b */
  723. #define REG_TWAM_SIG_SEL_2_LSB (1U << 16) /* 7b */
  724. #define REG_TWAM_SIG_SEL_3_LSB (1U << 24) /* 7b */
  725. /* SPM_SCP_IRQ (0x10006000+0x0AC) */
  726. #define SC_SPM2SCP_WAKEUP_LSB (1U << 0) /* 1b */
  727. #define SC_SCP2SPM_WAKEUP_LSB (1U << 4) /* 1b */
  728. /* SPM_CPU_WAKEUP_EVENT (0x10006000+0x0B0) */
  729. #define REG_CPU_WAKEUP_LSB (1U << 0) /* 1b */
  730. /* SPM_IRQ_MASK (0x10006000+0x0B4) */
  731. #define REG_SPM_IRQ_MASK_LSB (1U << 0) /* 32b */
  732. /* SPM_SRC_REQ (0x10006000+0x0B8) */
  733. #define REG_SPM_APSRC_REQ_LSB (1U << 0) /* 1b */
  734. #define REG_SPM_F26M_REQ_LSB (1U << 1) /* 1b */
  735. #define REG_SPM_INFRA_REQ_LSB (1U << 3) /* 1b */
  736. #define REG_SPM_VRF18_REQ_LSB (1U << 4) /* 1b */
  737. #define REG_SPM_DDR_EN_REQ_LSB (1U << 7) /* 1b */
  738. #define REG_SPM_DVFS_REQ_LSB (1U << 8) /* 1b */
  739. #define REG_SPM_SW_MAILBOX_REQ_LSB (1U << 9) /* 1b */
  740. #define REG_SPM_SSPM_MAILBOX_REQ_LSB (1U << 10) /* 1b */
  741. #define REG_SPM_ADSP_MAILBOX_REQ_LSB (1U << 11) /* 1b */
  742. #define REG_SPM_SCP_MAILBOX_REQ_LSB (1U << 12) /* 1b */
  743. /* SPM_SRC_MASK (0x10006000+0x0BC) */
  744. #define REG_MD_SRCCLKENA_0_MASK_B_LSB (1U << 0) /* 1b */
  745. #define REG_MD_SRCCLKENA2INFRA_REQ_0_MASK_B_LSB (1U << 1) /* 1b */
  746. #define REG_MD_APSRC2INFRA_REQ_0_MASK_B_LSB (1U << 2) /* 1b */
  747. #define REG_MD_APSRC_REQ_0_MASK_B_LSB (1U << 3) /* 1b */
  748. #define REG_MD_VRF18_REQ_0_MASK_B_LSB (1U << 4) /* 1b */
  749. #define REG_MD_DDR_EN_0_MASK_B_LSB (1U << 5) /* 1b */
  750. #define REG_MD_SRCCLKENA_1_MASK_B_LSB (1U << 6) /* 1b */
  751. #define REG_MD_SRCCLKENA2INFRA_REQ_1_MASK_B_LSB (1U << 7) /* 1b */
  752. #define REG_MD_APSRC2INFRA_REQ_1_MASK_B_LSB (1U << 8) /* 1b */
  753. #define REG_MD_APSRC_REQ_1_MASK_B_LSB (1U << 9) /* 1b */
  754. #define REG_MD_VRF18_REQ_1_MASK_B_LSB (1U << 10) /* 1b */
  755. #define REG_MD_DDR_EN_1_MASK_B_LSB (1U << 11) /* 1b */
  756. #define REG_CONN_SRCCLKENA_MASK_B_LSB (1U << 12) /* 1b */
  757. #define REG_CONN_SRCCLKENB_MASK_B_LSB (1U << 13) /* 1b */
  758. #define REG_CONN_INFRA_REQ_MASK_B_LSB (1U << 14) /* 1b */
  759. #define REG_CONN_APSRC_REQ_MASK_B_LSB (1U << 15) /* 1b */
  760. #define REG_CONN_VRF18_REQ_MASK_B_LSB (1U << 16) /* 1b */
  761. #define REG_CONN_DDR_EN_MASK_B_LSB (1U << 17) /* 1b */
  762. #define REG_CONN_VFE28_MASK_B_LSB (1U << 18) /* 1b */
  763. #define REG_SRCCLKENI0_SRCCLKENA_MASK_B_LSB (1U << 19) /* 1b */
  764. #define REG_SRCCLKENI0_INFRA_REQ_MASK_B_LSB (1U << 20) /* 1b */
  765. #define REG_SRCCLKENI1_SRCCLKENA_MASK_B_LSB (1U << 21) /* 1b */
  766. #define REG_SRCCLKENI1_INFRA_REQ_MASK_B_LSB (1U << 22) /* 1b */
  767. #define REG_SRCCLKENI2_SRCCLKENA_MASK_B_LSB (1U << 23) /* 1b */
  768. #define REG_SRCCLKENI2_INFRA_REQ_MASK_B_LSB (1U << 24) /* 1b */
  769. #define REG_INFRASYS_APSRC_REQ_MASK_B_LSB (1U << 25) /* 1b */
  770. #define REG_INFRASYS_DDR_EN_MASK_B_LSB (1U << 26) /* 1b */
  771. #define REG_MD32_SRCCLKENA_MASK_B_LSB (1U << 27) /* 1b */
  772. #define REG_MD32_INFRA_REQ_MASK_B_LSB (1U << 28) /* 1b */
  773. #define REG_MD32_APSRC_REQ_MASK_B_LSB (1U << 29) /* 1b */
  774. #define REG_MD32_VRF18_REQ_MASK_B_LSB (1U << 30) /* 1b */
  775. #define REG_MD32_DDR_EN_MASK_B_LSB (1U << 31) /* 1b */
  776. /* SPM_SRC2_MASK (0x10006000+0x0C0) */
  777. #define REG_SCP_SRCCLKENA_MASK_B_LSB (1U << 0) /* 1b */
  778. #define REG_SCP_INFRA_REQ_MASK_B_LSB (1U << 1) /* 1b */
  779. #define REG_SCP_APSRC_REQ_MASK_B_LSB (1U << 2) /* 1b */
  780. #define REG_SCP_VRF18_REQ_MASK_B_LSB (1U << 3) /* 1b */
  781. #define REG_SCP_DDR_EN_MASK_B_LSB (1U << 4) /* 1b */
  782. #define REG_AUDIO_DSP_SRCCLKENA_MASK_B_LSB (1U << 5) /* 1b */
  783. #define REG_AUDIO_DSP_INFRA_REQ_MASK_B_LSB (1U << 6) /* 1b */
  784. #define REG_AUDIO_DSP_APSRC_REQ_MASK_B_LSB (1U << 7) /* 1b */
  785. #define REG_AUDIO_DSP_VRF18_REQ_MASK_B_LSB (1U << 8) /* 1b */
  786. #define REG_AUDIO_DSP_DDR_EN_MASK_B_LSB (1U << 9) /* 1b */
  787. #define REG_UFS_SRCCLKENA_MASK_B_LSB (1U << 10) /* 1b */
  788. #define REG_UFS_INFRA_REQ_MASK_B_LSB (1U << 11) /* 1b */
  789. #define REG_UFS_APSRC_REQ_MASK_B_LSB (1U << 12) /* 1b */
  790. #define REG_UFS_VRF18_REQ_MASK_B_LSB (1U << 13) /* 1b */
  791. #define REG_UFS_DDR_EN_MASK_B_LSB (1U << 14) /* 1b */
  792. #define REG_DISP0_APSRC_REQ_MASK_B_LSB (1U << 15) /* 1b */
  793. #define REG_DISP0_DDR_EN_MASK_B_LSB (1U << 16) /* 1b */
  794. #define REG_DISP1_APSRC_REQ_MASK_B_LSB (1U << 17) /* 1b */
  795. #define REG_DISP1_DDR_EN_MASK_B_LSB (1U << 18) /* 1b */
  796. #define REG_GCE_INFRA_REQ_MASK_B_LSB (1U << 19) /* 1b */
  797. #define REG_GCE_APSRC_REQ_MASK_B_LSB (1U << 20) /* 1b */
  798. #define REG_GCE_VRF18_REQ_MASK_B_LSB (1U << 21) /* 1b */
  799. #define REG_GCE_DDR_EN_MASK_B_LSB (1U << 22) /* 1b */
  800. #define REG_APU_SRCCLKENA_MASK_B_LSB (1U << 23) /* 1b */
  801. #define REG_APU_INFRA_REQ_MASK_B_LSB (1U << 24) /* 1b */
  802. #define REG_APU_APSRC_REQ_MASK_B_LSB (1U << 25) /* 1b */
  803. #define REG_APU_VRF18_REQ_MASK_B_LSB (1U << 26) /* 1b */
  804. #define REG_APU_DDR_EN_MASK_B_LSB (1U << 27) /* 1b */
  805. #define REG_CG_CHECK_SRCCLKENA_MASK_B_LSB (1U << 28) /* 1b */
  806. #define REG_CG_CHECK_APSRC_REQ_MASK_B_LSB (1U << 29) /* 1b */
  807. #define REG_CG_CHECK_VRF18_REQ_MASK_B_LSB (1U << 30) /* 1b */
  808. #define REG_CG_CHECK_DDR_EN_MASK_B_LSB (1U << 31) /* 1b */
  809. /* SPM_SRC3_MASK (0x10006000+0x0C4) */
  810. #define REG_DVFSRC_EVENT_TRIGGER_MASK_B_LSB (1U << 0) /* 1b */
  811. #define REG_SW2SPM_INT0_MASK_B_LSB (1U << 1) /* 1b */
  812. #define REG_SW2SPM_INT1_MASK_B_LSB (1U << 2) /* 1b */
  813. #define REG_SW2SPM_INT2_MASK_B_LSB (1U << 3) /* 1b */
  814. #define REG_SW2SPM_INT3_MASK_B_LSB (1U << 4) /* 1b */
  815. #define REG_SC_ADSP2SPM_WAKEUP_MASK_B_LSB (1U << 5) /* 1b */
  816. #define REG_SC_SSPM2SPM_WAKEUP_MASK_B_LSB (1U << 6) /* 4b */
  817. #define REG_SC_SCP2SPM_WAKEUP_MASK_B_LSB (1U << 10) /* 1b */
  818. #define REG_CSYSPWRREQ_MASK_LSB (1U << 11) /* 1b */
  819. #define REG_SPM_SRCCLKENA_RESERVED_MASK_B_LSB (1U << 12) /* 1b */
  820. #define REG_SPM_INFRA_REQ_RESERVED_MASK_B_LSB (1U << 13) /* 1b */
  821. #define REG_SPM_APSRC_REQ_RESERVED_MASK_B_LSB (1U << 14) /* 1b */
  822. #define REG_SPM_VRF18_REQ_RESERVED_MASK_B_LSB (1U << 15) /* 1b */
  823. #define REG_SPM_DDR_EN_RESERVED_MASK_B_LSB (1U << 16) /* 1b */
  824. #define REG_MCUPM_SRCCLKENA_MASK_B_LSB (1U << 17) /* 1b */
  825. #define REG_MCUPM_INFRA_REQ_MASK_B_LSB (1U << 18) /* 1b */
  826. #define REG_MCUPM_APSRC_REQ_MASK_B_LSB (1U << 19) /* 1b */
  827. #define REG_MCUPM_VRF18_REQ_MASK_B_LSB (1U << 20) /* 1b */
  828. #define REG_MCUPM_DDR_EN_MASK_B_LSB (1U << 21) /* 1b */
  829. #define REG_MSDC0_SRCCLKENA_MASK_B_LSB (1U << 22) /* 1b */
  830. #define REG_MSDC0_INFRA_REQ_MASK_B_LSB (1U << 23) /* 1b */
  831. #define REG_MSDC0_APSRC_REQ_MASK_B_LSB (1U << 24) /* 1b */
  832. #define REG_MSDC0_VRF18_REQ_MASK_B_LSB (1U << 25) /* 1b */
  833. #define REG_MSDC0_DDR_EN_MASK_B_LSB (1U << 26) /* 1b */
  834. #define REG_MSDC1_SRCCLKENA_MASK_B_LSB (1U << 27) /* 1b */
  835. #define REG_MSDC1_INFRA_REQ_MASK_B_LSB (1U << 28) /* 1b */
  836. #define REG_MSDC1_APSRC_REQ_MASK_B_LSB (1U << 29) /* 1b */
  837. #define REG_MSDC1_VRF18_REQ_MASK_B_LSB (1U << 30) /* 1b */
  838. #define REG_MSDC1_DDR_EN_MASK_B_LSB (1U << 31) /* 1b */
  839. /* SPM_SRC4_MASK (0x10006000+0x0C8) */
  840. #define CCIF_EVENT_MASK_B_LSB (1U << 0) /* 16b */
  841. #define REG_BAK_PSRI_SRCCLKENA_MASK_B_LSB (1U << 16) /* 1b */
  842. #define REG_BAK_PSRI_INFRA_REQ_MASK_B_LSB (1U << 17) /* 1b */
  843. #define REG_BAK_PSRI_APSRC_REQ_MASK_B_LSB (1U << 18) /* 1b */
  844. #define REG_BAK_PSRI_VRF18_REQ_MASK_B_LSB (1U << 19) /* 1b */
  845. #define REG_BAK_PSRI_DDR_EN_MASK_B_LSB (1U << 20) /* 1b */
  846. #define REG_DRAMC0_MD32_INFRA_REQ_MASK_B_LSB (1U << 21) /* 1b */
  847. #define REG_DRAMC0_MD32_VRF18_REQ_MASK_B_LSB (1U << 22) /* 1b */
  848. #define REG_DRAMC1_MD32_INFRA_REQ_MASK_B_LSB (1U << 23) /* 1b */
  849. #define REG_DRAMC1_MD32_VRF18_REQ_MASK_B_LSB (1U << 24) /* 1b */
  850. #define REG_CONN_SRCCLKENB2PWRAP_MASK_B_LSB (1U << 25) /* 1b */
  851. #define REG_DRAMC0_MD32_WAKEUP_MASK_LSB (1U << 26) /* 1b */
  852. #define REG_DRAMC1_MD32_WAKEUP_MASK_LSB (1U << 27) /* 1b */
  853. /* SPM_SRC5_MASK (0x10006000+0x0CC) */
  854. #define REG_MCUSYS_MERGE_APSRC_REQ_MASK_B_LSB (1U << 0) /* 9b */
  855. #define REG_MCUSYS_MERGE_DDR_EN_MASK_B_LSB (1U << 9) /* 9b */
  856. #define REG_MSDC2_SRCCLKENA_MASK_B_LSB (1U << 18) /* 1b */
  857. #define REG_MSDC2_INFRA_REQ_MASK_B_LSB (1U << 19) /* 1b */
  858. #define REG_MSDC2_APSRC_REQ_MASK_B_LSB (1U << 20) /* 1b */
  859. #define REG_MSDC2_VRF18_REQ_MASK_B_LSB (1U << 21) /* 1b */
  860. #define REG_MSDC2_DDR_EN_MASK_B_LSB (1U << 22) /* 1b */
  861. #define REG_PCIE_SRCCLKENA_MASK_B_LSB (1U << 23) /* 1b */
  862. #define REG_PCIE_INFRA_REQ_MASK_B_LSB (1U << 24) /* 1b */
  863. #define REG_PCIE_APSRC_REQ_MASK_B_LSB (1U << 25) /* 1b */
  864. #define REG_PCIE_VRF18_REQ_MASK_B_LSB (1U << 26) /* 1b */
  865. #define REG_PCIE_DDR_EN_MASK_B_LSB (1U << 27) /* 1b */
  866. /* SPM_WAKEUP_EVENT_MASK (0x10006000+0x0D0) */
  867. #define REG_WAKEUP_EVENT_MASK_LSB (1U << 0) /* 32b */
  868. /* SPM_WAKEUP_EVENT_EXT_MASK (0x10006000+0x0D4) */
  869. #define REG_EXT_WAKEUP_EVENT_MASK_LSB (1U << 0) /* 32b */
  870. /* SPM_TWAM_EVENT_CLEAR (0x10006000+0x0D8) */
  871. #define SPM_TWAM_EVENT_CLEAR_LSB (1U << 0) /* 1b */
  872. /* SCP_CLK_CON (0x10006000+0x0DC) */
  873. #define REG_SCP_26M_CK_SEL_LSB (1U << 0) /* 1b */
  874. #define REG_SCP_DCM_EN_LSB (1U << 1) /* 1b */
  875. #define SCP_SECURE_V_REQ_MASK_LSB (1U << 2) /* 1b */
  876. #define SCP_SLP_REQ_LSB (1U << 3) /* 1b */
  877. #define SCP_SLP_ACK_LSB (1U << 4) /* 1b */
  878. /* PCM_DEBUG_CON (0x10006000+0x0E0) */
  879. #define PCM_DEBUG_OUT_ENABLE_LSB (1U << 0) /* 1b */
  880. /* AHB_BUS_CON (0x10006000+0x0E4) */
  881. #define AHB_HADDR_EXT_LSB (1U << 0) /* 2b */
  882. #define REG_AHB_LOCK_LSB (1U << 8) /* 1b */
  883. /* DDR_EN_DBC_CON0 (0x10006000+0x0E8) */
  884. #define REG_ALL_DDR_EN_DBC_LEN_LSB (1U << 0) /* 10b */
  885. #define REG_MD_DDR_EN_0_DBC_LEN_LSB (1U << 10) /* 10b */
  886. #define REG_HW_S1_DBC_LEN_LSB (1U << 20) /* 10b */
  887. /* DDR_EN_DBC_CON1 (0x10006000+0x0EC) */
  888. #define REG_ALL_DDR_EN_DBC_EN_LSB (1U << 0) /* 1b */
  889. #define REG_MD_DDR_EN_0_DBC_EN_LSB (1U << 1) /* 1b */
  890. #define REG_HW_S1_DBC_EN_LSB (1U << 2) /* 1b */
  891. /* SPM_RESOURCE_ACK_CON0 (0x10006000+0x0F0) */
  892. #define REG_MD_SRCCLKENA_ACK_0_MASK_LSB (1U << 0) /* 1b */
  893. #define REG_MD_INFRA_ACK_0_MASK_LSB (1U << 1) /* 1b */
  894. #define REG_MD_APSRC_ACK_0_MASK_LSB (1U << 2) /* 1b */
  895. #define REG_MD_VRF18_ACK_0_MASK_LSB (1U << 3) /* 1b */
  896. #define REG_MD_DDR_EN_ACK_0_MASK_LSB (1U << 4) /* 1b */
  897. #define REG_MD_SRCCLKENA_ACK_1_MASK_LSB (1U << 5) /* 1b */
  898. #define REG_MD_INFRA_ACK_1_MASK_LSB (1U << 6) /* 1b */
  899. #define REG_MD_APSRC_ACK_1_MASK_LSB (1U << 7) /* 1b */
  900. #define REG_MD_VRF18_ACK_1_MASK_LSB (1U << 8) /* 1b */
  901. #define REG_MD_DDR_EN_ACK_1_MASK_LSB (1U << 9) /* 1b */
  902. #define REG_CONN_SRCCLKENA_ACK_MASK_LSB (1U << 10) /* 1b */
  903. #define REG_CONN_INFRA_ACK_MASK_LSB (1U << 11) /* 1b */
  904. #define REG_CONN_APSRC_ACK_MASK_LSB (1U << 12) /* 1b */
  905. #define REG_CONN_VRF18_ACK_MASK_LSB (1U << 13) /* 1b */
  906. #define REG_CONN_DDR_EN_ACK_MASK_LSB (1U << 14) /* 1b */
  907. #define REG_MD32_SRCCLKENA_ACK_MASK_LSB (1U << 15) /* 1b */
  908. #define REG_MD32_INFRA_ACK_MASK_LSB (1U << 16) /* 1b */
  909. #define REG_MD32_APSRC_ACK_MASK_LSB (1U << 17) /* 1b */
  910. #define REG_MD32_VRF18_ACK_MASK_LSB (1U << 18) /* 1b */
  911. #define REG_MD32_DDR_EN_ACK_MASK_LSB (1U << 19) /* 1b */
  912. #define REG_SCP_SRCCLKENA_ACK_MASK_LSB (1U << 20) /* 1b */
  913. #define REG_SCP_INFRA_ACK_MASK_LSB (1U << 21) /* 1b */
  914. #define REG_SCP_APSRC_ACK_MASK_LSB (1U << 22) /* 1b */
  915. #define REG_SCP_VRF18_ACK_MASK_LSB (1U << 23) /* 1b */
  916. #define REG_SCP_DDR_EN_ACK_MASK_LSB (1U << 24) /* 1b */
  917. #define REG_AUDIO_DSP_SRCCLKENA_ACK_MASK_LSB (1U << 25) /* 1b */
  918. #define REG_AUDIO_DSP_INFRA_ACK_MASK_LSB (1U << 26) /* 1b */
  919. #define REG_AUDIO_DSP_APSRC_ACK_MASK_LSB (1U << 27) /* 1b */
  920. #define REG_AUDIO_DSP_VRF18_ACK_MASK_LSB (1U << 28) /* 1b */
  921. #define REG_AUDIO_DSP_DDR_EN_ACK_MASK_LSB (1U << 29) /* 1b */
  922. #define REG_DISP0_DDR_EN_ACK_MASK_LSB (1U << 30) /* 1b */
  923. #define REG_DISP1_APSRC_ACK_MASK_LSB (1U << 31) /* 1b */
  924. /* SPM_RESOURCE_ACK_CON1 (0x10006000+0x0F4) */
  925. #define REG_UFS_SRCCLKENA_ACK_MASK_LSB (1U << 0) /* 1b */
  926. #define REG_UFS_INFRA_ACK_MASK_LSB (1U << 1) /* 1b */
  927. #define REG_UFS_APSRC_ACK_MASK_LSB (1U << 2) /* 1b */
  928. #define REG_UFS_VRF18_ACK_MASK_LSB (1U << 3) /* 1b */
  929. #define REG_UFS_DDR_EN_ACK_MASK_LSB (1U << 4) /* 1b */
  930. #define REG_APU_SRCCLKENA_ACK_MASK_LSB (1U << 5) /* 1b */
  931. #define REG_APU_INFRA_ACK_MASK_LSB (1U << 6) /* 1b */
  932. #define REG_APU_APSRC_ACK_MASK_LSB (1U << 7) /* 1b */
  933. #define REG_APU_VRF18_ACK_MASK_LSB (1U << 8) /* 1b */
  934. #define REG_APU_DDR_EN_ACK_MASK_LSB (1U << 9) /* 1b */
  935. #define REG_MCUPM_SRCCLKENA_ACK_MASK_LSB (1U << 10) /* 1b */
  936. #define REG_MCUPM_INFRA_ACK_MASK_LSB (1U << 11) /* 1b */
  937. #define REG_MCUPM_APSRC_ACK_MASK_LSB (1U << 12) /* 1b */
  938. #define REG_MCUPM_VRF18_ACK_MASK_LSB (1U << 13) /* 1b */
  939. #define REG_MCUPM_DDR_EN_ACK_MASK_LSB (1U << 14) /* 1b */
  940. #define REG_MSDC0_SRCCLKENA_ACK_MASK_LSB (1U << 15) /* 1b */
  941. #define REG_MSDC0_INFRA_ACK_MASK_LSB (1U << 16) /* 1b */
  942. #define REG_MSDC0_APSRC_ACK_MASK_LSB (1U << 17) /* 1b */
  943. #define REG_MSDC0_VRF18_ACK_MASK_LSB (1U << 18) /* 1b */
  944. #define REG_MSDC0_DDR_EN_ACK_MASK_LSB (1U << 19) /* 1b */
  945. #define REG_MSDC1_SRCCLKENA_ACK_MASK_LSB (1U << 20) /* 1b */
  946. #define REG_MSDC1_INFRA_ACK_MASK_LSB (1U << 21) /* 1b */
  947. #define REG_MSDC1_APSRC_ACK_MASK_LSB (1U << 22) /* 1b */
  948. #define REG_MSDC1_VRF18_ACK_MASK_LSB (1U << 23) /* 1b */
  949. #define REG_MSDC1_DDR_EN_ACK_MASK_LSB (1U << 24) /* 1b */
  950. #define REG_DISP0_APSRC_ACK_MASK_LSB (1U << 25) /* 1b */
  951. #define REG_DISP1_DDR_EN_ACK_MASK_LSB (1U << 26) /* 1b */
  952. #define REG_GCE_INFRA_ACK_MASK_LSB (1U << 27) /* 1b */
  953. #define REG_GCE_APSRC_ACK_MASK_LSB (1U << 28) /* 1b */
  954. #define REG_GCE_VRF18_ACK_MASK_LSB (1U << 29) /* 1b */
  955. #define REG_GCE_DDR_EN_ACK_MASK_LSB (1U << 30) /* 1b */
  956. /* SPM_RESOURCE_ACK_CON2 (0x10006000+0x0F8) */
  957. #define SPM_F26M_ACK_WAIT_CYCLE_LSB (1U << 0) /* 8b */
  958. #define SPM_INFRA_ACK_WAIT_CYCLE_LSB (1U << 8) /* 8b */
  959. #define SPM_APSRC_ACK_WAIT_CYCLE_LSB (1U << 16) /* 8b */
  960. #define SPM_VRF18_ACK_WAIT_CYCLE_LSB (1U << 24) /* 8b */
  961. /* SPM_RESOURCE_ACK_CON3 (0x10006000+0x0FC) */
  962. #define SPM_DDR_EN_ACK_WAIT_CYCLE_LSB (1U << 0) /* 8b */
  963. #define REG_BAK_PSRI_SRCCLKENA_ACK_MASK_LSB (1U << 8) /* 1b */
  964. #define REG_BAK_PSRI_INFRA_ACK_MASK_LSB (1U << 9) /* 1b */
  965. #define REG_BAK_PSRI_APSRC_ACK_MASK_LSB (1U << 10) /* 1b */
  966. #define REG_BAK_PSRI_VRF18_ACK_MASK_LSB (1U << 11) /* 1b */
  967. #define REG_BAK_PSRI_DDR_EN_ACK_MASK_LSB (1U << 12) /* 1b */
  968. #define REG_MSDC2_SRCCLKENA_ACK_MASK_LSB (1U << 13) /* 1b */
  969. #define REG_MSDC2_INFRA_ACK_MASK_LSB (1U << 14) /* 1b */
  970. #define REG_MSDC2_APSRC_ACK_MASK_LSB (1U << 15) /* 1b */
  971. #define REG_MSDC2_VRF18_ACK_MASK_LSB (1U << 16) /* 1b */
  972. #define REG_MSDC2_DDR_EN_ACK_MASK_LSB (1U << 17) /* 1b */
  973. #define REG_PCIE_SRCCLKENA_ACK_MASK_LSB (1U << 18) /* 1b */
  974. #define REG_PCIE_INFRA_ACK_MASK_LSB (1U << 19) /* 1b */
  975. #define REG_PCIE_APSRC_ACK_MASK_LSB (1U << 20) /* 1b */
  976. #define REG_PCIE_VRF18_ACK_MASK_LSB (1U << 21) /* 1b */
  977. #define REG_PCIE_DDR_EN_ACK_MASK_LSB (1U << 22) /* 1b */
  978. #define REG_DPMAIF_SRCCLKENA_ACK_MASK_LSB (1U << 23) /* 1b */
  979. #define REG_DPMAIF_INFRA_ACK_MASK_LSB (1U << 24) /* 1b */
  980. #define REG_DPMAIF_APSRC_ACK_MASK_LSB (1U << 25) /* 1b */
  981. #define REG_DPMAIF_VRF18_ACK_MASK_LSB (1U << 26) /* 1b */
  982. #define REG_DPMAIF_DDR_EN_ACK_MASK_LSB (1U << 27) /* 1b */
  983. /* PCM_REG0_DATA (0x10006000+0x100) */
  984. #define PCM_REG0_RF_LSB (1U << 0) /* 32b */
  985. /* PCM_REG2_DATA (0x10006000+0x104) */
  986. #define PCM_REG2_RF_LSB (1U << 0) /* 32b */
  987. /* PCM_REG6_DATA (0x10006000+0x108) */
  988. #define PCM_REG6_RF_LSB (1U << 0) /* 32b */
  989. /* PCM_REG7_DATA (0x10006000+0x10C) */
  990. #define PCM_REG7_RF_LSB (1U << 0) /* 32b */
  991. /* PCM_REG13_DATA (0x10006000+0x110) */
  992. #define PCM_REG13_RF_LSB (1U << 0) /* 32b */
  993. /* SRC_REQ_STA_0 (0x10006000+0x114) */
  994. #define MD_SRCCLKENA_0_LSB (1U << 0) /* 1b */
  995. #define MD_SRCCLKENA2INFRA_REQ_0_LSB (1U << 1) /* 1b */
  996. #define MD_APSRC2INFRA_REQ_0_LSB (1U << 2) /* 1b */
  997. #define MD_APSRC_REQ_0_LSB (1U << 3) /* 1b */
  998. #define MD_VRF18_REQ_0_LSB (1U << 4) /* 1b */
  999. #define MD_DDR_EN_0_LSB (1U << 5) /* 1b */
  1000. #define MD_SRCCLKENA_1_LSB (1U << 6) /* 1b */
  1001. #define MD_SRCCLKENA2INFRA_REQ_1_LSB (1U << 7) /* 1b */
  1002. #define MD_APSRC2INFRA_REQ_1_LSB (1U << 8) /* 1b */
  1003. #define MD_APSRC_REQ_1_LSB (1U << 9) /* 1b */
  1004. #define MD_VRF18_REQ_1_LSB (1U << 10) /* 1b */
  1005. #define MD_DDR_EN_1_LSB (1U << 11) /* 1b */
  1006. #define CONN_SRCCLKENA_LSB (1U << 12) /* 1b */
  1007. #define CONN_SRCCLKENB_LSB (1U << 13) /* 1b */
  1008. #define CONN_INFRA_REQ_LSB (1U << 14) /* 1b */
  1009. #define CONN_APSRC_REQ_LSB (1U << 15) /* 1b */
  1010. #define CONN_VRF18_REQ_LSB (1U << 16) /* 1b */
  1011. #define CONN_DDR_EN_LSB (1U << 17) /* 1b */
  1012. #define SRCCLKENI_LSB (1U << 18) /* 3b */
  1013. #define MD32_SRCCLKENA_LSB (1U << 21) /* 1b */
  1014. #define MD32_INFRA_REQ_LSB (1U << 22) /* 1b */
  1015. #define MD32_APSRC_REQ_LSB (1U << 23) /* 1b */
  1016. #define MD32_VRF18_REQ_LSB (1U << 24) /* 1b */
  1017. #define MD32_DDR_EN_LSB (1U << 25) /* 1b */
  1018. #define DISP0_APSRC_REQ_LSB (1U << 26) /* 1b */
  1019. #define DISP0_DDR_EN_LSB (1U << 27) /* 1b */
  1020. #define DISP1_APSRC_REQ_LSB (1U << 28) /* 1b */
  1021. #define DISP1_DDR_EN_LSB (1U << 29) /* 1b */
  1022. #define DVFSRC_EVENT_TRIGGER_LSB (1U << 30) /* 1b */
  1023. /* SRC_REQ_STA_1 (0x10006000+0x118) */
  1024. #define SCP_SRCCLKENA_LSB (1U << 0) /* 1b */
  1025. #define SCP_INFRA_REQ_LSB (1U << 1) /* 1b */
  1026. #define SCP_APSRC_REQ_LSB (1U << 2) /* 1b */
  1027. #define SCP_VRF18_REQ_LSB (1U << 3) /* 1b */
  1028. #define SCP_DDR_EN_LSB (1U << 4) /* 1b */
  1029. #define AUDIO_DSP_SRCCLKENA_LSB (1U << 5) /* 1b */
  1030. #define AUDIO_DSP_INFRA_REQ_LSB (1U << 6) /* 1b */
  1031. #define AUDIO_DSP_APSRC_REQ_LSB (1U << 7) /* 1b */
  1032. #define AUDIO_DSP_VRF18_REQ_LSB (1U << 8) /* 1b */
  1033. #define AUDIO_DSP_DDR_EN_LSB (1U << 9) /* 1b */
  1034. #define UFS_SRCCLKENA_LSB (1U << 10) /* 1b */
  1035. #define UFS_INFRA_REQ_LSB (1U << 11) /* 1b */
  1036. #define UFS_APSRC_REQ_LSB (1U << 12) /* 1b */
  1037. #define UFS_VRF18_REQ_LSB (1U << 13) /* 1b */
  1038. #define UFS_DDR_EN_LSB (1U << 14) /* 1b */
  1039. #define GCE_INFRA_REQ_LSB (1U << 15) /* 1b */
  1040. #define GCE_APSRC_REQ_LSB (1U << 16) /* 1b */
  1041. #define GCE_VRF18_REQ_LSB (1U << 17) /* 1b */
  1042. #define GCE_DDR_EN_LSB (1U << 18) /* 1b */
  1043. #define INFRASYS_APSRC_REQ_LSB (1U << 19) /* 1b */
  1044. #define INFRASYS_DDR_EN_LSB (1U << 20) /* 1b */
  1045. #define MSDC0_SRCCLKENA_LSB (1U << 21) /* 1b */
  1046. #define MSDC0_INFRA_REQ_LSB (1U << 22) /* 1b */
  1047. #define MSDC0_APSRC_REQ_LSB (1U << 23) /* 1b */
  1048. #define MSDC0_VRF18_REQ_LSB (1U << 24) /* 1b */
  1049. #define MSDC0_DDR_EN_LSB (1U << 25) /* 1b */
  1050. #define MSDC1_SRCCLKENA_LSB (1U << 26) /* 1b */
  1051. #define MSDC1_INFRA_REQ_LSB (1U << 27) /* 1b */
  1052. #define MSDC1_APSRC_REQ_LSB (1U << 28) /* 1b */
  1053. #define MSDC1_VRF18_REQ_LSB (1U << 29) /* 1b */
  1054. #define MSDC1_DDR_EN_LSB (1U << 30) /* 1b */
  1055. /* SRC_REQ_STA_2 (0x10006000+0x11C) */
  1056. #define MCUSYS_MERGE_DDR_EN_LSB (1U << 0) /* 9b */
  1057. #define EMI_SELF_REFRESH_CH_LSB (1U << 9) /* 2b */
  1058. #define SW2SPM_INT_LSB (1U << 11) /* 4b */
  1059. #define SC_ADSP2SPM_WAKEUP_LSB (1U << 15) /* 1b */
  1060. #define SC_SSPM2SPM_WAKEUP_LSB (1U << 16) /* 4b */
  1061. #define SRC_REQ_STA_2_SC_SCP2SPM_WAKEUP_LSB (1U << 20) /* 1b */
  1062. #define SPM_SRCCLKENA_RESERVED_LSB (1U << 21) /* 1b */
  1063. #define SPM_INFRA_REQ_RESERVED_LSB (1U << 22) /* 1b */
  1064. #define SPM_APSRC_REQ_RESERVED_LSB (1U << 23) /* 1b */
  1065. #define SPM_VRF18_REQ_RESERVED_LSB (1U << 24) /* 1b */
  1066. #define SPM_DDR_EN_RESERVED_LSB (1U << 25) /* 1b */
  1067. #define MCUPM_SRCCLKENA_LSB (1U << 26) /* 1b */
  1068. #define MCUPM_INFRA_REQ_LSB (1U << 27) /* 1b */
  1069. #define MCUPM_APSRC_REQ_LSB (1U << 28) /* 1b */
  1070. #define MCUPM_VRF18_REQ_LSB (1U << 29) /* 1b */
  1071. #define MCUPM_DDR_EN_LSB (1U << 30) /* 1b */
  1072. /* PCM_TIMER_OUT (0x10006000+0x120) */
  1073. #define PCM_TIMER_LSB (1U << 0) /* 32b */
  1074. /* PCM_WDT_OUT (0x10006000+0x124) */
  1075. #define PCM_WDT_TIMER_VAL_OUT_LSB (1U << 0) /* 32b */
  1076. /* SPM_IRQ_STA (0x10006000+0x128) */
  1077. #define TWAM_IRQ_LSB (1U << 2) /* 1b */
  1078. #define PCM_IRQ_LSB (1U << 3) /* 1b */
  1079. /* SRC_REQ_STA_4 (0x10006000+0x12C) */
  1080. #define APU_SRCCLKENA_LSB (1U << 0) /* 1b */
  1081. #define APU_INFRA_REQ_LSB (1U << 1) /* 1b */
  1082. #define APU_APSRC_REQ_LSB (1U << 2) /* 1b */
  1083. #define APU_VRF18_REQ_LSB (1U << 3) /* 1b */
  1084. #define APU_DDR_EN_LSB (1U << 4) /* 1b */
  1085. #define BAK_PSRI_SRCCLKENA_LSB (1U << 5) /* 1b */
  1086. #define BAK_PSRI_INFRA_REQ_LSB (1U << 6) /* 1b */
  1087. #define BAK_PSRI_APSRC_REQ_LSB (1U << 7) /* 1b */
  1088. #define BAK_PSRI_VRF18_REQ_LSB (1U << 8) /* 1b */
  1089. #define BAK_PSRI_DDR_EN_LSB (1U << 9) /* 1b */
  1090. #define MSDC2_SRCCLKENA_LSB (1U << 10) /* 1b */
  1091. #define MSDC2_INFRA_REQ_LSB (1U << 11) /* 1b */
  1092. #define MSDC2_APSRC_REQ_LSB (1U << 12) /* 1b */
  1093. #define MSDC2_VRF18_REQ_LSB (1U << 13) /* 1b */
  1094. #define MSDC2_DDR_EN_LSB (1U << 14) /* 1b */
  1095. #define PCIE_SRCCLKENA_LSB (1U << 15) /* 1b */
  1096. #define PCIE_INFRA_REQ_LSB (1U << 16) /* 1b */
  1097. #define PCIE_APSRC_REQ_LSB (1U << 17) /* 1b */
  1098. #define PCIE_VRF18_REQ_LSB (1U << 18) /* 1b */
  1099. #define PCIE_DDR_EN_LSB (1U << 19) /* 1b */
  1100. #define DPMAIF_SRCCLKENA_LSB (1U << 20) /* 1b */
  1101. #define DPMAIF_INFRA_REQ_LSB (1U << 21) /* 1b */
  1102. #define DPMAIF_APSRC_REQ_LSB (1U << 22) /* 1b */
  1103. #define DPMAIF_VRF18_REQ_LSB (1U << 23) /* 1b */
  1104. #define DPMAIF_DDR_EN_LSB (1U << 24) /* 1b */
  1105. /* MD32PCM_WAKEUP_STA (0x10006000+0x130) */
  1106. #define MD32PCM_WAKEUP_STA_LSB (1U << 0) /* 32b */
  1107. /* MD32PCM_EVENT_STA (0x10006000+0x134) */
  1108. #define MD32PCM_EVENT_STA_LSB (1U << 0) /* 32b */
  1109. /* SPM_WAKEUP_STA (0x10006000+0x138) */
  1110. #define F32K_WAKEUP_EVENT_L_LSB (1U << 0) /* 16b */
  1111. #define ASYN_WAKEUP_EVENT_L_LSB (1U << 16) /* 16b */
  1112. /* SPM_WAKEUP_EXT_STA (0x10006000+0x13C) */
  1113. #define EXT_WAKEUP_EVENT_LSB (1U << 0) /* 32b */
  1114. /* SPM_WAKEUP_MISC (0x10006000+0x140) */
  1115. #define GIC_WAKEUP_LSB (1U << 0) /* 10b */
  1116. #define DVFSRC_IRQ_LSB (1U << 16) /* 1b */
  1117. #define SPM_WAKEUP_MISC_REG_CPU_WAKEUP_LSB (1U << 17) /* 1b */
  1118. #define PCM_TIMER_EVENT_LSB (1U << 18) /* 1b */
  1119. #define PMIC_EINT_OUT_B_LSB (1U << 19) /* 2b */
  1120. #define TWAM_IRQ_B_LSB (1U << 21) /* 1b */
  1121. #define PMSR_IRQ_B_SET0_LSB (1U << 22) /* 1b */
  1122. #define PMSR_IRQ_B_SET1_LSB (1U << 23) /* 1b */
  1123. #define PMSR_IRQ_B_SET2_LSB (1U << 24) /* 1b */
  1124. #define SPM_ACK_CHK_WAKEUP_0_LSB (1U << 25) /* 1b */
  1125. #define SPM_ACK_CHK_WAKEUP_1_LSB (1U << 26) /* 1b */
  1126. #define SPM_ACK_CHK_WAKEUP_2_LSB (1U << 27) /* 1b */
  1127. #define SPM_ACK_CHK_WAKEUP_3_LSB (1U << 28) /* 1b */
  1128. #define SPM_ACK_CHK_WAKEUP_ALL_LSB (1U << 29) /* 1b */
  1129. #define PMIC_IRQ_ACK_LSB (1U << 30) /* 1b */
  1130. #define PMIC_SCP_IRQ_LSB (1U << 31) /* 1b */
  1131. /* MM_DVFS_HALT (0x10006000+0x144) */
  1132. #define MM_DVFS_HALT_LSB (1U << 0) /* 5b */
  1133. /* BUS_PROTECT_RDY (0x10006000+0x150) */
  1134. #define PROTECT_READY_LSB (1U << 0) /* 32b */
  1135. /* BUS_PROTECT1_RDY (0x10006000+0x154) */
  1136. #define PROTECT1_READY_LSB (1U << 0) /* 32b */
  1137. /* BUS_PROTECT2_RDY (0x10006000+0x158) */
  1138. #define PROTECT2_READY_LSB (1U << 0) /* 32b */
  1139. /* BUS_PROTECT3_RDY (0x10006000+0x15C) */
  1140. #define PROTECT3_READY_LSB (1U << 0) /* 32b */
  1141. /* SUBSYS_IDLE_STA (0x10006000+0x160) */
  1142. #define SUBSYS_IDLE_SIGNALS_LSB (1U << 0) /* 32b */
  1143. /* PCM_STA (0x10006000+0x164) */
  1144. #define PCM_CK_SEL_O_LSB (1U << 0) /* 4b */
  1145. #define EXT_SRC_STA_LSB (1U << 4) /* 3b */
  1146. /* SRC_REQ_STA_3 (0x10006000+0x168) */
  1147. #define CCIF_EVENT_RAW_STATUS_LSB (1U << 0) /* 16b */
  1148. #define F26M_STATE_LSB (1U << 16) /* 1b */
  1149. #define INFRA_STATE_LSB (1U << 17) /* 1b */
  1150. #define APSRC_STATE_LSB (1U << 18) /* 1b */
  1151. #define VRF18_STATE_LSB (1U << 19) /* 1b */
  1152. #define DDR_EN_STATE_LSB (1U << 20) /* 1b */
  1153. #define DVFS_STATE_LSB (1U << 21) /* 1b */
  1154. #define SW_MAILBOX_STATE_LSB (1U << 22) /* 1b */
  1155. #define SSPM_MAILBOX_STATE_LSB (1U << 23) /* 1b */
  1156. #define ADSP_MAILBOX_STATE_LSB (1U << 24) /* 1b */
  1157. #define SCP_MAILBOX_STATE_LSB (1U << 25) /* 1b */
  1158. /* PWR_STATUS (0x10006000+0x16C) */
  1159. #define PWR_STATUS_LSB (1U << 0) /* 32b */
  1160. /* PWR_STATUS_2ND (0x10006000+0x170) */
  1161. #define PWR_STATUS_2ND_LSB (1U << 0) /* 32b */
  1162. /* CPU_PWR_STATUS (0x10006000+0x174) */
  1163. #define MP0_SPMC_PWR_ON_ACK_CPU0_LSB (1U << 0) /* 1b */
  1164. #define MP0_SPMC_PWR_ON_ACK_CPU1_LSB (1U << 1) /* 1b */
  1165. #define MP0_SPMC_PWR_ON_ACK_CPU2_LSB (1U << 2) /* 1b */
  1166. #define MP0_SPMC_PWR_ON_ACK_CPU3_LSB (1U << 3) /* 1b */
  1167. #define MP0_SPMC_PWR_ON_ACK_CPU4_LSB (1U << 4) /* 1b */
  1168. #define MP0_SPMC_PWR_ON_ACK_CPU5_LSB (1U << 5) /* 1b */
  1169. #define MP0_SPMC_PWR_ON_ACK_CPU6_LSB (1U << 6) /* 1b */
  1170. #define MP0_SPMC_PWR_ON_ACK_CPU7_LSB (1U << 7) /* 1b */
  1171. #define MP0_SPMC_PWR_ON_ACK_CPUTOP_LSB (1U << 8) /* 1b */
  1172. #define MCUSYS_SPMC_PWR_ON_ACK_LSB (1U << 9) /* 1b */
  1173. /* OTHER_PWR_STATUS (0x10006000+0x178) */
  1174. #define OTHER_PWR_STATUS_LSB (1U << 0) /* 32b */
  1175. /* SPM_VTCXO_EVENT_COUNT_STA (0x10006000+0x17C) */
  1176. #define SPM_VTCXO_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1177. #define SPM_VTCXO_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1178. /* SPM_INFRA_EVENT_COUNT_STA (0x10006000+0x180) */
  1179. #define SPM_INFRA_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1180. #define SPM_INFRA_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1181. /* SPM_VRF18_EVENT_COUNT_STA (0x10006000+0x184) */
  1182. #define SPM_VRF18_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1183. #define SPM_VRF18_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1184. /* SPM_APSRC_EVENT_COUNT_STA (0x10006000+0x188) */
  1185. #define SPM_APSRC_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1186. #define SPM_APSRC_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1187. /* SPM_DDREN_EVENT_COUNT_STA (0x10006000+0x18C) */
  1188. #define SPM_DDREN_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1189. #define SPM_DDREN_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1190. /* MD32PCM_STA (0x10006000+0x190) */
  1191. #define MD32PCM_HALT_LSB (1U << 0) /* 1b */
  1192. #define MD32PCM_GATED_LSB (1U << 1) /* 1b */
  1193. /* MD32PCM_PC (0x10006000+0x194) */
  1194. #define MON_PC_LSB (1U << 0) /* 32b */
  1195. /* DVFSRC_EVENT_STA (0x10006000+0x1A4) */
  1196. #define DVFSRC_EVENT_LSB (1U << 0) /* 32b */
  1197. /* BUS_PROTECT4_RDY (0x10006000+0x1A8) */
  1198. #define PROTECT4_READY_LSB (1U << 0) /* 32b */
  1199. /* BUS_PROTECT5_RDY (0x10006000+0x1AC) */
  1200. #define PROTECT5_READY_LSB (1U << 0) /* 32b */
  1201. /* BUS_PROTECT6_RDY (0x10006000+0x1B0) */
  1202. #define PROTECT6_READY_LSB (1U << 0) /* 32b */
  1203. /* BUS_PROTECT7_RDY (0x10006000+0x1B4) */
  1204. #define PROTECT7_READY_LSB (1U << 0) /* 32b */
  1205. /* BUS_PROTECT8_RDY (0x10006000+0x1B8) */
  1206. #define PROTECT8_READY_LSB (1U << 0) /* 32b */
  1207. /* SPM_TWAM_LAST_STA0 (0x10006000+0x1D0) */
  1208. #define LAST_IDLE_CNT_0_LSB (1U << 0) /* 32b */
  1209. /* SPM_TWAM_LAST_STA1 (0x10006000+0x1D4) */
  1210. #define LAST_IDLE_CNT_1_LSB (1U << 0) /* 32b */
  1211. /* SPM_TWAM_LAST_STA2 (0x10006000+0x1D8) */
  1212. #define LAST_IDLE_CNT_2_LSB (1U << 0) /* 32b */
  1213. /* SPM_TWAM_LAST_STA3 (0x10006000+0x1DC) */
  1214. #define LAST_IDLE_CNT_3_LSB (1U << 0) /* 32b */
  1215. /* SPM_TWAM_CURR_STA0 (0x10006000+0x1E0) */
  1216. #define CURRENT_IDLE_CNT_0_LSB (1U << 0) /* 32b */
  1217. /* SPM_TWAM_CURR_STA1 (0x10006000+0x1E4) */
  1218. #define CURRENT_IDLE_CNT_1_LSB (1U << 0) /* 32b */
  1219. /* SPM_TWAM_CURR_STA2 (0x10006000+0x1E8) */
  1220. #define CURRENT_IDLE_CNT_2_LSB (1U << 0) /* 32b */
  1221. /* SPM_TWAM_CURR_STA3 (0x10006000+0x1EC) */
  1222. #define CURRENT_IDLE_CNT_3_LSB (1U << 0) /* 32b */
  1223. /* SPM_TWAM_TIMER_OUT (0x10006000+0x1F0) */
  1224. #define TWAM_TIMER_LSB (1U << 0) /* 32b */
  1225. /* SPM_CG_CHECK_STA (0x10006000+0x1F4) */
  1226. #define SPM_CG_CHECK_SLEEP_REQ_0_LSB (1U << 0) /* 1b */
  1227. #define SPM_CG_CHECK_SLEEP_REQ_1_LSB (1U << 1) /* 1b */
  1228. #define SPM_CG_CHECK_SLEEP_REQ_2_LSB (1U << 2) /* 1b */
  1229. /* SPM_DVFS_STA (0x10006000+0x1F8) */
  1230. #define TARGET_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1231. /* SPM_DVFS_OPP_STA (0x10006000+0x1FC) */
  1232. #define TARGET_DVFS_OPP_LSB (1U << 0) /* 5b */
  1233. #define CURRENT_DVFS_OPP_LSB (1U << 5) /* 5b */
  1234. #define RELAY_DVFS_OPP_LSB (1U << 10) /* 5b */
  1235. /* SPM_MCUSYS_PWR_CON (0x10006000+0x200) */
  1236. #define MCUSYS_SPMC_PWR_RST_B_LSB (1U << 0) /* 1b */
  1237. #define MCUSYS_SPMC_PWR_ON_LSB (1U << 2) /* 1b */
  1238. #define MCUSYS_SPMC_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1239. #define MCUSYS_SPMC_RESETPWRON_CONFIG_LSB (1U << 5) /* 1b */
  1240. #define MCUSYS_SPMC_DORMANT_EN_LSB (1U << 6) /* 1b */
  1241. #define MCUSYS_VPROC_EXT_OFF_LSB (1U << 7) /* 1b */
  1242. #define SPM_MCUSYS_PWR_CON_MCUSYS_SPMC_PWR_ON_ACK_LSB (1U << 31) /* 1b */
  1243. /* SPM_CPUTOP_PWR_CON (0x10006000+0x204) */
  1244. #define MP0_SPMC_PWR_RST_B_CPUTOP_LSB (1U << 0) /* 1b */
  1245. #define MP0_SPMC_PWR_ON_CPUTOP_LSB (1U << 2) /* 1b */
  1246. #define MP0_SPMC_PWR_CLK_DIS_CPUTOP_LSB (1U << 4) /* 1b */
  1247. #define MP0_SPMC_RESETPWRON_CONFIG_CPUTOP_LSB (1U << 5) /* 1b */
  1248. #define MP0_SPMC_DORMANT_EN_CPUTOP_LSB (1U << 6) /* 1b */
  1249. #define MP0_VPROC_EXT_OFF_LSB (1U << 7) /* 1b */
  1250. #define MP0_VSRAM_EXT_OFF_LSB (1U << 8) /* 1b */
  1251. #define SPM_CPUTOP_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPUTOP_LSB (1U << 31) /* 1b */
  1252. /* SPM_CPU0_PWR_CON (0x10006000+0x208) */
  1253. #define MP0_SPMC_PWR_RST_B_CPU0_LSB (1U << 0) /* 1b */
  1254. #define MP0_SPMC_PWR_ON_CPU0_LSB (1U << 2) /* 1b */
  1255. #define MP0_SPMC_RESETPWRON_CONFIG_CPU0_LSB (1U << 5) /* 1b */
  1256. #define MP0_VPROC_EXT_OFF_CPU0_LSB (1U << 7) /* 1b */
  1257. #define SPM_CPU0_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU0_LSB (1U << 31) /* 1b */
  1258. /* SPM_CPU1_PWR_CON (0x10006000+0x20C) */
  1259. #define MP0_SPMC_PWR_RST_B_CPU1_LSB (1U << 0) /* 1b */
  1260. #define MP0_SPMC_PWR_ON_CPU1_LSB (1U << 2) /* 1b */
  1261. #define MP0_SPMC_RESETPWRON_CONFIG_CPU1_LSB (1U << 5) /* 1b */
  1262. #define MP0_VPROC_EXT_OFF_CPU1_LSB (1U << 7) /* 1b */
  1263. #define SPM_CPU1_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU1_LSB (1U << 31) /* 1b */
  1264. /* SPM_CPU2_PWR_CON (0x10006000+0x210) */
  1265. #define MP0_SPMC_PWR_RST_B_CPU2_LSB (1U << 0) /* 1b */
  1266. #define MP0_SPMC_PWR_ON_CPU2_LSB (1U << 2) /* 1b */
  1267. #define MP0_SPMC_RESETPWRON_CONFIG_CPU2_LSB (1U << 5) /* 1b */
  1268. #define MP0_VPROC_EXT_OFF_CPU2_LSB (1U << 7) /* 1b */
  1269. #define SPM_CPU2_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU2_LSB (1U << 31) /* 1b */
  1270. /* SPM_CPU3_PWR_CON (0x10006000+0x214) */
  1271. #define MP0_SPMC_PWR_RST_B_CPU3_LSB (1U << 0) /* 1b */
  1272. #define MP0_SPMC_PWR_ON_CPU3_LSB (1U << 2) /* 1b */
  1273. #define MP0_SPMC_RESETPWRON_CONFIG_CPU3_LSB (1U << 5) /* 1b */
  1274. #define MP0_VPROC_EXT_OFF_CPU3_LSB (1U << 7) /* 1b */
  1275. #define SPM_CPU3_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU3_LSB (1U << 31) /* 1b */
  1276. /* SPM_CPU4_PWR_CON (0x10006000+0x218) */
  1277. #define MP0_SPMC_PWR_RST_B_CPU4_LSB (1U << 0) /* 1b */
  1278. #define MP0_SPMC_PWR_ON_CPU4_LSB (1U << 2) /* 1b */
  1279. #define MP0_SPMC_RESETPWRON_CONFIG_CPU4_LSB (1U << 5) /* 1b */
  1280. #define MP0_VPROC_EXT_OFF_CPU4_LSB (1U << 7) /* 1b */
  1281. #define SPM_CPU4_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU4_LSB (1U << 31) /* 1b */
  1282. /* SPM_CPU5_PWR_CON (0x10006000+0x21C) */
  1283. #define MP0_SPMC_PWR_RST_B_CPU5_LSB (1U << 0) /* 1b */
  1284. #define MP0_SPMC_PWR_ON_CPU5_LSB (1U << 2) /* 1b */
  1285. #define MP0_SPMC_RESETPWRON_CONFIG_CPU5_LSB (1U << 5) /* 1b */
  1286. #define MP0_VPROC_EXT_OFF_CPU5_LSB (1U << 7) /* 1b */
  1287. #define SPM_CPU5_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU5_LSB (1U << 31) /* 1b */
  1288. /* SPM_CPU6_PWR_CON (0x10006000+0x220) */
  1289. #define MP0_SPMC_PWR_RST_B_CPU6_LSB (1U << 0) /* 1b */
  1290. #define MP0_SPMC_PWR_ON_CPU6_LSB (1U << 2) /* 1b */
  1291. #define MP0_SPMC_RESETPWRON_CONFIG_CPU6_LSB (1U << 5) /* 1b */
  1292. #define MP0_VPROC_EXT_OFF_CPU6_LSB (1U << 7) /* 1b */
  1293. #define SPM_CPU6_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU6_LSB (1U << 31) /* 1b */
  1294. /* SPM_CPU7_PWR_CON (0x10006000+0x224) */
  1295. #define MP0_SPMC_PWR_RST_B_CPU7_LSB (1U << 0) /* 1b */
  1296. #define MP0_SPMC_PWR_ON_CPU7_LSB (1U << 2) /* 1b */
  1297. #define MP0_SPMC_RESETPWRON_CONFIG_CPU7_LSB (1U << 5) /* 1b */
  1298. #define MP0_VPROC_EXT_OFF_CPU7_LSB (1U << 7) /* 1b */
  1299. #define SPM_CPU7_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU7_LSB (1U << 31) /* 1b */
  1300. /* ARMPLL_CLK_CON (0x10006000+0x22C) */
  1301. #define SC_ARM_FHC_PAUSE_LSB (1U << 0) /* 6b */
  1302. #define SC_ARM_CK_OFF_LSB (1U << 6) /* 6b */
  1303. #define SC_ARMPLL_OFF_LSB (1U << 12) /* 1b */
  1304. #define SC_ARMBPLL_OFF_LSB (1U << 13) /* 1b */
  1305. #define SC_ARMBPLL1_OFF_LSB (1U << 14) /* 1b */
  1306. #define SC_ARMBPLL2_OFF_LSB (1U << 15) /* 1b */
  1307. #define SC_ARMBPLL3_OFF_LSB (1U << 16) /* 1b */
  1308. #define SC_CCIPLL_CKOFF_LSB (1U << 17) /* 1b */
  1309. #define SC_ARMDDS_OFF_LSB (1U << 18) /* 1b */
  1310. #define SC_ARMBPLL_S_OFF_LSB (1U << 19) /* 1b */
  1311. #define SC_ARMBPLL1_S_OFF_LSB (1U << 20) /* 1b */
  1312. #define SC_ARMBPLL2_S_OFF_LSB (1U << 21) /* 1b */
  1313. #define SC_ARMBPLL3_S_OFF_LSB (1U << 22) /* 1b */
  1314. #define SC_CCIPLL_PWROFF_LSB (1U << 23) /* 1b */
  1315. #define SC_ARMPLLOUT_OFF_LSB (1U << 24) /* 1b */
  1316. #define SC_ARMBPLLOUT_OFF_LSB (1U << 25) /* 1b */
  1317. #define SC_ARMBPLLOUT1_OFF_LSB (1U << 26) /* 1b */
  1318. #define SC_ARMBPLLOUT2_OFF_LSB (1U << 27) /* 1b */
  1319. #define SC_ARMBPLLOUT3_OFF_LSB (1U << 28) /* 1b */
  1320. #define SC_CCIPLL_OUT_OFF_LSB (1U << 29) /* 1b */
  1321. /* MCUSYS_IDLE_STA (0x10006000+0x230) */
  1322. #define ARMBUS_IDLE_TO_26M_LSB (1U << 0) /* 1b */
  1323. #define MP0_CLUSTER_IDLE_TO_PWR_OFF_LSB (1U << 1) /* 1b */
  1324. #define MCUSYS_DDR_EN_0_LSB (1U << 2) /* 1b */
  1325. #define MCUSYS_DDR_EN_1_LSB (1U << 3) /* 1b */
  1326. #define MCUSYS_DDR_EN_2_LSB (1U << 4) /* 1b */
  1327. #define MCUSYS_DDR_EN_3_LSB (1U << 5) /* 1b */
  1328. #define MCUSYS_DDR_EN_4_LSB (1U << 6) /* 1b */
  1329. #define MCUSYS_DDR_EN_5_LSB (1U << 7) /* 1b */
  1330. #define MCUSYS_DDR_EN_6_LSB (1U << 8) /* 1b */
  1331. #define MCUSYS_DDR_EN_7_LSB (1U << 9) /* 1b */
  1332. #define MP0_CPU_IDLE_TO_PWR_OFF_LSB (1U << 16) /* 8b */
  1333. #define WFI_AF_SEL_LSB (1U << 24) /* 8b */
  1334. /* GIC_WAKEUP_STA (0x10006000+0x234) */
  1335. #define GIC_WAKEUP_STA_GIC_WAKEUP_LSB (1U << 10) /* 10b */
  1336. /* CPU_SPARE_CON (0x10006000+0x238) */
  1337. #define CPU_SPARE_CON_LSB (1U << 0) /* 32b */
  1338. /* CPU_SPARE_CON_SET (0x10006000+0x23C) */
  1339. #define CPU_SPARE_CON_SET_LSB (1U << 0) /* 32b */
  1340. /* CPU_SPARE_CON_CLR (0x10006000+0x240) */
  1341. #define CPU_SPARE_CON_CLR_LSB (1U << 0) /* 32b */
  1342. /* ARMPLL_CLK_SEL (0x10006000+0x244) */
  1343. #define ARMPLL_CLK_SEL_LSB (1U << 0) /* 15b */
  1344. /* EXT_INT_WAKEUP_REQ (0x10006000+0x248) */
  1345. #define EXT_INT_WAKEUP_REQ_LSB (1U << 0) /* 10b */
  1346. /* EXT_INT_WAKEUP_REQ_SET (0x10006000+0x24C) */
  1347. #define EXT_INT_WAKEUP_REQ_SET_LSB (1U << 0) /* 10b */
  1348. /* EXT_INT_WAKEUP_REQ_CLR (0x10006000+0x250) */
  1349. #define EXT_INT_WAKEUP_REQ_CLR_LSB (1U << 0) /* 10b */
  1350. /* MP0_CPU0_IRQ_MASK (0x10006000+0x260) */
  1351. #define MP0_CPU0_IRQ_MASK_LSB (1U << 0) /* 1b */
  1352. #define MP0_CPU0_AUX_LSB (1U << 8) /* 11b */
  1353. /* MP0_CPU1_IRQ_MASK (0x10006000+0x264) */
  1354. #define MP0_CPU1_IRQ_MASK_LSB (1U << 0) /* 1b */
  1355. #define MP0_CPU1_AUX_LSB (1U << 8) /* 11b */
  1356. /* MP0_CPU2_IRQ_MASK (0x10006000+0x268) */
  1357. #define MP0_CPU2_IRQ_MASK_LSB (1U << 0) /* 1b */
  1358. #define MP0_CPU2_AUX_LSB (1U << 8) /* 11b */
  1359. /* MP0_CPU3_IRQ_MASK (0x10006000+0x26C) */
  1360. #define MP0_CPU3_IRQ_MASK_LSB (1U << 0) /* 1b */
  1361. #define MP0_CPU3_AUX_LSB (1U << 8) /* 11b */
  1362. /* MP1_CPU0_IRQ_MASK (0x10006000+0x270) */
  1363. #define MP1_CPU0_IRQ_MASK_LSB (1U << 0) /* 1b */
  1364. #define MP1_CPU0_AUX_LSB (1U << 8) /* 11b */
  1365. /* MP1_CPU1_IRQ_MASK (0x10006000+0x274) */
  1366. #define MP1_CPU1_IRQ_MASK_LSB (1U << 0) /* 1b */
  1367. #define MP1_CPU1_AUX_LSB (1U << 8) /* 11b */
  1368. /* MP1_CPU2_IRQ_MASK (0x10006000+0x278) */
  1369. #define MP1_CPU2_IRQ_MASK_LSB (1U << 0) /* 1b */
  1370. #define MP1_CPU2_AUX_LSB (1U << 8) /* 11b */
  1371. /* MP1_CPU3_IRQ_MASK (0x10006000+0x27C) */
  1372. #define MP1_CPU3_IRQ_MASK_LSB (1U << 0) /* 1b */
  1373. #define MP1_CPU3_AUX_LSB (1U << 8) /* 11b */
  1374. /* MP0_CPU0_WFI_EN (0x10006000+0x280) */
  1375. #define MP0_CPU0_WFI_EN_LSB (1U << 0) /* 1b */
  1376. /* MP0_CPU1_WFI_EN (0x10006000+0x284) */
  1377. #define MP0_CPU1_WFI_EN_LSB (1U << 0) /* 1b */
  1378. /* MP0_CPU2_WFI_EN (0x10006000+0x288) */
  1379. #define MP0_CPU2_WFI_EN_LSB (1U << 0) /* 1b */
  1380. /* MP0_CPU3_WFI_EN (0x10006000+0x28C) */
  1381. #define MP0_CPU3_WFI_EN_LSB (1U << 0) /* 1b */
  1382. /* MP0_CPU4_WFI_EN (0x10006000+0x290) */
  1383. #define MP0_CPU4_WFI_EN_LSB (1U << 0) /* 1b */
  1384. /* MP0_CPU5_WFI_EN (0x10006000+0x294) */
  1385. #define MP0_CPU5_WFI_EN_LSB (1U << 0) /* 1b */
  1386. /* MP0_CPU6_WFI_EN (0x10006000+0x298) */
  1387. #define MP0_CPU6_WFI_EN_LSB (1U << 0) /* 1b */
  1388. /* MP0_CPU7_WFI_EN (0x10006000+0x29C) */
  1389. #define MP0_CPU7_WFI_EN_LSB (1U << 0) /* 1b */
  1390. /* ROOT_CPUTOP_ADDR (0x10006000+0x2A0) */
  1391. #define ROOT_CPUTOP_ADDR_LSB (1U << 0) /* 32b */
  1392. /* ROOT_CORE_ADDR (0x10006000+0x2A4) */
  1393. #define ROOT_CORE_ADDR_LSB (1U << 0) /* 32b */
  1394. /* SPM2SW_MAILBOX_0 (0x10006000+0x2D0) */
  1395. #define SPM2SW_MAILBOX_0_LSB (1U << 0) /* 32b */
  1396. /* SPM2SW_MAILBOX_1 (0x10006000+0x2D4) */
  1397. #define SPM2SW_MAILBOX_1_LSB (1U << 0) /* 32b */
  1398. /* SPM2SW_MAILBOX_2 (0x10006000+0x2D8) */
  1399. #define SPM2SW_MAILBOX_2_LSB (1U << 0) /* 32b */
  1400. /* SPM2SW_MAILBOX_3 (0x10006000+0x2DC) */
  1401. #define SPM2SW_MAILBOX_3_LSB (1U << 0) /* 32b */
  1402. /* SW2SPM_INT (0x10006000+0x2E0) */
  1403. #define SW2SPM_INT_SW2SPM_INT_LSB (1U << 0) /* 4b */
  1404. /* SW2SPM_INT_SET (0x10006000+0x2E4) */
  1405. #define SW2SPM_INT_SET_LSB (1U << 0) /* 4b */
  1406. /* SW2SPM_INT_CLR (0x10006000+0x2E8) */
  1407. #define SW2SPM_INT_CLR_LSB (1U << 0) /* 4b */
  1408. /* SW2SPM_MAILBOX_0 (0x10006000+0x2EC) */
  1409. #define SW2SPM_MAILBOX_0_LSB (1U << 0) /* 32b */
  1410. /* SW2SPM_MAILBOX_1 (0x10006000+0x2F0) */
  1411. #define SW2SPM_MAILBOX_1_LSB (1U << 0) /* 32b */
  1412. /* SW2SPM_MAILBOX_2 (0x10006000+0x2F4) */
  1413. #define SW2SPM_MAILBOX_2_LSB (1U << 0) /* 32b */
  1414. /* SW2SPM_MAILBOX_3 (0x10006000+0x2F8) */
  1415. #define SW2SPM_MAILBOX_3_LSB (1U << 0) /* 32b */
  1416. /* SW2SPM_CFG (0x10006000+0x2FC) */
  1417. #define SWU2SPM_INT_MASK_B_LSB (1U << 0) /* 4b */
  1418. /* MD1_PWR_CON (0x10006000+0x300) */
  1419. #define MD1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1420. #define MD1_PWR_ISO_LSB (1U << 1) /* 1b */
  1421. #define MD1_PWR_ON_LSB (1U << 2) /* 1b */
  1422. #define MD1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1423. #define MD1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1424. #define MD1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1425. #define SC_MD1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1426. /* CONN_PWR_CON (0x10006000+0x304) */
  1427. #define CONN_PWR_RST_B_LSB (1U << 0) /* 1b */
  1428. #define CONN_PWR_ISO_LSB (1U << 1) /* 1b */
  1429. #define CONN_PWR_ON_LSB (1U << 2) /* 1b */
  1430. #define CONN_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1431. #define CONN_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1432. /* MFG0_PWR_CON (0x10006000+0x308) */
  1433. #define MFG0_PWR_RST_B_LSB (1U << 0) /* 1b */
  1434. #define MFG0_PWR_ISO_LSB (1U << 1) /* 1b */
  1435. #define MFG0_PWR_ON_LSB (1U << 2) /* 1b */
  1436. #define MFG0_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1437. #define MFG0_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1438. #define MFG0_SRAM_PDN_LSB (1U << 8) /* 1b */
  1439. #define SC_MFG0_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1440. /* MFG1_PWR_CON (0x10006000+0x30C) */
  1441. #define MFG1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1442. #define MFG1_PWR_ISO_LSB (1U << 1) /* 1b */
  1443. #define MFG1_PWR_ON_LSB (1U << 2) /* 1b */
  1444. #define MFG1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1445. #define MFG1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1446. #define MFG1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1447. #define SC_MFG1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1448. /* MFG2_PWR_CON (0x10006000+0x310) */
  1449. #define MFG2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1450. #define MFG2_PWR_ISO_LSB (1U << 1) /* 1b */
  1451. #define MFG2_PWR_ON_LSB (1U << 2) /* 1b */
  1452. #define MFG2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1453. #define MFG2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1454. #define MFG2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1455. #define SC_MFG2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1456. /* MFG3_PWR_CON (0x10006000+0x314) */
  1457. #define MFG3_PWR_RST_B_LSB (1U << 0) /* 1b */
  1458. #define MFG3_PWR_ISO_LSB (1U << 1) /* 1b */
  1459. #define MFG3_PWR_ON_LSB (1U << 2) /* 1b */
  1460. #define MFG3_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1461. #define MFG3_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1462. #define MFG3_SRAM_PDN_LSB (1U << 8) /* 1b */
  1463. #define SC_MFG3_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1464. /* MFG4_PWR_CON (0x10006000+0x318) */
  1465. #define MFG4_PWR_RST_B_LSB (1U << 0) /* 1b */
  1466. #define MFG4_PWR_ISO_LSB (1U << 1) /* 1b */
  1467. #define MFG4_PWR_ON_LSB (1U << 2) /* 1b */
  1468. #define MFG4_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1469. #define MFG4_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1470. #define MFG4_SRAM_PDN_LSB (1U << 8) /* 1b */
  1471. #define SC_MFG4_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1472. /* MFG5_PWR_CON (0x10006000+0x31C) */
  1473. #define MFG5_PWR_RST_B_LSB (1U << 0) /* 1b */
  1474. #define MFG5_PWR_ISO_LSB (1U << 1) /* 1b */
  1475. #define MFG5_PWR_ON_LSB (1U << 2) /* 1b */
  1476. #define MFG5_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1477. #define MFG5_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1478. #define MFG5_SRAM_PDN_LSB (1U << 8) /* 1b */
  1479. #define SC_MFG5_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1480. /* MFG6_PWR_CON (0x10006000+0x320) */
  1481. #define MFG6_PWR_RST_B_LSB (1U << 0) /* 1b */
  1482. #define MFG6_PWR_ISO_LSB (1U << 1) /* 1b */
  1483. #define MFG6_PWR_ON_LSB (1U << 2) /* 1b */
  1484. #define MFG6_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1485. #define MFG6_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1486. #define MFG6_SRAM_PDN_LSB (1U << 8) /* 1b */
  1487. #define SC_MFG6_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1488. /* IFR_PWR_CON (0x10006000+0x324) */
  1489. #define IFR_PWR_RST_B_LSB (1U << 0) /* 1b */
  1490. #define IFR_PWR_ISO_LSB (1U << 1) /* 1b */
  1491. #define IFR_PWR_ON_LSB (1U << 2) /* 1b */
  1492. #define IFR_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1493. #define IFR_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1494. #define IFR_SRAM_PDN_LSB (1U << 8) /* 1b */
  1495. #define SC_IFR_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1496. /* IFR_SUB_PWR_CON (0x10006000+0x328) */
  1497. #define IFR_SUB_PWR_RST_B_LSB (1U << 0) /* 1b */
  1498. #define IFR_SUB_PWR_ISO_LSB (1U << 1) /* 1b */
  1499. #define IFR_SUB_PWR_ON_LSB (1U << 2) /* 1b */
  1500. #define IFR_SUB_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1501. #define IFR_SUB_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1502. #define IFR_SUB_SRAM_PDN_LSB (1U << 8) /* 1b */
  1503. #define SC_IFR_SUB_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1504. /* DPY_PWR_CON (0x10006000+0x32C) */
  1505. #define DPY_PWR_RST_B_LSB (1U << 0) /* 1b */
  1506. #define DPY_PWR_ISO_LSB (1U << 1) /* 1b */
  1507. #define DPY_PWR_ON_LSB (1U << 2) /* 1b */
  1508. #define DPY_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1509. #define DPY_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1510. #define DPY_SRAM_PDN_LSB (1U << 8) /* 1b */
  1511. #define SC_DPY_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1512. /* ISP_PWR_CON (0x10006000+0x330) */
  1513. #define ISP_PWR_RST_B_LSB (1U << 0) /* 1b */
  1514. #define ISP_PWR_ISO_LSB (1U << 1) /* 1b */
  1515. #define ISP_PWR_ON_LSB (1U << 2) /* 1b */
  1516. #define ISP_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1517. #define ISP_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1518. #define ISP_SRAM_PDN_LSB (1U << 8) /* 1b */
  1519. #define SC_ISP_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1520. /* ISP2_PWR_CON (0x10006000+0x334) */
  1521. #define ISP2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1522. #define ISP2_PWR_ISO_LSB (1U << 1) /* 1b */
  1523. #define ISP2_PWR_ON_LSB (1U << 2) /* 1b */
  1524. #define ISP2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1525. #define ISP2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1526. #define ISP2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1527. #define SC_ISP2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1528. /* IPE_PWR_CON (0x10006000+0x338) */
  1529. #define IPE_PWR_RST_B_LSB (1U << 0) /* 1b */
  1530. #define IPE_PWR_ISO_LSB (1U << 1) /* 1b */
  1531. #define IPE_PWR_ON_LSB (1U << 2) /* 1b */
  1532. #define IPE_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1533. #define IPE_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1534. #define IPE_SRAM_PDN_LSB (1U << 8) /* 1b */
  1535. #define SC_IPE_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1536. /* VDE_PWR_CON (0x10006000+0x33C) */
  1537. #define VDE_PWR_RST_B_LSB (1U << 0) /* 1b */
  1538. #define VDE_PWR_ISO_LSB (1U << 1) /* 1b */
  1539. #define VDE_PWR_ON_LSB (1U << 2) /* 1b */
  1540. #define VDE_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1541. #define VDE_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1542. #define VDE_SRAM_PDN_LSB (1U << 8) /* 1b */
  1543. #define SC_VDE_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1544. /* VDE2_PWR_CON (0x10006000+0x340) */
  1545. #define VDE2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1546. #define VDE2_PWR_ISO_LSB (1U << 1) /* 1b */
  1547. #define VDE2_PWR_ON_LSB (1U << 2) /* 1b */
  1548. #define VDE2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1549. #define VDE2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1550. #define VDE2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1551. #define SC_VDE2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1552. /* VEN_PWR_CON (0x10006000+0x344) */
  1553. #define VEN_PWR_RST_B_LSB (1U << 0) /* 1b */
  1554. #define VEN_PWR_ISO_LSB (1U << 1) /* 1b */
  1555. #define VEN_PWR_ON_LSB (1U << 2) /* 1b */
  1556. #define VEN_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1557. #define VEN_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1558. #define VEN_SRAM_PDN_LSB (1U << 8) /* 1b */
  1559. #define SC_VEN_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1560. /* VEN_CORE1_PWR_CON (0x10006000+0x348) */
  1561. #define VEN_CORE1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1562. #define VEN_CORE1_PWR_ISO_LSB (1U << 1) /* 1b */
  1563. #define VEN_CORE1_PWR_ON_LSB (1U << 2) /* 1b */
  1564. #define VEN_CORE1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1565. #define VEN_CORE1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1566. #define VEN_CORE1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1567. #define SC_VEN_CORE1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1568. /* MDP_PWR_CON (0x10006000+0x34C) */
  1569. #define MDP_PWR_RST_B_LSB (1U << 0) /* 1b */
  1570. #define MDP_PWR_ISO_LSB (1U << 1) /* 1b */
  1571. #define MDP_PWR_ON_LSB (1U << 2) /* 1b */
  1572. #define MDP_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1573. #define MDP_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1574. #define MDP_SRAM_PDN_LSB (1U << 8) /* 1b */
  1575. #define SC_MDP_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1576. /* DIS_PWR_CON (0x10006000+0x350) */
  1577. #define DIS_PWR_RST_B_LSB (1U << 0) /* 1b */
  1578. #define DIS_PWR_ISO_LSB (1U << 1) /* 1b */
  1579. #define DIS_PWR_ON_LSB (1U << 2) /* 1b */
  1580. #define DIS_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1581. #define DIS_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1582. #define DIS_SRAM_PDN_LSB (1U << 8) /* 1b */
  1583. #define SC_DIS_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1584. /* AUDIO_PWR_CON (0x10006000+0x354) */
  1585. #define AUDIO_PWR_RST_B_LSB (1U << 0) /* 1b */
  1586. #define AUDIO_PWR_ISO_LSB (1U << 1) /* 1b */
  1587. #define AUDIO_PWR_ON_LSB (1U << 2) /* 1b */
  1588. #define AUDIO_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1589. #define AUDIO_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1590. #define AUDIO_SRAM_PDN_LSB (1U << 8) /* 1b */
  1591. #define SC_AUDIO_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1592. /* ADSP_PWR_CON (0x10006000+0x358) */
  1593. #define ADSP_PWR_RST_B_LSB (1U << 0) /* 1b */
  1594. #define ADSP_PWR_ISO_LSB (1U << 1) /* 1b */
  1595. #define ADSP_PWR_ON_LSB (1U << 2) /* 1b */
  1596. #define ADSP_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1597. #define ADSP_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1598. #define ADSP_SRAM_CKISO_LSB (1U << 5) /* 1b */
  1599. #define ADSP_SRAM_ISOINT_B_LSB (1U << 6) /* 1b */
  1600. #define ADSP_SRAM_PDN_LSB (1U << 8) /* 1b */
  1601. #define ADSP_SRAM_SLEEP_B_LSB (1U << 9) /* 1b */
  1602. #define SC_ADSP_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1603. #define SC_ADSP_SRAM_SLEEP_B_ACK_LSB (1U << 13) /* 1b */
  1604. /* CAM_PWR_CON (0x10006000+0x35C) */
  1605. #define CAM_PWR_RST_B_LSB (1U << 0) /* 1b */
  1606. #define CAM_PWR_ISO_LSB (1U << 1) /* 1b */
  1607. #define CAM_PWR_ON_LSB (1U << 2) /* 1b */
  1608. #define CAM_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1609. #define CAM_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1610. #define CAM_SRAM_PDN_LSB (1U << 8) /* 1b */
  1611. #define SC_CAM_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1612. /* CAM_RAWA_PWR_CON (0x10006000+0x360) */
  1613. #define CAM_RAWA_PWR_RST_B_LSB (1U << 0) /* 1b */
  1614. #define CAM_RAWA_PWR_ISO_LSB (1U << 1) /* 1b */
  1615. #define CAM_RAWA_PWR_ON_LSB (1U << 2) /* 1b */
  1616. #define CAM_RAWA_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1617. #define CAM_RAWA_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1618. #define CAM_RAWA_SRAM_PDN_LSB (1U << 8) /* 1b */
  1619. #define SC_CAM_RAWA_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1620. /* CAM_RAWB_PWR_CON (0x10006000+0x364) */
  1621. #define CAM_RAWB_PWR_RST_B_LSB (1U << 0) /* 1b */
  1622. #define CAM_RAWB_PWR_ISO_LSB (1U << 1) /* 1b */
  1623. #define CAM_RAWB_PWR_ON_LSB (1U << 2) /* 1b */
  1624. #define CAM_RAWB_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1625. #define CAM_RAWB_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1626. #define CAM_RAWB_SRAM_PDN_LSB (1U << 8) /* 1b */
  1627. #define SC_CAM_RAWB_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1628. /* CAM_RAWC_PWR_CON (0x10006000+0x368) */
  1629. #define CAM_RAWC_PWR_RST_B_LSB (1U << 0) /* 1b */
  1630. #define CAM_RAWC_PWR_ISO_LSB (1U << 1) /* 1b */
  1631. #define CAM_RAWC_PWR_ON_LSB (1U << 2) /* 1b */
  1632. #define CAM_RAWC_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1633. #define CAM_RAWC_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1634. #define CAM_RAWC_SRAM_PDN_LSB (1U << 8) /* 1b */
  1635. #define SC_CAM_RAWC_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1636. /* SYSRAM_CON (0x10006000+0x36C) */
  1637. #define SYSRAM_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1638. #define SYSRAM_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1639. #define SYSRAM_SRAM_SLEEP_B_LSB (1U << 4) /* 4b */
  1640. #define SYSRAM_SRAM_PDN_LSB (1U << 16) /* 4b */
  1641. /* SYSROM_CON (0x10006000+0x370) */
  1642. #define SYSROM_SRAM_PDN_LSB (1U << 0) /* 6b */
  1643. /* SSPM_SRAM_CON (0x10006000+0x374) */
  1644. #define SSPM_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1645. #define SSPM_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1646. #define SSPM_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1647. #define SSPM_SRAM_PDN_LSB (1U << 16) /* 1b */
  1648. /* SCP_SRAM_CON (0x10006000+0x378) */
  1649. #define SCP_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1650. #define SCP_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1651. #define SCP_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1652. #define SCP_SRAM_PDN_LSB (1U << 16) /* 1b */
  1653. /* DPY_SHU_SRAM_CON (0x10006000+0x37C) */
  1654. #define DPY_SHU_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1655. #define DPY_SHU_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1656. #define DPY_SHU_SRAM_SLEEP_B_LSB (1U << 4) /* 2b */
  1657. #define DPY_SHU_SRAM_PDN_LSB (1U << 16) /* 2b */
  1658. /* UFS_SRAM_CON (0x10006000+0x380) */
  1659. #define UFS_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1660. #define UFS_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1661. #define UFS_SRAM_SLEEP_B_LSB (1U << 4) /* 5b */
  1662. #define UFS_SRAM_PDN_LSB (1U << 16) /* 5b */
  1663. /* DEVAPC_IFR_SRAM_CON (0x10006000+0x384) */
  1664. #define DEVAPC_IFR_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1665. #define DEVAPC_IFR_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1666. #define DEVAPC_IFR_SRAM_SLEEP_B_LSB (1U << 4) /* 6b */
  1667. #define DEVAPC_IFR_SRAM_PDN_LSB (1U << 16) /* 6b */
  1668. /* DEVAPC_SUBIFR_SRAM_CON (0x10006000+0x388) */
  1669. #define DEVAPC_SUBIFR_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1670. #define DEVAPC_SUBIFR_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1671. #define DEVAPC_SUBIFR_SRAM_SLEEP_B_LSB (1U << 4) /* 6b */
  1672. #define DEVAPC_SUBIFR_SRAM_PDN_LSB (1U << 16) /* 6b */
  1673. /* DEVAPC_ACP_SRAM_CON (0x10006000+0x38C) */
  1674. #define DEVAPC_ACP_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1675. #define DEVAPC_ACP_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1676. #define DEVAPC_ACP_SRAM_SLEEP_B_LSB (1U << 4) /* 6b */
  1677. #define DEVAPC_ACP_SRAM_PDN_LSB (1U << 16) /* 6b */
  1678. /* USB_SRAM_CON (0x10006000+0x390) */
  1679. #define USB_SRAM_PDN_LSB (1U << 0) /* 7b */
  1680. /* DUMMY_SRAM_CON (0x10006000+0x394) */
  1681. #define DUMMY_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1682. #define DUMMY_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1683. #define DUMMY_SRAM_SLEEP_B_LSB (1U << 4) /* 8b */
  1684. #define DUMMY_SRAM_PDN_LSB (1U << 16) /* 8b */
  1685. /* MD_EXT_BUCK_ISO_CON (0x10006000+0x398) */
  1686. #define VMODEM_EXT_BUCK_ISO_LSB (1U << 0) /* 1b */
  1687. #define VMD_EXT_BUCK_ISO_LSB (1U << 1) /* 1b */
  1688. /* EXT_BUCK_ISO (0x10006000+0x39C) */
  1689. #define VIMVO_EXT_BUCK_ISO_LSB (1U << 0) /* 1b */
  1690. #define GPU_EXT_BUCK_ISO_LSB (1U << 1) /* 1b */
  1691. #define ADSP_EXT_BUCK_ISO_LSB (1U << 2) /* 1b */
  1692. #define IPU_EXT_BUCK_ISO_LSB (1U << 5) /* 3b */
  1693. /* DXCC_SRAM_CON (0x10006000+0x3A0) */
  1694. #define DXCC_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1695. #define DXCC_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1696. #define DXCC_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1697. #define DXCC_SRAM_PDN_LSB (1U << 16) /* 1b */
  1698. /* MSDC_SRAM_CON (0x10006000+0x3A4) */
  1699. #define MSDC_PWR_RST_B_LSB (1U << 0) /* 1b */
  1700. #define MSDC_PWR_ISO_LSB (1U << 1) /* 1b */
  1701. #define MSDC_PWR_ON_LSB (1U << 2) /* 1b */
  1702. #define MSDC_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1703. #define MSDC_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1704. #define MSDC_SRAM_CKISO_LSB (1U << 5) /* 1b */
  1705. #define MSDC_SRAM_ISOINT_B_LSB (1U << 6) /* 1b */
  1706. #define MSDC_SRAM_PDN_LSB (1U << 8) /* 1b */
  1707. #define MSDC_SRAM_SLEEP_B_LSB (1U << 9) /* 1b */
  1708. #define SC_MSDC_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1709. #define SC_MSDC_SRAM_SLEEP_B_ACK_LSB (1U << 13) /* 1b */
  1710. /* DEBUGTOP_SRAM_CON (0x10006000+0x3A8) */
  1711. #define DEBUGTOP_SRAM_PDN_LSB (1U << 0) /* 1b */
  1712. /* DP_TX_PWR_CON (0x10006000+0x3AC) */
  1713. #define DP_TX_PWR_RST_B_LSB (1U << 0) /* 1b */
  1714. #define DP_TX_PWR_ISO_LSB (1U << 1) /* 1b */
  1715. #define DP_TX_PWR_ON_LSB (1U << 2) /* 1b */
  1716. #define DP_TX_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1717. #define DP_TX_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1718. #define DP_TX_SRAM_PDN_LSB (1U << 8) /* 1b */
  1719. #define SC_DP_TX_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1720. /* DPMAIF_SRAM_CON (0x10006000+0x3B0) */
  1721. #define DPMAIF_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1722. #define DPMAIF_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1723. #define DPMAIF_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1724. #define DPMAIF_SRAM_PDN_LSB (1U << 16) /* 1b */
  1725. /* DPY_SHU2_SRAM_CON (0x10006000+0x3B4) */
  1726. #define DPY_SHU2_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1727. #define DPY_SHU2_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1728. #define DPY_SHU2_SRAM_SLEEP_B_LSB (1U << 4) /* 2b */
  1729. #define DPY_SHU2_SRAM_PDN_LSB (1U << 16) /* 2b */
  1730. /* DRAMC_MCU2_SRAM_CON (0x10006000+0x3B8) */
  1731. #define DRAMC_MCU2_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1732. #define DRAMC_MCU2_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1733. #define DRAMC_MCU2_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1734. #define DRAMC_MCU2_SRAM_PDN_LSB (1U << 16) /* 1b */
  1735. /* DRAMC_MCU_SRAM_CON (0x10006000+0x3BC) */
  1736. #define DRAMC_MCU_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1737. #define DRAMC_MCU_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1738. #define DRAMC_MCU_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1739. #define DRAMC_MCU_SRAM_PDN_LSB (1U << 16) /* 1b */
  1740. /* MCUPM_SRAM_CON (0x10006000+0x3C0) */
  1741. #define MCUPM_PWR_RST_B_LSB (1U << 0) /* 1b */
  1742. #define MCUPM_PWR_ISO_LSB (1U << 1) /* 1b */
  1743. #define MCUPM_PWR_ON_LSB (1U << 2) /* 1b */
  1744. #define MCUPM_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1745. #define MCUPM_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1746. #define MCUPM_SRAM_CKISO_LSB (1U << 5) /* 1b */
  1747. #define MCUPM_SRAM_ISOINT_B_LSB (1U << 6) /* 1b */
  1748. #define MCUPM_SRAM_PDN_LSB (1U << 8) /* 1b */
  1749. #define MCUPM_SRAM_SLEEP_B_LSB (1U << 9) /* 1b */
  1750. #define SC_MCUPM_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1751. #define SC_MCUPM_SRAM_SLEEP_B_ACK_LSB (1U << 13) /* 1b */
  1752. /* DPY2_PWR_CON (0x10006000+0x3C4) */
  1753. #define DPY2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1754. #define DPY2_PWR_ISO_LSB (1U << 1) /* 1b */
  1755. #define DPY2_PWR_ON_LSB (1U << 2) /* 1b */
  1756. #define DPY2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1757. #define DPY2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1758. #define DPY2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1759. #define SC_DPY2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1760. /* PERI_PWR_CON (0x10006000+0x3C8) */
  1761. #define PERI_PWR_RST_B_LSB (1U << 0) /* 1b */
  1762. #define PERI_PWR_ISO_LSB (1U << 1) /* 1b */
  1763. #define PERI_PWR_ON_LSB (1U << 2) /* 1b */
  1764. #define PERI_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1765. #define PERI_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1766. #define PERI_SRAM_PDN_LSB (1U << 8) /* 1b */
  1767. #define SC_PERI_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1768. /* SPM_MEM_CK_SEL (0x10006000+0x400) */
  1769. #define SC_MEM_CK_SEL_LSB (1U << 0) /* 1b */
  1770. #define SPM2CKSYS_MEM_CK_MUX_UPDATE_LSB (1U << 1) /* 1b */
  1771. /* SPM_BUS_PROTECT_MASK_B (0x10006000+0X404) */
  1772. #define SPM_BUS_PROTECT_MASK_B_LSB (1U << 0) /* 32b */
  1773. /* SPM_BUS_PROTECT1_MASK_B (0x10006000+0x408) */
  1774. #define SPM_BUS_PROTECT1_MASK_B_LSB (1U << 0) /* 32b */
  1775. /* SPM_BUS_PROTECT2_MASK_B (0x10006000+0x40C) */
  1776. #define SPM_BUS_PROTECT2_MASK_B_LSB (1U << 0) /* 32b */
  1777. /* SPM_BUS_PROTECT3_MASK_B (0x10006000+0x410) */
  1778. #define SPM_BUS_PROTECT3_MASK_B_LSB (1U << 0) /* 32b */
  1779. /* SPM_BUS_PROTECT4_MASK_B (0x10006000+0x414) */
  1780. #define SPM_BUS_PROTECT4_MASK_B_LSB (1U << 0) /* 32b */
  1781. /* SPM_EMI_BW_MODE (0x10006000+0x418) */
  1782. #define EMI_BW_MODE_LSB (1U << 0) /* 1b */
  1783. #define EMI_BOOST_MODE_LSB (1U << 1) /* 1b */
  1784. #define EMI_BW_MODE_2_LSB (1U << 2) /* 1b */
  1785. #define EMI_BOOST_MODE_2_LSB (1U << 3) /* 1b */
  1786. /* AP2MD_PEER_WAKEUP (0x10006000+0x41C) */
  1787. #define AP2MD_PEER_WAKEUP_LSB (1U << 0) /* 1b */
  1788. /* ULPOSC_CON (0x10006000+0x420) */
  1789. #define ULPOSC_EN_LSB (1U << 0) /* 1b */
  1790. #define ULPOSC_RST_LSB (1U << 1) /* 1b */
  1791. #define ULPOSC_CG_EN_LSB (1U << 2) /* 1b */
  1792. #define ULPOSC_CLK_SEL_LSB (1U << 3) /* 1b */
  1793. /* SPM2MM_CON (0x10006000+0x424) */
  1794. #define SPM2MM_FORCE_ULTRA_LSB (1U << 0) /* 1b */
  1795. #define SPM2MM_DBL_OSTD_ACT_LSB (1U << 1) /* 1b */
  1796. #define SPM2MM_ULTRAREQ_LSB (1U << 2) /* 1b */
  1797. #define SPM2MD_ULTRAREQ_LSB (1U << 3) /* 1b */
  1798. #define SPM2ISP_ULTRAREQ_LSB (1U << 4) /* 1b */
  1799. #define MM2SPM_FORCE_ULTRA_ACK_D2T_LSB (1U << 16) /* 1b */
  1800. #define MM2SPM_DBL_OSTD_ACT_ACK_D2T_LSB (1U << 17) /* 1b */
  1801. #define SPM2ISP_ULTRAACK_D2T_LSB (1U << 18) /* 1b */
  1802. #define SPM2MM_ULTRAACK_D2T_LSB (1U << 19) /* 1b */
  1803. #define SPM2MD_ULTRAACK_D2T_LSB (1U << 20) /* 1b */
  1804. /* SPM_BUS_PROTECT5_MASK_B (0x10006000+0x428) */
  1805. #define SPM_BUS_PROTECT5_MASK_B_LSB (1U << 0) /* 32b */
  1806. /* SPM2MCUPM_CON (0x10006000+0x42C) */
  1807. #define SPM2MCUPM_SW_RST_B_LSB (1U << 0) /* 1b */
  1808. #define SPM2MCUPM_SW_INT_LSB (1U << 1) /* 1b */
  1809. /* AP_MDSRC_REQ (0x10006000+0x430) */
  1810. #define AP_MDSMSRC_REQ_LSB (1U << 0) /* 1b */
  1811. #define AP_L1SMSRC_REQ_LSB (1U << 1) /* 1b */
  1812. #define AP_MD2SRC_REQ_LSB (1U << 2) /* 1b */
  1813. #define AP_MDSMSRC_ACK_LSB (1U << 4) /* 1b */
  1814. #define AP_L1SMSRC_ACK_LSB (1U << 5) /* 1b */
  1815. #define AP_MD2SRC_ACK_LSB (1U << 6) /* 1b */
  1816. /* SPM2EMI_ENTER_ULPM (0x10006000+0x434) */
  1817. #define SPM2EMI_ENTER_ULPM_LSB (1U << 0) /* 1b */
  1818. /* SPM2MD_DVFS_CON (0x10006000+0x438) */
  1819. #define SPM2MD_DVFS_CON_LSB (1U << 0) /* 32b */
  1820. /* MD2SPM_DVFS_CON (0x10006000+0x43C) */
  1821. #define MD2SPM_DVFS_CON_LSB (1U << 0) /* 32b */
  1822. /* SPM_BUS_PROTECT6_MASK_B (0x10006000+0X440) */
  1823. #define SPM_BUS_PROTECT6_MASK_B_LSB (1U << 0) /* 32b */
  1824. /* SPM_BUS_PROTECT7_MASK_B (0x10006000+0x444) */
  1825. #define SPM_BUS_PROTECT7_MASK_B_LSB (1U << 0) /* 32b */
  1826. /* SPM_BUS_PROTECT8_MASK_B (0x10006000+0x448) */
  1827. #define SPM_BUS_PROTECT8_MASK_B_LSB (1U << 0) /* 32b */
  1828. /* SPM_PLL_CON (0x10006000+0x44C) */
  1829. #define SC_MAINPLLOUT_OFF_LSB (1U << 0) /* 1b */
  1830. #define SC_UNIPLLOUT_OFF_LSB (1U << 1) /* 1b */
  1831. #define SC_MAINPLL_OFF_LSB (1U << 4) /* 1b */
  1832. #define SC_UNIPLL_OFF_LSB (1U << 5) /* 1b */
  1833. #define SC_MAINPLL_S_OFF_LSB (1U << 8) /* 1b */
  1834. #define SC_UNIPLL_S_OFF_LSB (1U << 9) /* 1b */
  1835. #define SC_SMI_CK_OFF_LSB (1U << 16) /* 1b */
  1836. #define SC_MD32K_CK_OFF_LSB (1U << 17) /* 1b */
  1837. #define SC_CKSQ1_OFF_LSB (1U << 18) /* 1b */
  1838. #define SC_AXI_MEM_CK_OFF_LSB (1U << 19) /* 1b */
  1839. /* CPU_DVFS_REQ (0x10006000+0x450) */
  1840. #define CPU_DVFS_REQ_LSB (1U << 0) /* 32b */
  1841. /* SPM_DRAM_MCU_SW_CON_0 (0x10006000+0x454) */
  1842. #define SW_DDR_PST_REQ_LSB (1U << 0) /* 2b */
  1843. #define SW_DDR_PST_ABORT_REQ_LSB (1U << 2) /* 2b */
  1844. /* SPM_DRAM_MCU_SW_CON_1 (0x10006000+0x458) */
  1845. #define SW_DDR_PST_CH0_LSB (1U << 0) /* 32b */
  1846. /* SPM_DRAM_MCU_SW_CON_2 (0x10006000+0x45C) */
  1847. #define SW_DDR_PST_CH1_LSB (1U << 0) /* 32b */
  1848. /* SPM_DRAM_MCU_SW_CON_3 (0x10006000+0x460) */
  1849. #define SW_DDR_RESERVED_CH0_LSB (1U << 0) /* 32b */
  1850. /* SPM_DRAM_MCU_SW_CON_4 (0x10006000+0x464) */
  1851. #define SW_DDR_RESERVED_CH1_LSB (1U << 0) /* 32b */
  1852. /* SPM_DRAM_MCU_STA_0 (0x10006000+0x468) */
  1853. #define SC_DDR_PST_ACK_LSB (1U << 0) /* 2b */
  1854. #define SC_DDR_PST_ABORT_ACK_LSB (1U << 2) /* 2b */
  1855. /* SPM_DRAM_MCU_STA_1 (0x10006000+0x46C) */
  1856. #define SC_DDR_CUR_PST_STA_CH0_LSB (1U << 0) /* 32b */
  1857. /* SPM_DRAM_MCU_STA_2 (0x10006000+0x470) */
  1858. #define SC_DDR_CUR_PST_STA_CH1_LSB (1U << 0) /* 32b */
  1859. /* SPM_DRAM_MCU_SW_SEL_0 (0x10006000+0x474) */
  1860. #define SW_DDR_PST_REQ_SEL_LSB (1U << 0) /* 2b */
  1861. #define SW_DDR_PST_SEL_LSB (1U << 2) /* 2b */
  1862. #define SW_DDR_PST_ABORT_REQ_SEL_LSB (1U << 4) /* 2b */
  1863. #define SW_DDR_RESERVED_SEL_LSB (1U << 6) /* 2b */
  1864. #define SW_DDR_PST_ACK_SEL_LSB (1U << 8) /* 2b */
  1865. #define SW_DDR_PST_ABORT_ACK_SEL_LSB (1U << 10) /* 2b */
  1866. /* RELAY_DVFS_LEVEL (0x10006000+0x478) */
  1867. #define RELAY_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1868. /* DRAMC_DPY_CLK_SW_CON_0 (0x10006000+0x480) */
  1869. #define SW_PHYPLL_EN_LSB (1U << 0) /* 2b */
  1870. #define SW_DPY_VREF_EN_LSB (1U << 2) /* 2b */
  1871. #define SW_DPY_DLL_CK_EN_LSB (1U << 4) /* 2b */
  1872. #define SW_DPY_DLL_EN_LSB (1U << 6) /* 2b */
  1873. #define SW_DPY_2ND_DLL_EN_LSB (1U << 8) /* 2b */
  1874. #define SW_MEM_CK_OFF_LSB (1U << 10) /* 2b */
  1875. #define SW_DMSUS_OFF_LSB (1U << 12) /* 2b */
  1876. #define SW_DPY_MODE_SW_LSB (1U << 14) /* 2b */
  1877. #define SW_EMI_CLK_OFF_LSB (1U << 16) /* 2b */
  1878. #define SW_DDRPHY_FB_CK_EN_LSB (1U << 18) /* 2b */
  1879. #define SW_DR_GATE_RETRY_EN_LSB (1U << 20) /* 2b */
  1880. #define SW_DPHY_PRECAL_UP_LSB (1U << 24) /* 2b */
  1881. #define SW_DPY_BCLK_ENABLE_LSB (1U << 26) /* 2b */
  1882. #define SW_TX_TRACKING_DIS_LSB (1U << 28) /* 2b */
  1883. #define SW_DPHY_RXDLY_TRACKING_EN_LSB (1U << 30) /* 2b */
  1884. /* DRAMC_DPY_CLK_SW_CON_1 (0x10006000+0x484) */
  1885. #define SW_SHU_RESTORE_LSB (1U << 0) /* 2b */
  1886. #define SW_DMYRD_MOD_LSB (1U << 2) /* 2b */
  1887. #define SW_DMYRD_INTV_LSB (1U << 4) /* 2b */
  1888. #define SW_DMYRD_EN_LSB (1U << 6) /* 2b */
  1889. #define SW_DRS_DIS_REQ_LSB (1U << 8) /* 2b */
  1890. #define SW_DR_SRAM_LOAD_LSB (1U << 10) /* 2b */
  1891. #define SW_DR_SRAM_RESTORE_LSB (1U << 12) /* 2b */
  1892. #define SW_DR_SHU_LEVEL_SRAM_LATCH_LSB (1U << 14) /* 2b */
  1893. #define SW_TX_TRACK_RETRY_EN_LSB (1U << 16) /* 2b */
  1894. #define SW_DPY_MIDPI_EN_LSB (1U << 18) /* 2b */
  1895. #define SW_DPY_PI_RESETB_EN_LSB (1U << 20) /* 2b */
  1896. #define SW_DPY_MCK8X_EN_LSB (1U << 22) /* 2b */
  1897. #define SW_DR_SHU_LEVEL_SRAM_CH0_LSB (1U << 24) /* 4b */
  1898. #define SW_DR_SHU_LEVEL_SRAM_CH1_LSB (1U << 28) /* 4b */
  1899. /* DRAMC_DPY_CLK_SW_CON_2 (0x10006000+0x488) */
  1900. #define SW_DR_SHU_LEVEL_LSB (1U << 0) /* 2b */
  1901. #define SW_DR_SHU_EN_LSB (1U << 2) /* 1b */
  1902. #define SW_DR_SHORT_QUEUE_LSB (1U << 3) /* 1b */
  1903. #define SW_PHYPLL_MODE_SW_LSB (1U << 4) /* 1b */
  1904. #define SW_PHYPLL2_MODE_SW_LSB (1U << 5) /* 1b */
  1905. #define SW_PHYPLL_SHU_EN_LSB (1U << 6) /* 1b */
  1906. #define SW_PHYPLL2_SHU_EN_LSB (1U << 7) /* 1b */
  1907. #define SW_DR_RESERVED_0_LSB (1U << 24) /* 2b */
  1908. #define SW_DR_RESERVED_1_LSB (1U << 26) /* 2b */
  1909. #define SW_DR_RESERVED_2_LSB (1U << 28) /* 2b */
  1910. #define SW_DR_RESERVED_3_LSB (1U << 30) /* 2b */
  1911. /* DRAMC_DPY_CLK_SW_CON_3 (0x10006000+0x48C) */
  1912. #define SC_DR_SHU_EN_ACK_LSB (1U << 0) /* 4b */
  1913. #define SC_EMI_CLK_OFF_ACK_LSB (1U << 4) /* 4b */
  1914. #define SC_DR_SHORT_QUEUE_ACK_LSB (1U << 8) /* 4b */
  1915. #define SC_DRAMC_DFS_STA_LSB (1U << 12) /* 4b */
  1916. #define SC_DRS_DIS_ACK_LSB (1U << 16) /* 4b */
  1917. #define SC_DR_SRAM_LOAD_ACK_LSB (1U << 20) /* 4b */
  1918. #define SC_DR_SRAM_PLL_LOAD_ACK_LSB (1U << 24) /* 4b */
  1919. #define SC_DR_SRAM_RESTORE_ACK_LSB (1U << 28) /* 4b */
  1920. /* DRAMC_DPY_CLK_SW_SEL_0 (0x10006000+0x490) */
  1921. #define SW_PHYPLL_EN_SEL_LSB (1U << 0) /* 2b */
  1922. #define SW_DPY_VREF_EN_SEL_LSB (1U << 2) /* 2b */
  1923. #define SW_DPY_DLL_CK_EN_SEL_LSB (1U << 4) /* 2b */
  1924. #define SW_DPY_DLL_EN_SEL_LSB (1U << 6) /* 2b */
  1925. #define SW_DPY_2ND_DLL_EN_SEL_LSB (1U << 8) /* 2b */
  1926. #define SW_MEM_CK_OFF_SEL_LSB (1U << 10) /* 2b */
  1927. #define SW_DMSUS_OFF_SEL_LSB (1U << 12) /* 2b */
  1928. #define SW_DPY_MODE_SW_SEL_LSB (1U << 14) /* 2b */
  1929. #define SW_EMI_CLK_OFF_SEL_LSB (1U << 16) /* 2b */
  1930. #define SW_DDRPHY_FB_CK_EN_SEL_LSB (1U << 18) /* 2b */
  1931. #define SW_DR_GATE_RETRY_EN_SEL_LSB (1U << 20) /* 2b */
  1932. #define SW_DPHY_PRECAL_UP_SEL_LSB (1U << 24) /* 2b */
  1933. #define SW_DPY_BCLK_ENABLE_SEL_LSB (1U << 26) /* 2b */
  1934. #define SW_TX_TRACKING_DIS_SEL_LSB (1U << 28) /* 2b */
  1935. #define SW_DPHY_RXDLY_TRACKING_EN_SEL_LSB (1U << 30) /* 2b */
  1936. /* DRAMC_DPY_CLK_SW_SEL_1 (0x10006000+0x494) */
  1937. #define SW_SHU_RESTORE_SEL_LSB (1U << 0) /* 2b */
  1938. #define SW_DMYRD_MOD_SEL_LSB (1U << 2) /* 2b */
  1939. #define SW_DMYRD_INTV_SEL_LSB (1U << 4) /* 2b */
  1940. #define SW_DMYRD_EN_SEL_LSB (1U << 6) /* 2b */
  1941. #define SW_DRS_DIS_REQ_SEL_LSB (1U << 8) /* 2b */
  1942. #define SW_DR_SRAM_LOAD_SEL_LSB (1U << 10) /* 2b */
  1943. #define SW_DR_SRAM_RESTORE_SEL_LSB (1U << 12) /* 2b */
  1944. #define SW_DR_SHU_LEVEL_SRAM_LATCH_SEL_LSB (1U << 14) /* 2b */
  1945. #define SW_TX_TRACK_RETRY_EN_SEL_LSB (1U << 16) /* 2b */
  1946. #define SW_DPY_MIDPI_EN_SEL_LSB (1U << 18) /* 2b */
  1947. #define SW_DPY_PI_RESETB_EN_SEL_LSB (1U << 20) /* 2b */
  1948. #define SW_DPY_MCK8X_EN_SEL_LSB (1U << 22) /* 2b */
  1949. #define SW_DR_SHU_LEVEL_SRAM_SEL_LSB (1U << 24) /* 2b */
  1950. /* DRAMC_DPY_CLK_SW_SEL_2 (0x10006000+0x498) */
  1951. #define SW_DR_SHU_LEVEL_SEL_LSB (1U << 0) /* 1b */
  1952. #define SW_DR_SHU_EN_SEL_LSB (1U << 2) /* 1b */
  1953. #define SW_DR_SHORT_QUEUE_SEL_LSB (1U << 3) /* 1b */
  1954. #define SW_PHYPLL_MODE_SW_SEL_LSB (1U << 4) /* 1b */
  1955. #define SW_PHYPLL2_MODE_SW_SEL_LSB (1U << 5) /* 1b */
  1956. #define SW_PHYPLL_SHU_EN_SEL_LSB (1U << 6) /* 1b */
  1957. #define SW_PHYPLL2_SHU_EN_SEL_LSB (1U << 7) /* 1b */
  1958. #define SW_DR_RESERVED_0_SEL_LSB (1U << 24) /* 2b */
  1959. #define SW_DR_RESERVED_1_SEL_LSB (1U << 26) /* 2b */
  1960. #define SW_DR_RESERVED_2_SEL_LSB (1U << 28) /* 2b */
  1961. #define SW_DR_RESERVED_3_SEL_LSB (1U << 30) /* 2b */
  1962. /* DRAMC_DPY_CLK_SW_SEL_3 (0x10006000+0x49C) */
  1963. #define SC_DR_SHU_EN_ACK_SEL_LSB (1U << 0) /* 4b */
  1964. #define SC_EMI_CLK_OFF_ACK_SEL_LSB (1U << 4) /* 4b */
  1965. #define SC_DR_SHORT_QUEUE_ACK_SEL_LSB (1U << 8) /* 4b */
  1966. #define SC_DRAMC_DFS_STA_SEL_LSB (1U << 12) /* 4b */
  1967. #define SC_DRS_DIS_ACK_SEL_LSB (1U << 16) /* 4b */
  1968. #define SC_DR_SRAM_LOAD_ACK_SEL_LSB (1U << 20) /* 4b */
  1969. #define SC_DR_SRAM_PLL_LOAD_ACK_SEL_LSB (1U << 24) /* 4b */
  1970. #define SC_DR_SRAM_RESTORE_ACK_SEL_LSB (1U << 28) /* 4b */
  1971. /* DRAMC_DPY_CLK_SPM_CON (0x10006000+0x4A0) */
  1972. #define SC_DMYRD_EN_MOD_SEL_PCM_LSB (1U << 0) /* 1b */
  1973. #define SC_DMYRD_INTV_SEL_PCM_LSB (1U << 1) /* 1b */
  1974. #define SC_DMYRD_EN_PCM_LSB (1U << 2) /* 1b */
  1975. #define SC_DRS_DIS_REQ_PCM_LSB (1U << 3) /* 1b */
  1976. #define SC_DR_SHU_LEVEL_SRAM_PCM_LSB (1U << 4) /* 4b */
  1977. #define SC_DR_GATE_RETRY_EN_PCM_LSB (1U << 8) /* 1b */
  1978. #define SC_DR_SHORT_QUEUE_PCM_LSB (1U << 9) /* 1b */
  1979. #define SC_DPY_MIDPI_EN_PCM_LSB (1U << 10) /* 1b */
  1980. #define SC_DPY_PI_RESETB_EN_PCM_LSB (1U << 11) /* 1b */
  1981. #define SC_DPY_MCK8X_EN_PCM_LSB (1U << 12) /* 1b */
  1982. #define SC_DR_RESERVED_0_PCM_LSB (1U << 13) /* 1b */
  1983. #define SC_DR_RESERVED_1_PCM_LSB (1U << 14) /* 1b */
  1984. #define SC_DR_RESERVED_2_PCM_LSB (1U << 15) /* 1b */
  1985. #define SC_DR_RESERVED_3_PCM_LSB (1U << 16) /* 1b */
  1986. #define SC_DMDRAMCSHU_ACK_ALL_LSB (1U << 24) /* 1b */
  1987. #define SC_EMI_CLK_OFF_ACK_ALL_LSB (1U << 25) /* 1b */
  1988. #define SC_DR_SHORT_QUEUE_ACK_ALL_LSB (1U << 26) /* 1b */
  1989. #define SC_DRAMC_DFS_STA_ALL_LSB (1U << 27) /* 1b */
  1990. #define SC_DRS_DIS_ACK_ALL_LSB (1U << 28) /* 1b */
  1991. #define SC_DR_SRAM_LOAD_ACK_ALL_LSB (1U << 29) /* 1b */
  1992. #define SC_DR_SRAM_PLL_LOAD_ACK_ALL_LSB (1U << 30) /* 1b */
  1993. #define SC_DR_SRAM_RESTORE_ACK_ALL_LSB (1U << 31) /* 1b */
  1994. /* SPM_DVFS_LEVEL (0x10006000+0x4A4) */
  1995. #define SPM_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1996. /* SPM_CIRQ_CON (0x10006000+0x4A8) */
  1997. #define CIRQ_CLK_SEL_LSB (1U << 0) /* 1b */
  1998. /* SPM_DVFS_MISC (0x10006000+0x4AC) */
  1999. #define MSDC_DVFS_REQUEST_LSB (1U << 0) /* 1b */
  2000. #define SPM2EMI_SLP_PROT_EN_LSB (1U << 1) /* 1b */
  2001. #define SPM_DVFS_FORCE_ENABLE_LSB (1U << 2) /* 1b */
  2002. #define FORCE_DVFS_WAKE_LSB (1U << 3) /* 1b */
  2003. #define SPM_DVFSRC_ENABLE_LSB (1U << 4) /* 1b */
  2004. #define SPM_DVFS_DONE_LSB (1U << 5) /* 1b */
  2005. #define DVFSRC_IRQ_WAKEUP_EVENT_MASK_LSB (1U << 6) /* 1b */
  2006. #define SPM2RC_EVENT_ABORT_LSB (1U << 7) /* 1b */
  2007. #define EMI_SLP_IDLE_LSB (1U << 14) /* 1b */
  2008. #define SDIO_READY_TO_SPM_LSB (1U << 15) /* 1b */
  2009. /* SPM_VS1_VS2_RC_CON (0x10006000+0x4B0) */
  2010. #define VS1_INIT_LEVEL_LSB (1U << 0) /* 2b */
  2011. #define VS1_INIT_LSB (1U << 2) /* 1b */
  2012. #define VS1_CURR_LEVEL_LSB (1U << 3) /* 2b */
  2013. #define VS1_NEXT_LEVEL_LSB (1U << 5) /* 2b */
  2014. #define VS1_VOTE_LEVEL_LSB (1U << 7) /* 2b */
  2015. #define VS1_TRIGGER_LSB (1U << 9) /* 1b */
  2016. #define VS2_INIT_LEVEL_LSB (1U << 10) /* 3b */
  2017. #define VS2_INIT_LSB (1U << 13) /* 1b */
  2018. #define VS2_CURR_LEVEL_LSB (1U << 14) /* 3b */
  2019. #define VS2_NEXT_LEVEL_LSB (1U << 17) /* 3b */
  2020. #define VS2_VOTE_LEVEL_LSB (1U << 20) /* 3b */
  2021. #define VS2_TRIGGER_LSB (1U << 23) /* 1b */
  2022. #define VS1_FORCE_LSB (1U << 24) /* 1b */
  2023. #define VS2_FORCE_LSB (1U << 25) /* 1b */
  2024. #define VS1_VOTE_LEVEL_FORCE_LSB (1U << 26) /* 2b */
  2025. #define VS2_VOTE_LEVEL_FORCE_LSB (1U << 28) /* 3b */
  2026. /* RG_MODULE_SW_CG_0_MASK_REQ_0 (0x10006000+0x4B4) */
  2027. #define RG_MODULE_SW_CG_0_MASK_REQ_0_LSB (1U << 0) /* 32b */
  2028. /* RG_MODULE_SW_CG_0_MASK_REQ_1 (0x10006000+0x4B8) */
  2029. #define RG_MODULE_SW_CG_0_MASK_REQ_1_LSB (1U << 0) /* 32b */
  2030. /* RG_MODULE_SW_CG_0_MASK_REQ_2 (0x10006000+0x4BC) */
  2031. #define RG_MODULE_SW_CG_0_MASK_REQ_2_LSB (1U << 0) /* 32b */
  2032. /* RG_MODULE_SW_CG_1_MASK_REQ_0 (0x10006000+0x4C0) */
  2033. #define RG_MODULE_SW_CG_1_MASK_REQ_0_LSB (1U << 0) /* 32b */
  2034. /* RG_MODULE_SW_CG_1_MASK_REQ_1 (0x10006000+0x4C4) */
  2035. #define RG_MODULE_SW_CG_1_MASK_REQ_1_LSB (1U << 0) /* 32b */
  2036. /* RG_MODULE_SW_CG_1_MASK_REQ_2 (0x10006000+0x4C8) */
  2037. #define RG_MODULE_SW_CG_1_MASK_REQ_2_LSB (1U << 0) /* 32b */
  2038. /* RG_MODULE_SW_CG_2_MASK_REQ_0 (0x10006000+0x4CC) */
  2039. #define RG_MODULE_SW_CG_2_MASK_REQ_0_LSB (1U << 0) /* 32b */
  2040. /* RG_MODULE_SW_CG_2_MASK_REQ_1 (0x10006000+0x4D0) */
  2041. #define RG_MODULE_SW_CG_2_MASK_REQ_1_LSB (1U << 0) /* 32b */
  2042. /* RG_MODULE_SW_CG_2_MASK_REQ_2 (0x10006000+0x4D4) */
  2043. #define RG_MODULE_SW_CG_2_MASK_REQ_2_LSB (1U << 0) /* 32b */
  2044. /* RG_MODULE_SW_CG_3_MASK_REQ_0 (0x10006000+0x4D8) */
  2045. #define RG_MODULE_SW_CG_3_MASK_REQ_0_LSB (1U << 0) /* 32b */
  2046. /* RG_MODULE_SW_CG_3_MASK_REQ_1 (0x10006000+0x4DC) */
  2047. #define RG_MODULE_SW_CG_3_MASK_REQ_1_LSB (1U << 0) /* 32b */
  2048. /* RG_MODULE_SW_CG_3_MASK_REQ_2 (0x10006000+0x4E0) */
  2049. #define RG_MODULE_SW_CG_3_MASK_REQ_2_LSB (1U << 0) /* 32b */
  2050. /* PWR_STATUS_MASK_REQ_0 (0x10006000+0x4E4) */
  2051. #define PWR_STATUS_MASK_REQ_0_LSB (1U << 0) /* 32b */
  2052. /* PWR_STATUS_MASK_REQ_1 (0x10006000+0x4E8) */
  2053. #define PWR_STATUS_MASK_REQ_1_LSB (1U << 0) /* 32b */
  2054. /* PWR_STATUS_MASK_REQ_2 (0x10006000+0x4EC) */
  2055. #define PWR_STATUS_MASK_REQ_2_LSB (1U << 0) /* 32b */
  2056. /* SPM_CG_CHECK_CON (0x10006000+0x4F0) */
  2057. #define APMIXEDSYS_BUSY_MASK_REQ_0_LSB (1U << 0) /* 5b */
  2058. #define APMIXEDSYS_BUSY_MASK_REQ_1_LSB (1U << 8) /* 5b */
  2059. #define APMIXEDSYS_BUSY_MASK_REQ_2_LSB (1U << 16) /* 5b */
  2060. #define AUDIOSYS_BUSY_MASK_REQ_0_LSB (1U << 24) /* 1b */
  2061. #define AUDIOSYS_BUSY_MASK_REQ_1_LSB (1U << 25) /* 1b */
  2062. #define AUDIOSYS_BUSY_MASK_REQ_2_LSB (1U << 26) /* 1b */
  2063. #define SSUSB_BUSY_MASK_REQ_0_LSB (1U << 27) /* 1b */
  2064. #define SSUSB_BUSY_MASK_REQ_1_LSB (1U << 28) /* 1b */
  2065. #define SSUSB_BUSY_MASK_REQ_2_LSB (1U << 29) /* 1b */
  2066. /* SPM_SRC_RDY_STA (0x10006000+0x4F4) */
  2067. #define SPM_INFRA_INTERNAL_ACK_LSB (1U << 0) /* 1b */
  2068. #define SPM_VRF18_INTERNAL_ACK_LSB (1U << 1) /* 1b */
  2069. /* SPM_DVS_DFS_LEVEL (0x10006000+0x4F8) */
  2070. #define SPM_DFS_LEVEL_LSB (1U << 0) /* 16b */
  2071. #define SPM_DVS_LEVEL_LSB (1U << 16) /* 16b */
  2072. /* SPM_FORCE_DVFS (0x10006000+0x4FC) */
  2073. #define FORCE_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  2074. /* SRCLKEN_RC_CFG (0x10006000+0x500) */
  2075. #define SRCLKEN_RC_CFG_LSB (1U << 0) /* 32b */
  2076. /* RC_CENTRAL_CFG1 (0x10006000+0x504) */
  2077. #define RC_CENTRAL_CFG1_LSB (1U << 0) /* 32b */
  2078. /* RC_CENTRAL_CFG2 (0x10006000+0x508) */
  2079. #define RC_CENTRAL_CFG2_LSB (1U << 0) /* 32b */
  2080. /* RC_CMD_ARB_CFG (0x10006000+0x50C) */
  2081. #define RC_CMD_ARB_CFG_LSB (1U << 0) /* 32b */
  2082. /* RC_PMIC_RCEN_ADDR (0x10006000+0x510) */
  2083. #define RC_PMIC_RCEN_ADDR_LSB (1U << 0) /* 16b */
  2084. #define RC_PMIC_RCEN_RESERVE_LSB (1U << 16) /* 16b */
  2085. /* RC_PMIC_RCEN_SET_CLR_ADDR (0x10006000+0x514) */
  2086. #define RC_PMIC_RCEN_SET_ADDR_LSB (1U << 0) /* 16b */
  2087. #define RC_PMIC_RCEN_CLR_ADDR_LSB (1U << 16) /* 16b */
  2088. /* RC_DCXO_FPM_CFG (0x10006000+0x518) */
  2089. #define RC_DCXO_FPM_CFG_LSB (1U << 0) /* 32b */
  2090. /* RC_CENTRAL_CFG3 (0x10006000+0x51C) */
  2091. #define RC_CENTRAL_CFG3_LSB (1U << 0) /* 32b */
  2092. /* RC_M00_SRCLKEN_CFG (0x10006000+0x520) */
  2093. #define RC_M00_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2094. #define RC_SW_SRCLKEN_RC (1U << 3) /* 1b */
  2095. #define RC_SW_SRCLKEN_FPM (1U << 4) /* 1b */
  2096. /* RC_M01_SRCLKEN_CFG (0x10006000+0x524) */
  2097. #define RC_M01_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2098. /* RC_M02_SRCLKEN_CFG (0x10006000+0x528) */
  2099. #define RC_M02_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2100. /* RC_M03_SRCLKEN_CFG (0x10006000+0x52C) */
  2101. #define RC_M03_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2102. /* RC_M04_SRCLKEN_CFG (0x10006000+0x530) */
  2103. #define RC_M04_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2104. /* RC_M05_SRCLKEN_CFG (0x10006000+0x534) */
  2105. #define RC_M05_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2106. /* RC_M06_SRCLKEN_CFG (0x10006000+0x538) */
  2107. #define RC_M06_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2108. /* RC_M07_SRCLKEN_CFG (0x10006000+0x53C) */
  2109. #define RC_M07_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2110. /* RC_M08_SRCLKEN_CFG (0x10006000+0x540) */
  2111. #define RC_M08_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2112. /* RC_M09_SRCLKEN_CFG (0x10006000+0x544) */
  2113. #define RC_M09_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2114. /* RC_M10_SRCLKEN_CFG (0x10006000+0x548) */
  2115. #define RC_M10_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2116. /* RC_M11_SRCLKEN_CFG (0x10006000+0x54C) */
  2117. #define RC_M11_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2118. /* RC_M12_SRCLKEN_CFG (0x10006000+0x550) */
  2119. #define RC_M12_SRCLKEN_CFG_LSB (1U << 0) /* 32b */
  2120. /* RC_SRCLKEN_SW_CON_CFG (0x10006000+0x554) */
  2121. #define RC_SRCLKEN_SW_CON_CFG_LSB (1U << 0) /* 32b */
  2122. /* RC_CENTRAL_CFG4 (0x10006000+0x558) */
  2123. #define RC_CENTRAL_CFG4_LSB (1U << 0) /* 32b */
  2124. /* RC_PROTOCOL_CHK_CFG (0x10006000+0x560) */
  2125. #define RC_PROTOCOL_CHK_CFG_LSB (1U << 0) /* 32b */
  2126. /* RC_DEBUG_CFG (0x10006000+0x564) */
  2127. #define RC_DEBUG_CFG_LSB (1U << 0) /* 32b */
  2128. /* RC_MISC_0 (0x10006000+0x5B4) */
  2129. #define SRCCLKENO_LSB (1U << 0) /* 2b */
  2130. #define PCM_SRCCLKENO_LSB (1U << 3) /* 2b */
  2131. #define RC_VREQ_LSB (1U << 5) /* 1b */
  2132. #define RC_SPM_SRCCLKENO_0_ACK_LSB (1U << 6) /* 1b */
  2133. /* RC_SPM_CTRL (0x10006000+0x5B8) */
  2134. #define SPM_AP_26M_RDY_LSB (1U << 0) /* 1b */
  2135. #define KEEP_RC_SPI_ACTIVE_LSB (1U << 1) /* 1b */
  2136. #define SPM2RC_DMY_CTRL_LSB (1U << 2) /* 6b */
  2137. /* SUBSYS_INTF_CFG (0x10006000+0x5BC) */
  2138. #define SRCLKEN_FPM_MASK_B_LSB (1U << 0) /* 13b */
  2139. #define SRCLKEN_BBLPM_MASK_B_LSB (1U << 16) /* 13b */
  2140. /* PCM_WDT_LATCH_25 (0x10006000+0x5C0) */
  2141. #define PCM_WDT_LATCH_25_LSB (1U << 0) /* 32b */
  2142. /* PCM_WDT_LATCH_26 (0x10006000+0x5C4) */
  2143. #define PCM_WDT_LATCH_26_LSB (1U << 0) /* 32b */
  2144. /* PCM_WDT_LATCH_27 (0x10006000+0x5C8) */
  2145. #define PCM_WDT_LATCH_27_LSB (1U << 0) /* 32b */
  2146. /* PCM_WDT_LATCH_28 (0x10006000+0x5CC) */
  2147. #define PCM_WDT_LATCH_28_LSB (1U << 0) /* 32b */
  2148. /* PCM_WDT_LATCH_29 (0x10006000+0x5D0) */
  2149. #define PCM_WDT_LATCH_29_LSB (1U << 0) /* 32b */
  2150. /* PCM_WDT_LATCH_30 (0x10006000+0x5D4) */
  2151. #define PCM_WDT_LATCH_30_LSB (1U << 0) /* 32b */
  2152. /* PCM_WDT_LATCH_31 (0x10006000+0x5D8) */
  2153. #define PCM_WDT_LATCH_31_LSB (1U << 0) /* 32b */
  2154. /* PCM_WDT_LATCH_32 (0x10006000+0x5DC) */
  2155. #define PCM_WDT_LATCH_32_LSB (1U << 0) /* 32b */
  2156. /* PCM_WDT_LATCH_33 (0x10006000+0x5E0) */
  2157. #define PCM_WDT_LATCH_33_LSB (1U << 0) /* 32b */
  2158. /* PCM_WDT_LATCH_34 (0x10006000+0x5E4) */
  2159. #define PCM_WDT_LATCH_34_LSB (1U << 0) /* 32b */
  2160. /* PCM_WDT_LATCH_35 (0x10006000+0x5EC) */
  2161. #define PCM_WDT_LATCH_35_LSB (1U << 0) /* 32b */
  2162. /* PCM_WDT_LATCH_36 (0x10006000+0x5F0) */
  2163. #define PCM_WDT_LATCH_36_LSB (1U << 0) /* 32b */
  2164. /* PCM_WDT_LATCH_37 (0x10006000+0x5F4) */
  2165. #define PCM_WDT_LATCH_37_LSB (1U << 0) /* 32b */
  2166. /* PCM_WDT_LATCH_38 (0x10006000+0x5F8) */
  2167. #define PCM_WDT_LATCH_38_LSB (1U << 0) /* 32b */
  2168. /* PCM_WDT_LATCH_39 (0x10006000+0x5FC) */
  2169. #define PCM_WDT_LATCH_39_LSB (1U << 0) /* 32b */
  2170. /* SPM_SW_FLAG_0 (0x10006000+0x600) */
  2171. #define SPM_SW_FLAG_LSB (1U << 0) /* 32b */
  2172. /* SPM_SW_DEBUG_0 (0x10006000+0x604) */
  2173. #define SPM_SW_DEBUG_0_LSB (1U << 0) /* 32b */
  2174. /* SPM_SW_FLAG_1 (0x10006000+0x608) */
  2175. #define SPM_SW_FLAG_1_LSB (1U << 0) /* 32b */
  2176. /* SPM_SW_DEBUG_1 (0x10006000+0x60C) */
  2177. #define SPM_SW_DEBUG_1_LSB (1U << 0) /* 32b */
  2178. /* SPM_SW_RSV_0 (0x10006000+0x610) */
  2179. #define SPM_SW_RSV_0_LSB (1U << 0) /* 32b */
  2180. /* SPM_SW_RSV_1 (0x10006000+0x614) */
  2181. #define SPM_SW_RSV_1_LSB (1U << 0) /* 32b */
  2182. /* SPM_SW_RSV_2 (0x10006000+0x618) */
  2183. #define SPM_SW_RSV_2_LSB (1U << 0) /* 32b */
  2184. /* SPM_SW_RSV_3 (0x10006000+0x61C) */
  2185. #define SPM_SW_RSV_3_LSB (1U << 0) /* 32b */
  2186. /* SPM_SW_RSV_4 (0x10006000+0x620) */
  2187. #define SPM_SW_RSV_4_LSB (1U << 0) /* 32b */
  2188. /* SPM_SW_RSV_5 (0x10006000+0x624) */
  2189. #define SPM_SW_RSV_5_LSB (1U << 0) /* 32b */
  2190. /* SPM_SW_RSV_6 (0x10006000+0x628) */
  2191. #define SPM_SW_RSV_6_LSB (1U << 0) /* 32b */
  2192. /* SPM_SW_RSV_7 (0x10006000+0x62C) */
  2193. #define SPM_SW_RSV_7_LSB (1U << 0) /* 32b */
  2194. /* SPM_SW_RSV_8 (0x10006000+0x630) */
  2195. #define SPM_SW_RSV_8_LSB (1U << 0) /* 32b */
  2196. /* SPM_BK_WAKE_EVENT (0x10006000+0x634) */
  2197. #define SPM_BK_WAKE_EVENT_LSB (1U << 0) /* 32b */
  2198. /* SPM_BK_VTCXO_DUR (0x10006000+0x638) */
  2199. #define SPM_BK_VTCXO_DUR_LSB (1U << 0) /* 32b */
  2200. /* SPM_BK_WAKE_MISC (0x10006000+0x63C) */
  2201. #define SPM_BK_WAKE_MISC_LSB (1U << 0) /* 32b */
  2202. /* SPM_BK_PCM_TIMER (0x10006000+0x640) */
  2203. #define SPM_BK_PCM_TIMER_LSB (1U << 0) /* 32b */
  2204. /* SPM_RSV_CON_0 (0x10006000+0x650) */
  2205. #define SPM_RSV_CON_0_LSB (1U << 0) /* 32b */
  2206. /* SPM_RSV_CON_1 (0x10006000+0x654) */
  2207. #define SPM_RSV_CON_1_LSB (1U << 0) /* 32b */
  2208. /* SPM_RSV_STA_0 (0x10006000+0x658) */
  2209. #define SPM_RSV_STA_0_LSB (1U << 0) /* 32b */
  2210. /* SPM_RSV_STA_1 (0x10006000+0x65C) */
  2211. #define SPM_RSV_STA_1_LSB (1U << 0) /* 32b */
  2212. /* SPM_SPARE_CON (0x10006000+0x660) */
  2213. #define SPM_SPARE_CON_LSB (1U << 0) /* 32b */
  2214. /* SPM_SPARE_CON_SET (0x10006000+0x664) */
  2215. #define SPM_SPARE_CON_SET_LSB (1U << 0) /* 32b */
  2216. /* SPM_SPARE_CON_CLR (0x10006000+0x668) */
  2217. #define SPM_SPARE_CON_CLR_LSB (1U << 0) /* 32b */
  2218. /* SPM_CROSS_WAKE_M00_REQ (0x10006000+0x66C) */
  2219. #define SPM_CROSS_WAKE_M00_REQ_LSB (1U << 0) /* 5b */
  2220. #define SPM_CROSS_WAKE_M00_CHK_LSB (1U << 8) /* 5b */
  2221. /* SPM_CROSS_WAKE_M01_REQ (0x10006000+0x670) */
  2222. #define SPM_CROSS_WAKE_M01_REQ_LSB (1U << 0) /* 5b */
  2223. #define SPM_CROSS_WAKE_M01_CHK_LSB (1U << 8) /* 5b */
  2224. /* SPM_CROSS_WAKE_M02_REQ (0x10006000+0x674) */
  2225. #define SPM_CROSS_WAKE_M02_REQ_LSB (1U << 0) /* 5b */
  2226. #define SPM_CROSS_WAKE_M02_CHK_LSB (1U << 8) /* 5b */
  2227. /* SPM_CROSS_WAKE_M03_REQ (0x10006000+0x678) */
  2228. #define SPM_CROSS_WAKE_M03_REQ_LSB (1U << 0) /* 5b */
  2229. #define SPM_CROSS_WAKE_M03_CHK_LSB (1U << 8) /* 5b */
  2230. /* SCP_VCORE_LEVEL (0x10006000+0x67C) */
  2231. #define SCP_VCORE_LEVEL_LSB (1U << 0) /* 16b */
  2232. /* SC_MM_CK_SEL_CON (0x10006000+0x680) */
  2233. #define SC_MM_CK_SEL_LSB (1U << 0) /* 4b */
  2234. #define SC_MM_CK_SEL_EN_LSB (1U << 4) /* 1b */
  2235. /* SPARE_ACK_MASK (0x10006000+0x684) */
  2236. #define SPARE_ACK_MASK_B_LSB (1U << 0) /* 32b */
  2237. /* SPM_CROSS_WAKE_M04_REQ (0x10006000+0x688) */
  2238. #define SPM_CROSS_WAKE_M04_REQ_LSB (1U << 0) /* 5b */
  2239. #define SPM_CROSS_WAKE_M04_CHK_LSB (1U << 8) /* 5b */
  2240. /* SPM_DV_CON_0 (0x10006000+0x68C) */
  2241. #define SPM_DV_CON_0_LSB (1U << 0) /* 32b */
  2242. /* SPM_DV_CON_1 (0x10006000+0x690) */
  2243. #define SPM_DV_CON_1_LSB (1U << 0) /* 32b */
  2244. /* SPM_DV_STA (0x10006000+0x694) */
  2245. #define SPM_DV_STA_LSB (1U << 0) /* 32b */
  2246. /* CONN_XOWCN_DEBUG_EN (0x10006000+0x698) */
  2247. #define CONN_XOWCN_DEBUG_EN_LSB (1U << 0) /* 1b */
  2248. /* SPM_SEMA_M0 (0x10006000+0x69C) */
  2249. #define SPM_SEMA_M0_LSB (1U << 0) /* 8b */
  2250. /* SPM_SEMA_M1 (0x10006000+0x6A0) */
  2251. #define SPM_SEMA_M1_LSB (1U << 0) /* 8b */
  2252. /* SPM_SEMA_M2 (0x10006000+0x6A4) */
  2253. #define SPM_SEMA_M2_LSB (1U << 0) /* 8b */
  2254. /* SPM_SEMA_M3 (0x10006000+0x6A8) */
  2255. #define SPM_SEMA_M3_LSB (1U << 0) /* 8b */
  2256. /* SPM_SEMA_M4 (0x10006000+0x6AC) */
  2257. #define SPM_SEMA_M4_LSB (1U << 0) /* 8b */
  2258. /* SPM_SEMA_M5 (0x10006000+0x6B0) */
  2259. #define SPM_SEMA_M5_LSB (1U << 0) /* 8b */
  2260. /* SPM_SEMA_M6 (0x10006000+0x6B4) */
  2261. #define SPM_SEMA_M6_LSB (1U << 0) /* 8b */
  2262. /* SPM_SEMA_M7 (0x10006000+0x6B8) */
  2263. #define SPM_SEMA_M7_LSB (1U << 0) /* 8b */
  2264. /* SPM2ADSP_MAILBOX (0x10006000+0x6BC) */
  2265. #define SPM2ADSP_MAILBOX_LSB (1U << 0) /* 32b */
  2266. /* ADSP2SPM_MAILBOX (0x10006000+0x6C0) */
  2267. #define ADSP2SPM_MAILBOX_LSB (1U << 0) /* 32b */
  2268. /* SPM_ADSP_IRQ (0x10006000+0x6C4) */
  2269. #define SC_SPM2ADSP_WAKEUP_LSB (1U << 0) /* 1b */
  2270. #define SPM_ADSP_IRQ_SC_ADSP2SPM_WAKEUP_LSB (1U << 4) /* 1b */
  2271. /* SPM_MD32_IRQ (0x10006000+0x6C8) */
  2272. #define SC_SPM2SSPM_WAKEUP_LSB (1U << 0) /* 4b */
  2273. #define SPM_MD32_IRQ_SC_SSPM2SPM_WAKEUP_LSB (1U << 4) /* 4b */
  2274. /* SPM2PMCU_MAILBOX_0 (0x10006000+0x6CC) */
  2275. #define SPM2PMCU_MAILBOX_0_LSB (1U << 0) /* 32b */
  2276. /* SPM2PMCU_MAILBOX_1 (0x10006000+0x6D0) */
  2277. #define SPM2PMCU_MAILBOX_1_LSB (1U << 0) /* 32b */
  2278. /* SPM2PMCU_MAILBOX_2 (0x10006000+0x6D4) */
  2279. #define SPM2PMCU_MAILBOX_2_LSB (1U << 0) /* 32b */
  2280. /* SPM2PMCU_MAILBOX_3 (0x10006000+0x6D8) */
  2281. #define SPM2PMCU_MAILBOX_3_LSB (1U << 0) /* 32b */
  2282. /* PMCU2SPM_MAILBOX_0 (0x10006000+0x6DC) */
  2283. #define PMCU2SPM_MAILBOX_0_LSB (1U << 0) /* 32b */
  2284. /* PMCU2SPM_MAILBOX_1 (0x10006000+0x6E0) */
  2285. #define PMCU2SPM_MAILBOX_1_LSB (1U << 0) /* 32b */
  2286. /* PMCU2SPM_MAILBOX_2 (0x10006000+0x6E4) */
  2287. #define PMCU2SPM_MAILBOX_2_LSB (1U << 0) /* 32b */
  2288. /* PMCU2SPM_MAILBOX_3 (0x10006000+0x6E8) */
  2289. #define PMCU2SPM_MAILBOX_3_LSB (1U << 0) /* 32b */
  2290. /* UFS_PSRI_SW (0x10006000+0x6EC) */
  2291. #define UFS_PSRI_SW_LSB (1U << 0) /* 1b */
  2292. /* UFS_PSRI_SW_SET (0x10006000+0x6F0) */
  2293. #define UFS_PSRI_SW_SET_LSB (1U << 0) /* 1b */
  2294. /* UFS_PSRI_SW_CLR (0x10006000+0x6F4) */
  2295. #define UFS_PSRI_SW_CLR_LSB (1U << 0) /* 1b */
  2296. /* SPM_AP_SEMA (0x10006000+0x6F8) */
  2297. #define SPM_AP_SEMA_LSB (1U << 0) /* 1b */
  2298. /* SPM_SPM_SEMA (0x10006000+0x6FC) */
  2299. #define SPM_SPM_SEMA_LSB (1U << 0) /* 1b */
  2300. /* SPM_DVFS_CON (0x10006000+0x700) */
  2301. #define SPM_DVFS_CON_LSB (1U << 0) /* 32b */
  2302. /* SPM_DVFS_CON_STA (0x10006000+0x704) */
  2303. #define SPM_DVFS_CON_STA_LSB (1U << 0) /* 32b */
  2304. /* SPM_PMIC_SPMI_CON (0x10006000+0x708) */
  2305. #define SPM_PMIC_SPMI_CMD_LSB (1U << 0) /* 2b */
  2306. #define SPM_PMIC_SPMI_SLAVEID_LSB (1U << 2) /* 4b */
  2307. #define SPM_PMIC_SPMI_PMIFID_LSB (1U << 6) /* 1b */
  2308. #define SPM_PMIC_SPMI_DBCNT_LSB (1U << 7) /* 1b */
  2309. /* SPM_DVFS_CMD0 (0x10006000+0x710) */
  2310. #define SPM_DVFS_CMD0_LSB (1U << 0) /* 32b */
  2311. /* SPM_DVFS_CMD1 (0x10006000+0x714) */
  2312. #define SPM_DVFS_CMD1_LSB (1U << 0) /* 32b */
  2313. /* SPM_DVFS_CMD2 (0x10006000+0x718) */
  2314. #define SPM_DVFS_CMD2_LSB (1U << 0) /* 32b */
  2315. /* SPM_DVFS_CMD3 (0x10006000+0x71C) */
  2316. #define SPM_DVFS_CMD3_LSB (1U << 0) /* 32b */
  2317. /* SPM_DVFS_CMD4 (0x10006000+0x720) */
  2318. #define SPM_DVFS_CMD4_LSB (1U << 0) /* 32b */
  2319. /* SPM_DVFS_CMD5 (0x10006000+0x724) */
  2320. #define SPM_DVFS_CMD5_LSB (1U << 0) /* 32b */
  2321. /* SPM_DVFS_CMD6 (0x10006000+0x728) */
  2322. #define SPM_DVFS_CMD6_LSB (1U << 0) /* 32b */
  2323. /* SPM_DVFS_CMD7 (0x10006000+0x72C) */
  2324. #define SPM_DVFS_CMD7_LSB (1U << 0) /* 32b */
  2325. /* SPM_DVFS_CMD8 (0x10006000+0x730) */
  2326. #define SPM_DVFS_CMD8_LSB (1U << 0) /* 32b */
  2327. /* SPM_DVFS_CMD9 (0x10006000+0x734) */
  2328. #define SPM_DVFS_CMD9_LSB (1U << 0) /* 32b */
  2329. /* SPM_DVFS_CMD10 (0x10006000+0x738) */
  2330. #define SPM_DVFS_CMD10_LSB (1U << 0) /* 32b */
  2331. /* SPM_DVFS_CMD11 (0x10006000+0x73C) */
  2332. #define SPM_DVFS_CMD11_LSB (1U << 0) /* 32b */
  2333. /* SPM_DVFS_CMD12 (0x10006000+0x740) */
  2334. #define SPM_DVFS_CMD12_LSB (1U << 0) /* 32b */
  2335. /* SPM_DVFS_CMD13 (0x10006000+0x744) */
  2336. #define SPM_DVFS_CMD13_LSB (1U << 0) /* 32b */
  2337. /* SPM_DVFS_CMD14 (0x10006000+0x748) */
  2338. #define SPM_DVFS_CMD14_LSB (1U << 0) /* 32b */
  2339. /* SPM_DVFS_CMD15 (0x10006000+0x74C) */
  2340. #define SPM_DVFS_CMD15_LSB (1U << 0) /* 32b */
  2341. /* SPM_DVFS_CMD16 (0x10006000+0x750) */
  2342. #define SPM_DVFS_CMD16_LSB (1U << 0) /* 32b */
  2343. /* SPM_DVFS_CMD17 (0x10006000+0x754) */
  2344. #define SPM_DVFS_CMD17_LSB (1U << 0) /* 32b */
  2345. /* SPM_DVFS_CMD18 (0x10006000+0x758) */
  2346. #define SPM_DVFS_CMD18_LSB (1U << 0) /* 32b */
  2347. /* SPM_DVFS_CMD19 (0x10006000+0x75C) */
  2348. #define SPM_DVFS_CMD19_LSB (1U << 0) /* 32b */
  2349. /* SPM_DVFS_CMD20 (0x10006000+0x760) */
  2350. #define SPM_DVFS_CMD20_LSB (1U << 0) /* 32b */
  2351. /* SPM_DVFS_CMD21 (0x10006000+0x764) */
  2352. #define SPM_DVFS_CMD21_LSB (1U << 0) /* 32b */
  2353. /* SPM_DVFS_CMD22 (0x10006000+0x768) */
  2354. #define SPM_DVFS_CMD22_LSB (1U << 0) /* 32b */
  2355. /* SPM_DVFS_CMD23 (0x10006000+0x76C) */
  2356. #define SPM_DVFS_CMD23_LSB (1U << 0) /* 32b */
  2357. /* SYS_TIMER_VALUE_L (0x10006000+0x770) */
  2358. #define SYS_TIMER_VALUE_L_LSB (1U << 0) /* 32b */
  2359. /* SYS_TIMER_VALUE_H (0x10006000+0x774) */
  2360. #define SYS_TIMER_VALUE_H_LSB (1U << 0) /* 32b */
  2361. /* SYS_TIMER_START_L (0x10006000+0x778) */
  2362. #define SYS_TIMER_START_L_LSB (1U << 0) /* 32b */
  2363. /* SYS_TIMER_START_H (0x10006000+0x77C) */
  2364. #define SYS_TIMER_START_H_LSB (1U << 0) /* 32b */
  2365. /* SYS_TIMER_LATCH_L_00 (0x10006000+0x780) */
  2366. #define SYS_TIMER_LATCH_L_00_LSB (1U << 0) /* 32b */
  2367. /* SYS_TIMER_LATCH_H_00 (0x10006000+0x784) */
  2368. #define SYS_TIMER_LATCH_H_00_LSB (1U << 0) /* 32b */
  2369. /* SYS_TIMER_LATCH_L_01 (0x10006000+0x788) */
  2370. #define SYS_TIMER_LATCH_L_01_LSB (1U << 0) /* 32b */
  2371. /* SYS_TIMER_LATCH_H_01 (0x10006000+0x78C) */
  2372. #define SYS_TIMER_LATCH_H_01_LSB (1U << 0) /* 32b */
  2373. /* SYS_TIMER_LATCH_L_02 (0x10006000+0x790) */
  2374. #define SYS_TIMER_LATCH_L_02_LSB (1U << 0) /* 32b */
  2375. /* SYS_TIMER_LATCH_H_02 (0x10006000+0x794) */
  2376. #define SYS_TIMER_LATCH_H_02_LSB (1U << 0) /* 32b */
  2377. /* SYS_TIMER_LATCH_L_03 (0x10006000+0x798) */
  2378. #define SYS_TIMER_LATCH_L_03_LSB (1U << 0) /* 32b */
  2379. /* SYS_TIMER_LATCH_H_03 (0x10006000+0x79C) */
  2380. #define SYS_TIMER_LATCH_H_03_LSB (1U << 0) /* 32b */
  2381. /* SYS_TIMER_LATCH_L_04 (0x10006000+0x7A0) */
  2382. #define SYS_TIMER_LATCH_L_04_LSB (1U << 0) /* 32b */
  2383. /* SYS_TIMER_LATCH_H_04 (0x10006000+0x7A4) */
  2384. #define SYS_TIMER_LATCH_H_04_LSB (1U << 0) /* 32b */
  2385. /* SYS_TIMER_LATCH_L_05 (0x10006000+0x7A8) */
  2386. #define SYS_TIMER_LATCH_L_05_LSB (1U << 0) /* 32b */
  2387. /* SYS_TIMER_LATCH_H_05 (0x10006000+0x7AC) */
  2388. #define SYS_TIMER_LATCH_H_05_LSB (1U << 0) /* 32b */
  2389. /* SYS_TIMER_LATCH_L_06 (0x10006000+0x7B0) */
  2390. #define SYS_TIMER_LATCH_L_06_LSB (1U << 0) /* 32b */
  2391. /* SYS_TIMER_LATCH_H_06 (0x10006000+0x7B4) */
  2392. #define SYS_TIMER_LATCH_H_06_LSB (1U << 0) /* 32b */
  2393. /* SYS_TIMER_LATCH_L_07 (0x10006000+0x7B8) */
  2394. #define SYS_TIMER_LATCH_L_07_LSB (1U << 0) /* 32b */
  2395. /* SYS_TIMER_LATCH_H_07 (0x10006000+0x7BC) */
  2396. #define SYS_TIMER_LATCH_H_07_LSB (1U << 0) /* 32b */
  2397. /* SYS_TIMER_LATCH_L_08 (0x10006000+0x7C0) */
  2398. #define SYS_TIMER_LATCH_L_08_LSB (1U << 0) /* 32b */
  2399. /* SYS_TIMER_LATCH_H_08 (0x10006000+0x7C4) */
  2400. #define SYS_TIMER_LATCH_H_08_LSB (1U << 0) /* 32b */
  2401. /* SYS_TIMER_LATCH_L_09 (0x10006000+0x7C8) */
  2402. #define SYS_TIMER_LATCH_L_09_LSB (1U << 0) /* 32b */
  2403. /* SYS_TIMER_LATCH_H_09 (0x10006000+0x7CC) */
  2404. #define SYS_TIMER_LATCH_H_09_LSB (1U << 0) /* 32b */
  2405. /* SYS_TIMER_LATCH_L_10 (0x10006000+0x7D0) */
  2406. #define SYS_TIMER_LATCH_L_10_LSB (1U << 0) /* 32b */
  2407. /* SYS_TIMER_LATCH_H_10 (0x10006000+0x7D4) */
  2408. #define SYS_TIMER_LATCH_H_10_LSB (1U << 0) /* 32b */
  2409. /* SYS_TIMER_LATCH_L_11 (0x10006000+0x7D8) */
  2410. #define SYS_TIMER_LATCH_L_11_LSB (1U << 0) /* 32b */
  2411. /* SYS_TIMER_LATCH_H_11 (0x10006000+0x7DC) */
  2412. #define SYS_TIMER_LATCH_H_11_LSB (1U << 0) /* 32b */
  2413. /* SYS_TIMER_LATCH_L_12 (0x10006000+0x7E0) */
  2414. #define SYS_TIMER_LATCH_L_12_LSB (1U << 0) /* 32b */
  2415. /* SYS_TIMER_LATCH_H_12 (0x10006000+0x7E4) */
  2416. #define SYS_TIMER_LATCH_H_12_LSB (1U << 0) /* 32b */
  2417. /* SYS_TIMER_LATCH_L_13 (0x10006000+0x7E8) */
  2418. #define SYS_TIMER_LATCH_L_13_LSB (1U << 0) /* 32b */
  2419. /* SYS_TIMER_LATCH_H_13 (0x10006000+0x7EC) */
  2420. #define SYS_TIMER_LATCH_H_13_LSB (1U << 0) /* 32b */
  2421. /* SYS_TIMER_LATCH_L_14 (0x10006000+0x7F0) */
  2422. #define SYS_TIMER_LATCH_L_14_LSB (1U << 0) /* 32b */
  2423. /* SYS_TIMER_LATCH_H_14 (0x10006000+0x7F4) */
  2424. #define SYS_TIMER_LATCH_H_14_LSB (1U << 0) /* 32b */
  2425. /* SYS_TIMER_LATCH_L_15 (0x10006000+0x7F8) */
  2426. #define SYS_TIMER_LATCH_L_15_LSB (1U << 0) /* 32b */
  2427. /* SYS_TIMER_LATCH_H_15 (0x10006000+0x7FC) */
  2428. #define SYS_TIMER_LATCH_H_15_LSB (1U << 0) /* 32b */
  2429. /* PCM_WDT_LATCH_0 (0x10006000+0x800) */
  2430. #define PCM_WDT_LATCH_0_LSB (1U << 0) /* 32b */
  2431. /* PCM_WDT_LATCH_1 (0x10006000+0x804) */
  2432. #define PCM_WDT_LATCH_1_LSB (1U << 0) /* 32b */
  2433. /* PCM_WDT_LATCH_2 (0x10006000+0x808) */
  2434. #define PCM_WDT_LATCH_2_LSB (1U << 0) /* 32b */
  2435. /* PCM_WDT_LATCH_3 (0x10006000+0x80C) */
  2436. #define PCM_WDT_LATCH_3_LSB (1U << 0) /* 32b */
  2437. /* PCM_WDT_LATCH_4 (0x10006000+0x810) */
  2438. #define PCM_WDT_LATCH_4_LSB (1U << 0) /* 32b */
  2439. /* PCM_WDT_LATCH_5 (0x10006000+0x814) */
  2440. #define PCM_WDT_LATCH_5_LSB (1U << 0) /* 32b */
  2441. /* PCM_WDT_LATCH_6 (0x10006000+0x818) */
  2442. #define PCM_WDT_LATCH_6_LSB (1U << 0) /* 32b */
  2443. /* PCM_WDT_LATCH_7 (0x10006000+0x81C) */
  2444. #define PCM_WDT_LATCH_7_LSB (1U << 0) /* 32b */
  2445. /* PCM_WDT_LATCH_8 (0x10006000+0x820) */
  2446. #define PCM_WDT_LATCH_8_LSB (1U << 0) /* 32b */
  2447. /* PCM_WDT_LATCH_9 (0x10006000+0x824) */
  2448. #define PCM_WDT_LATCH_9_LSB (1U << 0) /* 32b */
  2449. /* PCM_WDT_LATCH_10 (0x10006000+0x828) */
  2450. #define PCM_WDT_LATCH_10_LSB (1U << 0) /* 32b */
  2451. /* PCM_WDT_LATCH_11 (0x10006000+0x82C) */
  2452. #define PCM_WDT_LATCH_11_LSB (1U << 0) /* 32b */
  2453. /* PCM_WDT_LATCH_12 (0x10006000+0x830) */
  2454. #define PCM_WDT_LATCH_12_LSB (1U << 0) /* 32b */
  2455. /* PCM_WDT_LATCH_13 (0x10006000+0x834) */
  2456. #define PCM_WDT_LATCH_13_LSB (1U << 0) /* 32b */
  2457. /* PCM_WDT_LATCH_14 (0x10006000+0x838) */
  2458. #define PCM_WDT_LATCH_14_LSB (1U << 0) /* 32b */
  2459. /* PCM_WDT_LATCH_15 (0x10006000+0x83C) */
  2460. #define PCM_WDT_LATCH_15_LSB (1U << 0) /* 32b */
  2461. /* PCM_WDT_LATCH_16 (0x10006000+0x840) */
  2462. #define PCM_WDT_LATCH_16_LSB (1U << 0) /* 32b */
  2463. /* PCM_WDT_LATCH_17 (0x10006000+0x844) */
  2464. #define PCM_WDT_LATCH_17_LSB (1U << 0) /* 32b */
  2465. /* PCM_WDT_LATCH_18 (0x10006000+0x848) */
  2466. #define PCM_WDT_LATCH_18_LSB (1U << 0) /* 32b */
  2467. /* PCM_WDT_LATCH_SPARE_0 (0x10006000+0x84C) */
  2468. #define PCM_WDT_LATCH_SPARE_0_LSB (1U << 0) /* 32b */
  2469. /* PCM_WDT_LATCH_SPARE_1 (0x10006000+0x850) */
  2470. #define PCM_WDT_LATCH_SPARE_1_LSB (1U << 0) /* 32b */
  2471. /* PCM_WDT_LATCH_SPARE_2 (0x10006000+0x854) */
  2472. #define PCM_WDT_LATCH_SPARE_2_LSB (1U << 0) /* 32b */
  2473. /* PCM_WDT_LATCH_CONN_0 (0x10006000+0x870) */
  2474. #define PCM_WDT_LATCH_CONN_0_LSB (1U << 0) /* 32b */
  2475. /* PCM_WDT_LATCH_CONN_1 (0x10006000+0x874) */
  2476. #define PCM_WDT_LATCH_CONN_1_LSB (1U << 0) /* 32b */
  2477. /* PCM_WDT_LATCH_CONN_2 (0x10006000+0x878) */
  2478. #define PCM_WDT_LATCH_CONN_2_LSB (1U << 0) /* 32b */
  2479. /* DRAMC_GATING_ERR_LATCH_CH0_0 (0x10006000+0x8A0) */
  2480. #define DRAMC_GATING_ERR_LATCH_CH0_0_LSB (1U << 0) /* 32b */
  2481. /* DRAMC_GATING_ERR_LATCH_CH0_1 (0x10006000+0x8A4) */
  2482. #define DRAMC_GATING_ERR_LATCH_CH0_1_LSB (1U << 0) /* 32b */
  2483. /* DRAMC_GATING_ERR_LATCH_CH0_2 (0x10006000+0x8A8) */
  2484. #define DRAMC_GATING_ERR_LATCH_CH0_2_LSB (1U << 0) /* 32b */
  2485. /* DRAMC_GATING_ERR_LATCH_CH0_3 (0x10006000+0x8AC) */
  2486. #define DRAMC_GATING_ERR_LATCH_CH0_3_LSB (1U << 0) /* 32b */
  2487. /* DRAMC_GATING_ERR_LATCH_CH0_4 (0x10006000+0x8B0) */
  2488. #define DRAMC_GATING_ERR_LATCH_CH0_4_LSB (1U << 0) /* 32b */
  2489. /* DRAMC_GATING_ERR_LATCH_CH0_5 (0x10006000+0x8B4) */
  2490. #define DRAMC_GATING_ERR_LATCH_CH0_5_LSB (1U << 0) /* 32b */
  2491. /* DRAMC_GATING_ERR_LATCH_CH0_6 (0x10006000+0x8B8) */
  2492. #define DRAMC_GATING_ERR_LATCH_CH0_6_LSB (1U << 0) /* 32b */
  2493. /* DRAMC_GATING_ERR_LATCH_SPARE_0 (0x10006000+0x8F4) */
  2494. #define DRAMC_GATING_ERR_LATCH_SPARE_0_LSB (1U << 0) /* 32b */
  2495. /* SPM_ACK_CHK_CON_0 (0x10006000+0x900) */
  2496. #define SPM_ACK_CHK_SW_EN_0_LSB (1U << 0) /* 1b */
  2497. #define SPM_ACK_CHK_CLR_ALL_0_LSB (1U << 1) /* 1b */
  2498. #define SPM_ACK_CHK_CLR_TIMER_0_LSB (1U << 2) /* 1b */
  2499. #define SPM_ACK_CHK_CLR_IRQ_0_LSB (1U << 3) /* 1b */
  2500. #define SPM_ACK_CHK_STA_EN_0_LSB (1U << 4) /* 1b */
  2501. #define SPM_ACK_CHK_WAKEUP_EN_0_LSB (1U << 5) /* 1b */
  2502. #define SPM_ACK_CHK_WDT_EN_0_LSB (1U << 6) /* 1b */
  2503. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_0_LSB (1U << 7) /* 1b */
  2504. #define SPM_ACK_CHK_HW_EN_0_LSB (1U << 8) /* 1b */
  2505. #define SPM_ACK_CHK_HW_MODE_0_LSB (1U << 9) /* 3b */
  2506. #define SPM_ACK_CHK_FAIL_0_LSB (1U << 15) /* 1b */
  2507. /* SPM_ACK_CHK_PC_0 (0x10006000+0x904) */
  2508. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_0_LSB (1U << 0) /* 16b */
  2509. #define SPM_ACK_CHK_HW_TARG_PC_VAL_0_LSB (1U << 16) /* 16b */
  2510. /* SPM_ACK_CHK_SEL_0 (0x10006000+0x908) */
  2511. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_0_LSB (1U << 0) /* 5b */
  2512. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_0_LSB (1U << 5) /* 3b */
  2513. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_0_LSB (1U << 16) /* 5b */
  2514. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_0_LSB (1U << 21) /* 3b */
  2515. /* SPM_ACK_CHK_TIMER_0 (0x10006000+0x90C) */
  2516. #define SPM_ACK_CHK_TIMER_VAL_0_LSB (1U << 0) /* 16b */
  2517. #define SPM_ACK_CHK_TIMER_0_LSB (1U << 16) /* 16b */
  2518. /* SPM_ACK_CHK_STA_0 (0x10006000+0x910) */
  2519. #define SPM_ACK_CHK_STA_0_LSB (1U << 0) /* 32b */
  2520. /* SPM_ACK_CHK_SWINT_0 (0x10006000+0x914) */
  2521. #define SPM_ACK_CHK_SWINT_EN_0_LSB (1U << 0) /* 32b */
  2522. /* SPM_ACK_CHK_CON_1 (0x10006000+0x920) */
  2523. #define SPM_ACK_CHK_SW_EN_1_LSB (1U << 0) /* 1b */
  2524. #define SPM_ACK_CHK_CLR_ALL_1_LSB (1U << 1) /* 1b */
  2525. #define SPM_ACK_CHK_CLR_TIMER_1_LSB (1U << 2) /* 1b */
  2526. #define SPM_ACK_CHK_CLR_IRQ_1_LSB (1U << 3) /* 1b */
  2527. #define SPM_ACK_CHK_STA_EN_1_LSB (1U << 4) /* 1b */
  2528. #define SPM_ACK_CHK_WAKEUP_EN_1_LSB (1U << 5) /* 1b */
  2529. #define SPM_ACK_CHK_WDT_EN_1_LSB (1U << 6) /* 1b */
  2530. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_1_LSB (1U << 7) /* 1b */
  2531. #define SPM_ACK_CHK_HW_EN_1_LSB (1U << 8) /* 1b */
  2532. #define SPM_ACK_CHK_HW_MODE_1_LSB (1U << 9) /* 3b */
  2533. #define SPM_ACK_CHK_FAIL_1_LSB (1U << 15) /* 1b */
  2534. /* SPM_ACK_CHK_PC_1 (0x10006000+0x924) */
  2535. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_1_LSB (1U << 0) /* 16b */
  2536. #define SPM_ACK_CHK_HW_TARG_PC_VAL_1_LSB (1U << 16) /* 16b */
  2537. /* SPM_ACK_CHK_SEL_1 (0x10006000+0x928) */
  2538. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_1_LSB (1U << 0) /* 5b */
  2539. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_1_LSB (1U << 5) /* 3b */
  2540. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_1_LSB (1U << 16) /* 5b */
  2541. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_1_LSB (1U << 21) /* 3b */
  2542. /* SPM_ACK_CHK_TIMER_1 (0x10006000+0x92C) */
  2543. #define SPM_ACK_CHK_TIMER_VAL_1_LSB (1U << 0) /* 16b */
  2544. #define SPM_ACK_CHK_TIMER_1_LSB (1U << 16) /* 16b */
  2545. /* SPM_ACK_CHK_STA_1 (0x10006000+0x930) */
  2546. #define SPM_ACK_CHK_STA_1_LSB (1U << 0) /* 32b */
  2547. /* SPM_ACK_CHK_SWINT_1 (0x10006000+0x934) */
  2548. #define SPM_ACK_CHK_SWINT_EN_1_LSB (1U << 0) /* 32b */
  2549. /* SPM_ACK_CHK_CON_2 (0x10006000+0x940) */
  2550. #define SPM_ACK_CHK_SW_EN_2_LSB (1U << 0) /* 1b */
  2551. #define SPM_ACK_CHK_CLR_ALL_2_LSB (1U << 1) /* 1b */
  2552. #define SPM_ACK_CHK_CLR_TIMER_2_LSB (1U << 2) /* 1b */
  2553. #define SPM_ACK_CHK_CLR_IRQ_2_LSB (1U << 3) /* 1b */
  2554. #define SPM_ACK_CHK_STA_EN_2_LSB (1U << 4) /* 1b */
  2555. #define SPM_ACK_CHK_WAKEUP_EN_2_LSB (1U << 5) /* 1b */
  2556. #define SPM_ACK_CHK_WDT_EN_2_LSB (1U << 6) /* 1b */
  2557. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_2_LSB (1U << 7) /* 1b */
  2558. #define SPM_ACK_CHK_HW_EN_2_LSB (1U << 8) /* 1b */
  2559. #define SPM_ACK_CHK_HW_MODE_2_LSB (1U << 9) /* 3b */
  2560. #define SPM_ACK_CHK_FAIL_2_LSB (1U << 15) /* 1b */
  2561. /* SPM_ACK_CHK_PC_2 (0x10006000+0x944) */
  2562. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_2_LSB (1U << 0) /* 16b */
  2563. #define SPM_ACK_CHK_HW_TARG_PC_VAL_2_LSB (1U << 16) /* 16b */
  2564. /* SPM_ACK_CHK_SEL_2 (0x10006000+0x948) */
  2565. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_2_LSB (1U << 0) /* 5b */
  2566. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_2_LSB (1U << 5) /* 3b */
  2567. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_2_LSB (1U << 16) /* 5b */
  2568. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_2_LSB (1U << 21) /* 3b */
  2569. /* SPM_ACK_CHK_TIMER_2 (0x10006000+0x94C) */
  2570. #define SPM_ACK_CHK_TIMER_VAL_2_LSB (1U << 0) /* 16b */
  2571. #define SPM_ACK_CHK_TIMER_2_LSB (1U << 16) /* 16b */
  2572. /* SPM_ACK_CHK_STA_2 (0x10006000+0x950) */
  2573. #define SPM_ACK_CHK_STA_2_LSB (1U << 0) /* 32b */
  2574. /* SPM_ACK_CHK_SWINT_2 (0x10006000+0x954) */
  2575. #define SPM_ACK_CHK_SWINT_EN_2_LSB (1U << 0) /* 32b */
  2576. /* SPM_ACK_CHK_CON_3 (0x10006000+0x960) */
  2577. #define SPM_ACK_CHK_SW_EN_3_LSB (1U << 0) /* 1b */
  2578. #define SPM_ACK_CHK_CLR_ALL_3_LSB (1U << 1) /* 1b */
  2579. #define SPM_ACK_CHK_CLR_TIMER_3_LSB (1U << 2) /* 1b */
  2580. #define SPM_ACK_CHK_CLR_IRQ_3_LSB (1U << 3) /* 1b */
  2581. #define SPM_ACK_CHK_STA_EN_3_LSB (1U << 4) /* 1b */
  2582. #define SPM_ACK_CHK_WAKEUP_EN_3_LSB (1U << 5) /* 1b */
  2583. #define SPM_ACK_CHK_WDT_EN_3_LSB (1U << 6) /* 1b */
  2584. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_3_LSB (1U << 7) /* 1b */
  2585. #define SPM_ACK_CHK_HW_EN_3_LSB (1U << 8) /* 1b */
  2586. #define SPM_ACK_CHK_HW_MODE_3_LSB (1U << 9) /* 3b */
  2587. #define SPM_ACK_CHK_FAIL_3_LSB (1U << 15) /* 1b */
  2588. /* SPM_ACK_CHK_PC_3 (0x10006000+0x964) */
  2589. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_3_LSB (1U << 0) /* 16b */
  2590. #define SPM_ACK_CHK_HW_TARG_PC_VAL_3_LSB (1U << 16) /* 16b */
  2591. /* SPM_ACK_CHK_SEL_3 (0x10006000+0x968) */
  2592. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_3_LSB (1U << 0) /* 5b */
  2593. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_3_LSB (1U << 5) /* 3b */
  2594. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_3_LSB (1U << 16) /* 5b */
  2595. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_3_LSB (1U << 21) /* 3b */
  2596. /* SPM_ACK_CHK_TIMER_3 (0x10006000+0x96C) */
  2597. #define SPM_ACK_CHK_TIMER_VAL_3_LSB (1U << 0) /* 16b */
  2598. #define SPM_ACK_CHK_TIMER_3_LSB (1U << 16) /* 16b */
  2599. /* SPM_ACK_CHK_STA_3 (0x10006000+0x970) */
  2600. #define SPM_ACK_CHK_STA_3_LSB (1U << 0) /* 32b */
  2601. /* SPM_ACK_CHK_SWINT_3 (0x10006000+0x974) */
  2602. #define SPM_ACK_CHK_SWINT_EN_3_LSB (1U << 0) /* 32b */
  2603. /* SPM_COUNTER_0 (0x10006000+0x978) */
  2604. #define SPM_COUNTER_VAL_0_LSB (1U << 0) /* 14b */
  2605. #define SPM_COUNTER_OUT_0_LSB (1U << 14) /* 14b */
  2606. #define SPM_COUNTER_EN_0_LSB (1U << 28) /* 1b */
  2607. #define SPM_COUNTER_CLR_0_LSB (1U << 29) /* 1b */
  2608. #define SPM_COUNTER_TIMEOUT_0_LSB (1U << 30) /* 1b */
  2609. #define SPM_COUNTER_WAKEUP_EN_0_LSB (1U << 31) /* 1b */
  2610. /* SPM_COUNTER_1 (0x10006000+0x97C) */
  2611. #define SPM_COUNTER_VAL_1_LSB (1U << 0) /* 14b */
  2612. #define SPM_COUNTER_OUT_1_LSB (1U << 14) /* 14b */
  2613. #define SPM_COUNTER_EN_1_LSB (1U << 28) /* 1b */
  2614. #define SPM_COUNTER_CLR_1_LSB (1U << 29) /* 1b */
  2615. #define SPM_COUNTER_TIMEOUT_1_LSB (1U << 30) /* 1b */
  2616. #define SPM_COUNTER_WAKEUP_EN_1_LSB (1U << 31) /* 1b */
  2617. /* SPM_COUNTER_2 (0x10006000+0x980) */
  2618. #define SPM_COUNTER_VAL_2_LSB (1U << 0) /* 14b */
  2619. #define SPM_COUNTER_OUT_2_LSB (1U << 14) /* 14b */
  2620. #define SPM_COUNTER_EN_2_LSB (1U << 28) /* 1b */
  2621. #define SPM_COUNTER_CLR_2_LSB (1U << 29) /* 1b */
  2622. #define SPM_COUNTER_TIMEOUT_2_LSB (1U << 30) /* 1b */
  2623. #define SPM_COUNTER_WAKEUP_EN_2_LSB (1U << 31) /* 1b */
  2624. /* SYS_TIMER_CON (0x10006000+0x98C) */
  2625. #define SYS_TIMER_START_EN_LSB (1U << 0) /* 1b */
  2626. #define SYS_TIMER_LATCH_EN_LSB (1U << 1) /* 1b */
  2627. #define SYS_TIMER_ID_LSB (1U << 8) /* 8b */
  2628. #define SYS_TIMER_VALID_LSB (1U << 31) /* 1b */
  2629. /* RC_FSM_STA_0 (0x10006000+0xE00) */
  2630. #define RC_FSM_STA_0_LSB (1U << 0) /* 32b */
  2631. /* RC_CMD_STA_0 (0x10006000+0xE04) */
  2632. #define RC_CMD_STA_0_LSB (1U << 0) /* 32b */
  2633. /* RC_CMD_STA_1 (0x10006000+0xE08) */
  2634. #define RC_CMD_STA_1_LSB (1U << 0) /* 32b */
  2635. /* RC_SPI_STA_0 (0x10006000+0xE0C) */
  2636. #define RC_SPI_STA_0_LSB (1U << 0) /* 32b */
  2637. /* RC_PI_PO_STA_0 (0x10006000+0xE10) */
  2638. #define RC_PI_PO_STA_0_LSB (1U << 0) /* 32b */
  2639. /* RC_M00_REQ_STA_0 (0x10006000+0xE14) */
  2640. #define RC_M00_REQ_STA_0_LSB (1U << 0) /* 32b */
  2641. /* RC_M01_REQ_STA_0 (0x10006000+0xE1C) */
  2642. #define RC_M01_REQ_STA_0_LSB (1U << 0) /* 32b */
  2643. /* RC_M02_REQ_STA_0 (0x10006000+0xE20) */
  2644. #define RC_M02_REQ_STA_0_LSB (1U << 0) /* 32b */
  2645. /* RC_M03_REQ_STA_0 (0x10006000+0xE24) */
  2646. #define RC_M03_REQ_STA_0_LSB (1U << 0) /* 32b */
  2647. /* RC_M04_REQ_STA_0 (0x10006000+0xE28) */
  2648. #define RC_M04_REQ_STA_0_LSB (1U << 0) /* 32b */
  2649. /* RC_M05_REQ_STA_0 (0x10006000+0xE2C) */
  2650. #define RC_M05_REQ_STA_0_LSB (1U << 0) /* 32b */
  2651. /* RC_M06_REQ_STA_0 (0x10006000+0xE30) */
  2652. #define RC_M06_REQ_STA_0_LSB (1U << 0) /* 32b */
  2653. /* RC_M07_REQ_STA_0 (0x10006000+0xE34) */
  2654. #define RC_M07_REQ_STA_0_LSB (1U << 0) /* 32b */
  2655. /* RC_M08_REQ_STA_0 (0x10006000+0xE38) */
  2656. #define RC_M08_REQ_STA_0_LSB (1U << 0) /* 32b */
  2657. /* RC_M09_REQ_STA_0 (0x10006000+0xE3C) */
  2658. #define RC_M09_REQ_STA_0_LSB (1U << 0) /* 32b */
  2659. /* RC_M10_REQ_STA_0 (0x10006000+0xE40) */
  2660. #define RC_M10_REQ_STA_0_LSB (1U << 0) /* 32b */
  2661. /* RC_M11_REQ_STA_0 (0x10006000+0xE44) */
  2662. #define RC_M11_REQ_STA_0_LSB (1U << 0) /* 32b */
  2663. /* RC_M12_REQ_STA_0 (0x10006000+0xE48) */
  2664. #define RC_M12_REQ_STA_0_LSB (1U << 0) /* 32b */
  2665. /* RC_DEBUG_STA_0 (0x10006000+0xE4C) */
  2666. #define RC_DEBUG_STA_0_LSB (1U << 0) /* 32b */
  2667. /* RC_DEBUG_TRACE_0_LSB (0x10006000+0xE50) */
  2668. #define RO_PMRC_TRACE_00_LSB_LSB (1U << 0) /* 32b */
  2669. /* RC_DEBUG_TRACE_0_MSB (0x10006000+0xE54) */
  2670. #define RO_PMRC_TRACE_00_MSB_LSB (1U << 0) /* 32b */
  2671. /* RC_DEBUG_TRACE_1_LSB (0x10006000+0xE5C) */
  2672. #define RO_PMRC_TRACE_01_LSB_LSB (1U << 0) /* 32b */
  2673. /* RC_DEBUG_TRACE_1_MSB (0x10006000+0xE60) */
  2674. #define RO_PMRC_TRACE_01_MSB_LSB (1U << 0) /* 32b */
  2675. /* RC_DEBUG_TRACE_2_LSB (0x10006000+0xE64) */
  2676. #define RO_PMRC_TRACE_02_LSB_LSB (1U << 0) /* 32b */
  2677. /* RC_DEBUG_TRACE_2_MSB (0x10006000+0xE6C) */
  2678. #define RO_PMRC_TRACE_02_MSB_LSB (1U << 0) /* 32b */
  2679. /* RC_DEBUG_TRACE_3_LSB (0x10006000+0xE70) */
  2680. #define RO_PMRC_TRACE_03_LSB_LSB (1U << 0) /* 32b */
  2681. /* RC_DEBUG_TRACE_3_MSB (0x10006000+0xE74) */
  2682. #define RO_PMRC_TRACE_03_MSB_LSB (1U << 0) /* 32b */
  2683. /* RC_DEBUG_TRACE_4_LSB (0x10006000+0xE78) */
  2684. #define RO_PMRC_TRACE_04_LSB_LSB (1U << 0) /* 32b */
  2685. /* RC_DEBUG_TRACE_4_MSB (0x10006000+0xE7C) */
  2686. #define RO_PMRC_TRACE_04_MSB_LSB (1U << 0) /* 32b */
  2687. /* RC_DEBUG_TRACE_5_LSB (0x10006000+0xE80) */
  2688. #define RO_PMRC_TRACE_05_LSB_LSB (1U << 0) /* 32b */
  2689. /* RC_DEBUG_TRACE_5_MSB (0x10006000+0xE84) */
  2690. #define RO_PMRC_TRACE_05_MSB_LSB (1U << 0) /* 32b */
  2691. /* RC_DEBUG_TRACE_6_LSB (0x10006000+0xE88) */
  2692. #define RO_PMRC_TRACE_06_LSB_LSB (1U << 0) /* 32b */
  2693. /* RC_DEBUG_TRACE_6_MSB (0x10006000+0xE8C) */
  2694. #define RO_PMRC_TRACE_06_MSB_LSB (1U << 0) /* 32b */
  2695. /* RC_DEBUG_TRACE_7_LSB (0x10006000+0xE90) */
  2696. #define RO_PMRC_TRACE_07_LSB_LSB (1U << 0) /* 32b */
  2697. /* RC_DEBUG_TRACE_7_MSB (0x10006000+0xE94) */
  2698. #define RO_PMRC_TRACE_07_MSB_LSB (1U << 0) /* 32b */
  2699. /* RC_SYS_TIMER_LATCH_0_LSB (0x10006000+0xE98) */
  2700. #define RC_SYS_TIMER_LATCH_L_00_LSB (1U << 0) /* 32b */
  2701. /* RC_SYS_TIMER_LATCH_0_MSB (0x10006000+0xE9C) */
  2702. #define RC_SYS_TIMER_LATCH_H_00_LSB (1U << 0) /* 32b */
  2703. /* RC_SYS_TIMER_LATCH_1_LSB (0x10006000+0xEA0) */
  2704. #define RC_SYS_TIMER_LATCH_L_01_LSB (1U << 0) /* 32b */
  2705. /* RC_SYS_TIMER_LATCH_1_MSB (0x10006000+0xEA4) */
  2706. #define RC_SYS_TIMER_LATCH_H_01_LSB (1U << 0) /* 32b */
  2707. /* RC_SYS_TIMER_LATCH_2_LSB (0x10006000+0xEA8) */
  2708. #define RC_SYS_TIMER_LATCH_L_02_LSB (1U << 0) /* 32b */
  2709. /* RC_SYS_TIMER_LATCH_2_MSB (0x10006000+0xEAC) */
  2710. #define RC_SYS_TIMER_LATCH_H_02_LSB (1U << 0) /* 32b */
  2711. /* RC_SYS_TIMER_LATCH_3_LSB (0x10006000+0xEB0) */
  2712. #define RC_SYS_TIMER_LATCH_L_03_LSB (1U << 0) /* 32b */
  2713. /* RC_SYS_TIMER_LATCH_3_MSB (0x10006000+0xEB4) */
  2714. #define RC_SYS_TIMER_LATCH_H_03_LSB (1U << 0) /* 32b */
  2715. /* RC_SYS_TIMER_LATCH_4_LSB (0x10006000+0xEB8) */
  2716. #define RC_SYS_TIMER_LATCH_L_04_LSB (1U << 0) /* 32b */
  2717. /* RC_SYS_TIMER_LATCH_4_MSB (0x10006000+0xEBC) */
  2718. #define RC_SYS_TIMER_LATCH_H_04_LSB (1U << 0) /* 32b */
  2719. /* RC_SYS_TIMER_LATCH_5_LSB (0x10006000+0xEC0) */
  2720. #define RC_SYS_TIMER_LATCH_L_05_LSB (1U << 0) /* 32b */
  2721. /* RC_SYS_TIMER_LATCH_5_MSB (0x10006000+0xEC4) */
  2722. #define RC_SYS_TIMER_LATCH_H_05_LSB (1U << 0) /* 32b */
  2723. /* RC_SYS_TIMER_LATCH_6_LSB (0x10006000+0xEC8) */
  2724. #define RC_SYS_TIMER_LATCH_L_06_LSB (1U << 0) /* 32b */
  2725. /* RC_SYS_TIMER_LATCH_6_MSB (0x10006000+0xECC) */
  2726. #define RC_SYS_TIMER_LATCH_H_06_LSB (1U << 0) /* 32b */
  2727. /* RC_SYS_TIMER_LATCH_7_LSB (0x10006000+0xED0) */
  2728. #define RC_SYS_TIMER_LATCH_L_07_LSB (1U << 0) /* 32b */
  2729. /* RC_SYS_TIMER_LATCH_7_MSB (0x10006000+0xED4) */
  2730. #define RC_SYS_TIMER_LATCH_H_07_LSB (1U << 0) /* 32b */
  2731. /* PCM_WDT_LATCH_19 (0x10006000+0xED8) */
  2732. #define PCM_WDT_LATCH_19_LSB (1U << 0) /* 32b */
  2733. /* PCM_WDT_LATCH_20 (0x10006000+0xEDC) */
  2734. #define PCM_WDT_LATCH_20_LSB (1U << 0) /* 32b */
  2735. /* PCM_WDT_LATCH_21 (0x10006000+0xEE0) */
  2736. #define PCM_WDT_LATCH_21_LSB (1U << 0) /* 32b */
  2737. /* PCM_WDT_LATCH_22 (0x10006000+0xEE4) */
  2738. #define PCM_WDT_LATCH_22_LSB (1U << 0) /* 32b */
  2739. /* PCM_WDT_LATCH_23 (0x10006000+0xEE8) */
  2740. #define PCM_WDT_LATCH_23_LSB (1U << 0) /* 32b */
  2741. /* PCM_WDT_LATCH_24 (0x10006000+0xEEC) */
  2742. #define PCM_WDT_LATCH_24_LSB (1U << 0) /* 32b */
  2743. /* PMSR_LAST_DAT (0x10006000+0xF00) */
  2744. #define PMSR_LAST_DAT_LSB (1U << 0) /* 32b */
  2745. /* PMSR_LAST_CNT (0x10006000+0xF04) */
  2746. #define PMSR_LAST_CMD_LSB (1U << 0) /* 30b */
  2747. #define PMSR_LAST_REQ_LSB (1U << 30) /* 1b */
  2748. /* PMSR_LAST_ACK (0x10006000+0xF08) */
  2749. #define PMSR_LAST_ACK_LSB (1U << 0) /* 1b */
  2750. /* SPM_PMSR_SEL_CON0 (0x10006000+0xF10) */
  2751. #define REG_PMSR_SIG_SEL_0_LSB (1U << 0) /* 8b */
  2752. #define REG_PMSR_SIG_SEL_1_LSB (1U << 8) /* 8b */
  2753. #define REG_PMSR_SIG_SEL_2_LSB (1U << 16) /* 8b */
  2754. #define REG_PMSR_SIG_SEL_3_LSB (1U << 24) /* 8b */
  2755. /* SPM_PMSR_SEL_CON1 (0x10006000+0xF14) */
  2756. #define REG_PMSR_SIG_SEL_4_LSB (1U << 0) /* 8b */
  2757. #define REG_PMSR_SIG_SEL_5_LSB (1U << 8) /* 8b */
  2758. #define REG_PMSR_SIG_SEL_6_LSB (1U << 16) /* 8b */
  2759. #define REG_PMSR_SIG_SEL_7_LSB (1U << 24) /* 8b */
  2760. /* SPM_PMSR_SEL_CON2 (0x10006000+0xF18) */
  2761. #define REG_PMSR_SIG_SEL_8_LSB (1U << 0) /* 8b */
  2762. #define REG_PMSR_SIG_SEL_9_LSB (1U << 8) /* 8b */
  2763. #define REG_PMSR_SIG_SEL_10_LSB (1U << 16) /* 8b */
  2764. #define REG_PMSR_SIG_SEL_11_LSB (1U << 24) /* 8b */
  2765. /* SPM_PMSR_SEL_CON3 (0x10006000+0xF1C) */
  2766. #define REG_PMSR_SIG_SEL_12_LSB (1U << 0) /* 8b */
  2767. #define REG_PMSR_SIG_SEL_13_LSB (1U << 8) /* 8b */
  2768. #define REG_PMSR_SIG_SEL_14_LSB (1U << 16) /* 8b */
  2769. #define REG_PMSR_SIG_SEL_15_LSB (1U << 24) /* 8b */
  2770. /* SPM_PMSR_SEL_CON4 (0x10006000+0xF20) */
  2771. #define REG_PMSR_SIG_SEL_16_LSB (1U << 0) /* 8b */
  2772. #define REG_PMSR_SIG_SEL_17_LSB (1U << 8) /* 8b */
  2773. #define REG_PMSR_SIG_SEL_18_LSB (1U << 16) /* 8b */
  2774. #define REG_PMSR_SIG_SEL_19_LSB (1U << 24) /* 8b */
  2775. /* SPM_PMSR_SEL_CON5 (0x10006000+0xF24) */
  2776. #define REG_PMSR_SIG_SEL_20_LSB (1U << 0) /* 8b */
  2777. #define REG_PMSR_SIG_SEL_21_LSB (1U << 8) /* 8b */
  2778. #define REG_PMSR_SIG_SEL_22_LSB (1U << 16) /* 8b */
  2779. #define REG_PMSR_SIG_SEL_23_LSB (1U << 24) /* 8b */
  2780. /* SPM_PMSR_SEL_CON6 (0x10006000+0xF28) */
  2781. #define REG_PMSR_SIG_SEL_24_LSB (1U << 0) /* 8b */
  2782. #define REG_PMSR_SIG_SEL_25_LSB (1U << 8) /* 8b */
  2783. #define REG_PMSR_SIG_SEL_26_LSB (1U << 16) /* 8b */
  2784. #define REG_PMSR_SIG_SEL_27_LSB (1U << 24) /* 8b */
  2785. /* SPM_PMSR_SEL_CON7 (0x10006000+0xF2C) */
  2786. #define REG_PMSR_SIG_SEL_28_LSB (1U << 0) /* 8b */
  2787. #define REG_PMSR_SIG_SEL_29_LSB (1U << 8) /* 8b */
  2788. #define REG_PMSR_SIG_SEL_30_LSB (1U << 16) /* 8b */
  2789. #define REG_PMSR_SIG_SEL_31_LSB (1U << 24) /* 8b */
  2790. /* SPM_PMSR_SEL_CON8 (0x10006000+0xF30) */
  2791. #define REG_PMSR_SIG_SEL_32_LSB (1U << 0) /* 8b */
  2792. #define REG_PMSR_SIG_SEL_33_LSB (1U << 8) /* 8b */
  2793. #define REG_PMSR_SIG_SEL_34_LSB (1U << 16) /* 8b */
  2794. #define REG_PMSR_SIG_SEL_35_LSB (1U << 24) /* 8b */
  2795. /* SPM_PMSR_SEL_CON9 (0x10006000+0xF34) */
  2796. #define REG_PMSR_SIG_SEL_36_LSB (1U << 0) /* 8b */
  2797. #define REG_PMSR_SIG_SEL_37_LSB (1U << 8) /* 8b */
  2798. #define REG_PMSR_SIG_SEL_38_LSB (1U << 16) /* 8b */
  2799. #define REG_PMSR_SIG_SEL_39_LSB (1U << 24) /* 8b */
  2800. /* SPM_PMSR_SEL_CON10 (0x10006000+0xF3C) */
  2801. #define REG_PMSR_SIG_SEL_40_LSB (1U << 0) /* 8b */
  2802. #define REG_PMSR_SIG_SEL_41_LSB (1U << 8) /* 8b */
  2803. #define REG_PMSR_SIG_SEL_42_LSB (1U << 16) /* 8b */
  2804. #define REG_PMSR_SIG_SEL_43_LSB (1U << 24) /* 8b */
  2805. /* SPM_PMSR_SEL_CON11 (0x10006000+0xF40) */
  2806. #define REG_PMSR_SIG_SEL_44_LSB (1U << 0) /* 8b */
  2807. #define REG_PMSR_SIG_SEL_45_LSB (1U << 8) /* 8b */
  2808. #define REG_PMSR_SIG_SEL_46_LSB (1U << 16) /* 8b */
  2809. #define REG_PMSR_SIG_SEL_47_LSB (1U << 24) /* 8b */
  2810. /* SPM_PMSR_TIEMR_STA0 (0x10006000+0xFB8) */
  2811. #define PMSR_TIMER_SET0_LSB (1U << 0) /* 32b */
  2812. /* SPM_PMSR_TIEMR_STA1 (0x10006000+0xFBC) */
  2813. #define PMSR_TIMER_SET1_LSB (1U << 0) /* 32b */
  2814. /* SPM_PMSR_TIEMR_STA2 (0x10006000+0xFC0) */
  2815. #define PMSR_TIMER_SET2_LSB (1U << 0) /* 32b */
  2816. /* SPM_PMSR_GENERAL_CON0 (0x10006000+0xFC4) */
  2817. #define PMSR_ENABLE_SET0_LSB (1U << 0) /* 1b */
  2818. #define PMSR_ENABLE_SET1_LSB (1U << 1) /* 1b */
  2819. #define PMSR_ENABLE_SET2_LSB (1U << 2) /* 1b */
  2820. #define PMSR_IRQ_CLR_SET0_LSB (1U << 3) /* 1b */
  2821. #define PMSR_IRQ_CLR_SET1_LSB (1U << 4) /* 1b */
  2822. #define PMSR_IRQ_CLR_SET2_LSB (1U << 5) /* 1b */
  2823. #define PMSR_SPEED_MODE_EN_SET0_LSB (1U << 6) /* 1b */
  2824. #define PMSR_SPEED_MODE_EN_SET1_LSB (1U << 7) /* 1b */
  2825. #define PMSR_SPEED_MODE_EN_SET2_LSB (1U << 8) /* 1b */
  2826. #define PMSR_EVENT_CLR_SET0_LSB (1U << 9) /* 1b */
  2827. #define PMSR_EVENT_CLR_SET1_LSB (1U << 10) /* 1b */
  2828. #define PMSR_EVENT_CLR_SET2_LSB (1U << 11) /* 1b */
  2829. #define REG_PMSR_IRQ_MASK_SET0_LSB (1U << 12) /* 1b */
  2830. #define REG_PMSR_IRQ_MASK_SET1_LSB (1U << 13) /* 1b */
  2831. #define REG_PMSR_IRQ_MASK_SET2_LSB (1U << 14) /* 1b */
  2832. #define REG_PMSR_IRQ_WAKEUP_EVENT_MASK_SET0_LSB (1U << 15) /* 1b */
  2833. #define REG_PMSR_IRQ_WAKEUP_EVENT_MASK_SET1_LSB (1U << 16) /* 1b */
  2834. #define REG_PMSR_IRQ_WAKEUP_EVENT_MASK_SET2_LSB (1U << 17) /* 1b */
  2835. #define PMSR_GEN_SW_RST_EN_LSB (1U << 18) /* 1b */
  2836. #define PMSR_MODULE_ENABLE_LSB (1U << 19) /* 1b */
  2837. #define PMSR_MODE_LSB (1U << 20) /* 2b */
  2838. #define SPM_PMSR_GENERAL_CON0_PMSR_IRQ_B_SET0_LSB (1U << 29) /* 1b */
  2839. #define SPM_PMSR_GENERAL_CON0_PMSR_IRQ_B_SET1_LSB (1U << 30) /* 1b */
  2840. #define SPM_PMSR_GENERAL_CON0_PMSR_IRQ_B_SET2_LSB (1U << 31) /* 1b */
  2841. /* SPM_PMSR_GENERAL_CON1 (0x10006000+0xFC8) */
  2842. #define PMSR_COUNTER_THRES_LSB (1U << 0) /* 32b */
  2843. /* SPM_PMSR_GENERAL_CON2 (0x10006000+0xFCC) */
  2844. #define PMSR_DEBUG_IN_0_MASK_B_LSB (1U << 0) /* 32b */
  2845. /* SPM_PMSR_GENERAL_CON3 (0x10006000+0xFD0) */
  2846. #define PMSR_DEBUG_IN_1_MASK_B_LSB (1U << 0) /* 32b */
  2847. /* SPM_PMSR_GENERAL_CON4 (0x10006000+0xFD4) */
  2848. #define PMSR_DEBUG_IN_2_MASK_B_LSB (1U << 0) /* 32b */
  2849. /* SPM_PMSR_GENERAL_CON5 (0x10006000+0xFD8) */
  2850. #define PMSR_DEBUG_IN_3_MASK_B_LSB (1U << 0) /* 32b */
  2851. /* SPM_PMSR_SW_RESET (0x10006000+0xFDC) */
  2852. #define PMSR_SW_RST_EN_SET0_LSB (1U << 0) /* 1b */
  2853. #define PMSR_SW_RST_EN_SET1_LSB (1U << 1) /* 1b */
  2854. #define PMSR_SW_RST_EN_SET2_LSB (1U << 2) /* 1b */
  2855. /* SPM_PMSR_MON_CON0 (0x10006000+0xFE0) */
  2856. #define REG_PMSR_MON_TYPE_0_LSB (1U << 0) /* 2b */
  2857. #define REG_PMSR_MON_TYPE_1_LSB (1U << 2) /* 2b */
  2858. #define REG_PMSR_MON_TYPE_2_LSB (1U << 4) /* 2b */
  2859. #define REG_PMSR_MON_TYPE_3_LSB (1U << 6) /* 2b */
  2860. #define REG_PMSR_MON_TYPE_4_LSB (1U << 8) /* 2b */
  2861. #define REG_PMSR_MON_TYPE_5_LSB (1U << 10) /* 2b */
  2862. #define REG_PMSR_MON_TYPE_6_LSB (1U << 12) /* 2b */
  2863. #define REG_PMSR_MON_TYPE_7_LSB (1U << 14) /* 2b */
  2864. #define REG_PMSR_MON_TYPE_8_LSB (1U << 16) /* 2b */
  2865. #define REG_PMSR_MON_TYPE_9_LSB (1U << 18) /* 2b */
  2866. #define REG_PMSR_MON_TYPE_10_LSB (1U << 20) /* 2b */
  2867. #define REG_PMSR_MON_TYPE_11_LSB (1U << 22) /* 2b */
  2868. #define REG_PMSR_MON_TYPE_12_LSB (1U << 24) /* 2b */
  2869. #define REG_PMSR_MON_TYPE_13_LSB (1U << 26) /* 2b */
  2870. #define REG_PMSR_MON_TYPE_14_LSB (1U << 28) /* 2b */
  2871. #define REG_PMSR_MON_TYPE_15_LSB (1U << 30) /* 2b */
  2872. /* SPM_PMSR_MON_CON1 (0x10006000+0xFE4) */
  2873. #define REG_PMSR_MON_TYPE_16_LSB (1U << 0) /* 2b */
  2874. #define REG_PMSR_MON_TYPE_17_LSB (1U << 2) /* 2b */
  2875. #define REG_PMSR_MON_TYPE_18_LSB (1U << 4) /* 2b */
  2876. #define REG_PMSR_MON_TYPE_19_LSB (1U << 6) /* 2b */
  2877. #define REG_PMSR_MON_TYPE_20_LSB (1U << 8) /* 2b */
  2878. #define REG_PMSR_MON_TYPE_21_LSB (1U << 10) /* 2b */
  2879. #define REG_PMSR_MON_TYPE_22_LSB (1U << 12) /* 2b */
  2880. #define REG_PMSR_MON_TYPE_23_LSB (1U << 14) /* 2b */
  2881. #define REG_PMSR_MON_TYPE_24_LSB (1U << 16) /* 2b */
  2882. #define REG_PMSR_MON_TYPE_25_LSB (1U << 18) /* 2b */
  2883. #define REG_PMSR_MON_TYPE_26_LSB (1U << 20) /* 2b */
  2884. #define REG_PMSR_MON_TYPE_27_LSB (1U << 22) /* 2b */
  2885. #define REG_PMSR_MON_TYPE_28_LSB (1U << 24) /* 2b */
  2886. #define REG_PMSR_MON_TYPE_29_LSB (1U << 26) /* 2b */
  2887. #define REG_PMSR_MON_TYPE_30_LSB (1U << 28) /* 2b */
  2888. #define REG_PMSR_MON_TYPE_31_LSB (1U << 30) /* 2b */
  2889. /* SPM_PMSR_MON_CON2 (0x10006000+0xFE8) */
  2890. #define REG_PMSR_MON_TYPE_32_LSB (1U << 0) /* 2b */
  2891. #define REG_PMSR_MON_TYPE_33_LSB (1U << 2) /* 2b */
  2892. #define REG_PMSR_MON_TYPE_34_LSB (1U << 4) /* 2b */
  2893. #define REG_PMSR_MON_TYPE_35_LSB (1U << 6) /* 2b */
  2894. #define REG_PMSR_MON_TYPE_36_LSB (1U << 8) /* 2b */
  2895. #define REG_PMSR_MON_TYPE_37_LSB (1U << 10) /* 2b */
  2896. #define REG_PMSR_MON_TYPE_38_LSB (1U << 12) /* 2b */
  2897. #define REG_PMSR_MON_TYPE_39_LSB (1U << 14) /* 2b */
  2898. #define REG_PMSR_MON_TYPE_40_LSB (1U << 16) /* 2b */
  2899. #define REG_PMSR_MON_TYPE_41_LSB (1U << 18) /* 2b */
  2900. #define REG_PMSR_MON_TYPE_42_LSB (1U << 20) /* 2b */
  2901. #define REG_PMSR_MON_TYPE_43_LSB (1U << 22) /* 2b */
  2902. #define REG_PMSR_MON_TYPE_44_LSB (1U << 24) /* 2b */
  2903. #define REG_PMSR_MON_TYPE_45_LSB (1U << 26) /* 2b */
  2904. #define REG_PMSR_MON_TYPE_46_LSB (1U << 28) /* 2b */
  2905. #define REG_PMSR_MON_TYPE_47_LSB (1U << 30) /* 2b */
  2906. /* SPM_PMSR_LEN_CON0 (0x10006000+0xFEC) */
  2907. #define REG_PMSR_WINDOW_LEN_SET0_LSB (1U << 0) /* 32b */
  2908. /* SPM_PMSR_LEN_CON1 (0x10006000+0xFF0) */
  2909. #define REG_PMSR_WINDOW_LEN_SET1_LSB (1U << 0) /* 32b */
  2910. /* SPM_PMSR_LEN_CON2 (0x10006000+0xFF4) */
  2911. #define REG_PMSR_WINDOW_LEN_SET2_LSB (1U << 0) /* 32b */
  2912. #define SPM_PROJECT_CODE 0xb16
  2913. #define SPM_REGWR_CFG_KEY (SPM_PROJECT_CODE << 16)
  2914. #endif /* MT_SPM_REG */