mt_spm_reg.h 121 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MT_SPM_REG
  7. #define MT_SPM_REG
  8. #include "pcm_def.h"
  9. #include <platform_def.h>
  10. #include "sleep_def.h"
  11. /* Define and Declare */
  12. #define POWERON_CONFIG_EN (SPM_BASE + 0x000)
  13. #define SPM_POWER_ON_VAL0 (SPM_BASE + 0x004)
  14. #define SPM_POWER_ON_VAL1 (SPM_BASE + 0x008)
  15. #define SPM_CLK_CON (SPM_BASE + 0x00C)
  16. #define SPM_CLK_SETTLE (SPM_BASE + 0x010)
  17. #define SPM_AP_STANDBY_CON (SPM_BASE + 0x014)
  18. #define PCM_CON0 (SPM_BASE + 0x018)
  19. #define PCM_CON1 (SPM_BASE + 0x01C)
  20. #define SPM_POWER_ON_VAL2 (SPM_BASE + 0x020)
  21. #define SPM_POWER_ON_VAL3 (SPM_BASE + 0x024)
  22. #define PCM_REG_DATA_INI (SPM_BASE + 0x028)
  23. #define PCM_PWR_IO_EN (SPM_BASE + 0x02C)
  24. #define PCM_TIMER_VAL (SPM_BASE + 0x030)
  25. #define PCM_WDT_VAL (SPM_BASE + 0x034)
  26. #define SPM_SW_RST_CON (SPM_BASE + 0x040)
  27. #define SPM_SW_RST_CON_SET (SPM_BASE + 0x044)
  28. #define SPM_SW_RST_CON_CLR (SPM_BASE + 0x048)
  29. #define SPM_SRC6_MASK (SPM_BASE + 0x04C)
  30. #define MD32_CLK_CON (SPM_BASE + 0x084)
  31. #define SPM_SRAM_RSV_CON (SPM_BASE + 0x088)
  32. #define SPM_SWINT (SPM_BASE + 0x08C)
  33. #define SPM_SWINT_SET (SPM_BASE + 0x090)
  34. #define SPM_SWINT_CLR (SPM_BASE + 0x094)
  35. #define SPM_SCP_MAILBOX (SPM_BASE + 0x098)
  36. #define SCP_SPM_MAILBOX (SPM_BASE + 0x09C)
  37. #define SPM_WAKEUP_EVENT_SENS (SPM_BASE + 0x0A0)
  38. #define SPM_WAKEUP_EVENT_CLEAR (SPM_BASE + 0x0A4)
  39. #define SPM_SCP_IRQ (SPM_BASE + 0x0AC)
  40. #define SPM_CPU_WAKEUP_EVENT (SPM_BASE + 0x0B0)
  41. #define SPM_IRQ_MASK (SPM_BASE + 0x0B4)
  42. #define SPM_SRC_REQ (SPM_BASE + 0x0B8)
  43. #define SPM_SRC_MASK (SPM_BASE + 0x0BC)
  44. #define SPM_SRC2_MASK (SPM_BASE + 0x0C0)
  45. #define SPM_SRC3_MASK (SPM_BASE + 0x0C4)
  46. #define SPM_SRC4_MASK (SPM_BASE + 0x0C8)
  47. #define SPM_SRC5_MASK (SPM_BASE + 0x0CC)
  48. #define SPM_WAKEUP_EVENT_MASK (SPM_BASE + 0x0D0)
  49. #define SPM_WAKEUP_EVENT_EXT_MASK (SPM_BASE + 0x0D4)
  50. #define SPM_SRC7_MASK (SPM_BASE + 0x0D8)
  51. #define SCP_CLK_CON (SPM_BASE + 0x0DC)
  52. #define PCM_DEBUG_CON (SPM_BASE + 0x0E0)
  53. #define DDREN_DBC_CON (SPM_BASE + 0x0E8)
  54. #define SPM_RESOURCE_ACK_CON4 (SPM_BASE + 0x0EC)
  55. #define SPM_RESOURCE_ACK_CON0 (SPM_BASE + 0x0F0)
  56. #define SPM_RESOURCE_ACK_CON1 (SPM_BASE + 0x0F4)
  57. #define SPM_RESOURCE_ACK_CON2 (SPM_BASE + 0x0F8)
  58. #define SPM_RESOURCE_ACK_CON3 (SPM_BASE + 0x0FC)
  59. #define PCM_REG0_DATA (SPM_BASE + 0x100)
  60. #define PCM_REG2_DATA (SPM_BASE + 0x104)
  61. #define PCM_REG6_DATA (SPM_BASE + 0x108)
  62. #define PCM_REG7_DATA (SPM_BASE + 0x10C)
  63. #define PCM_REG13_DATA (SPM_BASE + 0x110)
  64. #define SRC_REQ_STA_0 (SPM_BASE + 0x114)
  65. #define SRC_REQ_STA_1 (SPM_BASE + 0x118)
  66. #define SRC_REQ_STA_2 (SPM_BASE + 0x11C)
  67. #define PCM_TIMER_OUT (SPM_BASE + 0x120)
  68. #define PCM_WDT_OUT (SPM_BASE + 0x124)
  69. #define SPM_IRQ_STA (SPM_BASE + 0x128)
  70. #define SRC_REQ_STA_4 (SPM_BASE + 0x12C)
  71. #define MD32PCM_WAKEUP_STA (SPM_BASE + 0x130)
  72. #define MD32PCM_EVENT_STA (SPM_BASE + 0x134)
  73. #define SPM_WAKEUP_STA (SPM_BASE + 0x138)
  74. #define SPM_WAKEUP_EXT_STA (SPM_BASE + 0x13C)
  75. #define SPM_WAKEUP_MISC (SPM_BASE + 0x140)
  76. #define MM_DVFS_HALT (SPM_BASE + 0x144)
  77. #define BUS_PROTECT_RDY (SPM_BASE + 0x150)
  78. #define BUS_PROTECT1_RDY (SPM_BASE + 0x154)
  79. #define BUS_PROTECT2_RDY (SPM_BASE + 0x158)
  80. #define BUS_PROTECT3_RDY (SPM_BASE + 0x15C)
  81. #define SUBSYS_IDLE_STA (SPM_BASE + 0x160)
  82. #define PCM_STA (SPM_BASE + 0x164)
  83. #define SRC_REQ_STA_3 (SPM_BASE + 0x168)
  84. #define PWR_STATUS (SPM_BASE + 0x16C)
  85. #define PWR_STATUS_2ND (SPM_BASE + 0x170)
  86. #define CPU_PWR_STATUS (SPM_BASE + 0x174)
  87. #define OTHER_PWR_STATUS (SPM_BASE + 0x178)
  88. #define SPM_VTCXO_EVENT_COUNT_STA (SPM_BASE + 0x17C)
  89. #define SPM_INFRA_EVENT_COUNT_STA (SPM_BASE + 0x180)
  90. #define SPM_VRF18_EVENT_COUNT_STA (SPM_BASE + 0x184)
  91. #define SPM_APSRC_EVENT_COUNT_STA (SPM_BASE + 0x188)
  92. #define SPM_DDREN_EVENT_COUNT_STA (SPM_BASE + 0x18C)
  93. #define MD32PCM_STA (SPM_BASE + 0x190)
  94. #define MD32PCM_PC (SPM_BASE + 0x194)
  95. #define DVFSRC_EVENT_STA (SPM_BASE + 0x1A4)
  96. #define BUS_PROTECT4_RDY (SPM_BASE + 0x1A8)
  97. #define BUS_PROTECT5_RDY (SPM_BASE + 0x1AC)
  98. #define BUS_PROTECT6_RDY (SPM_BASE + 0x1B0)
  99. #define BUS_PROTECT7_RDY (SPM_BASE + 0x1B4)
  100. #define BUS_PROTECT8_RDY (SPM_BASE + 0x1B8)
  101. #define SPM_TWAM_LAST_STA0 (SPM_BASE + 0x1D0)
  102. #define SPM_TWAM_LAST_STA1 (SPM_BASE + 0x1D4)
  103. #define SPM_TWAM_LAST_STA2 (SPM_BASE + 0x1D8)
  104. #define SPM_TWAM_LAST_STA3 (SPM_BASE + 0x1DC)
  105. #define SPM_TWAM_CURR_STA0 (SPM_BASE + 0x1E0)
  106. #define SPM_TWAM_CURR_STA1 (SPM_BASE + 0x1E4)
  107. #define SPM_TWAM_CURR_STA2 (SPM_BASE + 0x1E8)
  108. #define SPM_TWAM_CURR_STA3 (SPM_BASE + 0x1EC)
  109. #define SPM_TWAM_TIMER_OUT (SPM_BASE + 0x1F0)
  110. #define SPM_CG_CHECK_STA (SPM_BASE + 0x1F4)
  111. #define SPM_DVFS_STA (SPM_BASE + 0x1F8)
  112. #define SPM_DVFS_OPP_STA (SPM_BASE + 0x1FC)
  113. #define SPM_MCUSYS_PWR_CON (SPM_BASE + 0x200)
  114. #define SPM_CPUTOP_PWR_CON (SPM_BASE + 0x204)
  115. #define SPM_CPU0_PWR_CON (SPM_BASE + 0x208)
  116. #define SPM_CPU1_PWR_CON (SPM_BASE + 0x20C)
  117. #define SPM_CPU2_PWR_CON (SPM_BASE + 0x210)
  118. #define SPM_CPU3_PWR_CON (SPM_BASE + 0x214)
  119. #define SPM_CPU4_PWR_CON (SPM_BASE + 0x218)
  120. #define SPM_CPU5_PWR_CON (SPM_BASE + 0x21C)
  121. #define SPM_CPU6_PWR_CON (SPM_BASE + 0x220)
  122. #define SPM_CPU7_PWR_CON (SPM_BASE + 0x224)
  123. #define ARMPLL_CLK_CON (SPM_BASE + 0x22C)
  124. #define MCUSYS_IDLE_STA (SPM_BASE + 0x230)
  125. #define GIC_WAKEUP_STA (SPM_BASE + 0x234)
  126. #define CPU_SPARE_CON (SPM_BASE + 0x238)
  127. #define CPU_SPARE_CON_SET (SPM_BASE + 0x23C)
  128. #define CPU_SPARE_CON_CLR (SPM_BASE + 0x240)
  129. #define ARMPLL_CLK_SEL (SPM_BASE + 0x244)
  130. #define EXT_INT_WAKEUP_REQ (SPM_BASE + 0x248)
  131. #define EXT_INT_WAKEUP_REQ_SET (SPM_BASE + 0x24C)
  132. #define EXT_INT_WAKEUP_REQ_CLR (SPM_BASE + 0x250)
  133. #define CPU_IRQ_MASK (SPM_BASE + 0x260)
  134. #define CPU_IRQ_MASK_SET (SPM_BASE + 0x264)
  135. #define CPU_IRQ_MASK_CLR (SPM_BASE + 0x268)
  136. #define CPU_WFI_EN (SPM_BASE + 0x280)
  137. #define CPU_WFI_EN_SET (SPM_BASE + 0x284)
  138. #define CPU_WFI_EN_CLR (SPM_BASE + 0x288)
  139. #define ROOT_CPUTOP_ADDR (SPM_BASE + 0x2A0)
  140. #define ROOT_CORE_ADDR (SPM_BASE + 0x2A4)
  141. #define SPM2SW_MAILBOX_0 (SPM_BASE + 0x2D0)
  142. #define SPM2SW_MAILBOX_1 (SPM_BASE + 0x2D4)
  143. #define SPM2SW_MAILBOX_2 (SPM_BASE + 0x2D8)
  144. #define SPM2SW_MAILBOX_3 (SPM_BASE + 0x2DC)
  145. #define SW2SPM_WAKEUP (SPM_BASE + 0x2E0)
  146. #define SW2SPM_WAKEUP_SET (SPM_BASE + 0x2E4)
  147. #define SW2SPM_WAKEUP_CLR (SPM_BASE + 0x2E8)
  148. #define SW2SPM_MAILBOX_0 (SPM_BASE + 0x2EC)
  149. #define SW2SPM_MAILBOX_1 (SPM_BASE + 0x2F0)
  150. #define SW2SPM_MAILBOX_2 (SPM_BASE + 0x2F4)
  151. #define SW2SPM_MAILBOX_3 (SPM_BASE + 0x2F8)
  152. #define SW2SPM_CFG (SPM_BASE + 0x2FC)
  153. #define MD1_PWR_CON (SPM_BASE + 0x300)
  154. #define CONN_PWR_CON (SPM_BASE + 0x304)
  155. #define MFG0_PWR_CON (SPM_BASE + 0x308)
  156. #define MFG1_PWR_CON (SPM_BASE + 0x30C)
  157. #define MFG2_PWR_CON (SPM_BASE + 0x310)
  158. #define MFG3_PWR_CON (SPM_BASE + 0x314)
  159. #define MFG4_PWR_CON (SPM_BASE + 0x318)
  160. #define MFG5_PWR_CON (SPM_BASE + 0x31C)
  161. #define MFG6_PWR_CON (SPM_BASE + 0x320)
  162. #define IFR_PWR_CON (SPM_BASE + 0x324)
  163. #define IFR_SUB_PWR_CON (SPM_BASE + 0x328)
  164. #define DPY_PWR_CON (SPM_BASE + 0x32C)
  165. #define DRAMC_MD32_PWR_CON (SPM_BASE + 0x330)
  166. #define ISP_PWR_CON (SPM_BASE + 0x334)
  167. #define ISP2_PWR_CON (SPM_BASE + 0x338)
  168. #define IPE_PWR_CON (SPM_BASE + 0x33C)
  169. #define VDE_PWR_CON (SPM_BASE + 0x340)
  170. #define VDE2_PWR_CON (SPM_BASE + 0x344)
  171. #define VEN_PWR_CON (SPM_BASE + 0x348)
  172. #define VEN_CORE1_PWR_CON (SPM_BASE + 0x34C)
  173. #define MDP_PWR_CON (SPM_BASE + 0x350)
  174. #define DIS_PWR_CON (SPM_BASE + 0x354)
  175. #define AUDIO_PWR_CON (SPM_BASE + 0x358)
  176. #define CAM_PWR_CON (SPM_BASE + 0x35C)
  177. #define CAM_RAWA_PWR_CON (SPM_BASE + 0x360)
  178. #define CAM_RAWB_PWR_CON (SPM_BASE + 0x364)
  179. #define CAM_RAWC_PWR_CON (SPM_BASE + 0x368)
  180. #define SYSRAM_CON (SPM_BASE + 0x36C)
  181. #define SYSROM_CON (SPM_BASE + 0x370)
  182. #define SSPM_SRAM_CON (SPM_BASE + 0x374)
  183. #define SCP_SRAM_CON (SPM_BASE + 0x378)
  184. #define DPY_SHU_SRAM_CON (SPM_BASE + 0x37C)
  185. #define UFS_SRAM_CON (SPM_BASE + 0x380)
  186. #define DEVAPC_IFR_SRAM_CON (SPM_BASE + 0x384)
  187. #define DEVAPC_SUBIFR_SRAM_CON (SPM_BASE + 0x388)
  188. #define DEVAPC_ACP_SRAM_CON (SPM_BASE + 0x38C)
  189. #define USB_SRAM_CON (SPM_BASE + 0x390)
  190. #define DUMMY_SRAM_CON (SPM_BASE + 0x394)
  191. #define MD_EXT_BUCK_ISO_CON (SPM_BASE + 0x398)
  192. #define EXT_BUCK_ISO (SPM_BASE + 0x39C)
  193. #define DXCC_SRAM_CON (SPM_BASE + 0x3A0)
  194. #define MSDC_PWR_CON (SPM_BASE + 0x3A4)
  195. #define DEBUGTOP_SRAM_CON (SPM_BASE + 0x3A8)
  196. #define DP_TX_PWR_CON (SPM_BASE + 0x3AC)
  197. #define DPMAIF_SRAM_CON (SPM_BASE + 0x3B0)
  198. #define DPY_SHU2_SRAM_CON (SPM_BASE + 0x3B4)
  199. #define DRAMC_MCU2_SRAM_CON (SPM_BASE + 0x3B8)
  200. #define DRAMC_MCU_SRAM_CON (SPM_BASE + 0x3BC)
  201. #define MCUPM_PWR_CON (SPM_BASE + 0x3C0)
  202. #define DPY2_PWR_CON (SPM_BASE + 0x3C4)
  203. #define SPM_SRAM_CON (SPM_BASE + 0x3C8)
  204. #define PERI_PWR_CON (SPM_BASE + 0x3D0)
  205. #define NNA0_PWR_CON (SPM_BASE + 0x3D4)
  206. #define NNA1_PWR_CON (SPM_BASE + 0x3D8)
  207. #define NNA2_PWR_CON (SPM_BASE + 0x3DC)
  208. #define NNA_PWR_CON (SPM_BASE + 0x3E0)
  209. #define ADSP_PWR_CON (SPM_BASE + 0x3E4)
  210. #define DPY_SRAM_CON (SPM_BASE + 0x3E8)
  211. #define SPM_MEM_CK_SEL (SPM_BASE + 0x400)
  212. #define SPM_BUS_PROTECT_MASK_B (SPM_BASE + 0x404)
  213. #define SPM_BUS_PROTECT1_MASK_B (SPM_BASE + 0x408)
  214. #define SPM_BUS_PROTECT2_MASK_B (SPM_BASE + 0x40C)
  215. #define SPM_BUS_PROTECT3_MASK_B (SPM_BASE + 0x410)
  216. #define SPM_BUS_PROTECT4_MASK_B (SPM_BASE + 0x414)
  217. #define SPM_EMI_BW_MODE (SPM_BASE + 0x418)
  218. #define AP2MD_PEER_WAKEUP (SPM_BASE + 0x41C)
  219. #define ULPOSC_CON (SPM_BASE + 0x420)
  220. #define SPM2MM_CON (SPM_BASE + 0x424)
  221. #define SPM_BUS_PROTECT5_MASK_B (SPM_BASE + 0x428)
  222. #define SPM2MCUPM_CON (SPM_BASE + 0x42C)
  223. #define AP_MDSRC_REQ (SPM_BASE + 0x430)
  224. #define SPM2EMI_ENTER_ULPM (SPM_BASE + 0x434)
  225. #define SPM2MD_DVFS_CON (SPM_BASE + 0x438)
  226. #define MD2SPM_DVFS_CON (SPM_BASE + 0x43C)
  227. #define SPM_BUS_PROTECT6_MASK_B (SPM_BASE + 0x440)
  228. #define SPM_BUS_PROTECT7_MASK_B (SPM_BASE + 0x444)
  229. #define SPM_BUS_PROTECT8_MASK_B (SPM_BASE + 0x448)
  230. #define SPM_PLL_CON (SPM_BASE + 0x44C)
  231. #define RC_SPM_CTRL (SPM_BASE + 0x450)
  232. #define SPM_DRAM_MCU_SW_CON_0 (SPM_BASE + 0x454)
  233. #define SPM_DRAM_MCU_SW_CON_1 (SPM_BASE + 0x458)
  234. #define SPM_DRAM_MCU_SW_CON_2 (SPM_BASE + 0x45C)
  235. #define SPM_DRAM_MCU_SW_CON_3 (SPM_BASE + 0x460)
  236. #define SPM_DRAM_MCU_SW_CON_4 (SPM_BASE + 0x464)
  237. #define SPM_DRAM_MCU_STA_0 (SPM_BASE + 0x468)
  238. #define SPM_DRAM_MCU_STA_1 (SPM_BASE + 0x46C)
  239. #define SPM_DRAM_MCU_STA_2 (SPM_BASE + 0x470)
  240. #define SPM_DRAM_MCU_SW_SEL_0 (SPM_BASE + 0x474)
  241. #define RELAY_DVFS_LEVEL (SPM_BASE + 0x478)
  242. #define DRAMC_DPY_CLK_SW_CON_0 (SPM_BASE + 0x480)
  243. #define DRAMC_DPY_CLK_SW_CON_1 (SPM_BASE + 0x484)
  244. #define DRAMC_DPY_CLK_SW_CON_2 (SPM_BASE + 0x488)
  245. #define DRAMC_DPY_CLK_SW_CON_3 (SPM_BASE + 0x48C)
  246. #define DRAMC_DPY_CLK_SW_SEL_0 (SPM_BASE + 0x490)
  247. #define DRAMC_DPY_CLK_SW_SEL_1 (SPM_BASE + 0x494)
  248. #define DRAMC_DPY_CLK_SW_SEL_2 (SPM_BASE + 0x498)
  249. #define DRAMC_DPY_CLK_SW_SEL_3 (SPM_BASE + 0x49C)
  250. #define DRAMC_DPY_CLK_SPM_CON (SPM_BASE + 0x4A0)
  251. #define SPM_DVFS_LEVEL (SPM_BASE + 0x4A4)
  252. #define SPM_CIRQ_CON (SPM_BASE + 0x4A8)
  253. #define SPM_DVFS_MISC (SPM_BASE + 0x4AC)
  254. #define RG_MODULE_SW_CG_0_MASK_REQ_0 (SPM_BASE + 0x4B4)
  255. #define RG_MODULE_SW_CG_0_MASK_REQ_1 (SPM_BASE + 0x4B8)
  256. #define RG_MODULE_SW_CG_0_MASK_REQ_2 (SPM_BASE + 0x4BC)
  257. #define RG_MODULE_SW_CG_1_MASK_REQ_0 (SPM_BASE + 0x4C0)
  258. #define RG_MODULE_SW_CG_1_MASK_REQ_1 (SPM_BASE + 0x4C4)
  259. #define RG_MODULE_SW_CG_1_MASK_REQ_2 (SPM_BASE + 0x4C8)
  260. #define RG_MODULE_SW_CG_2_MASK_REQ_0 (SPM_BASE + 0x4CC)
  261. #define RG_MODULE_SW_CG_2_MASK_REQ_1 (SPM_BASE + 0x4D0)
  262. #define RG_MODULE_SW_CG_2_MASK_REQ_2 (SPM_BASE + 0x4D4)
  263. #define RG_MODULE_SW_CG_3_MASK_REQ_0 (SPM_BASE + 0x4D8)
  264. #define RG_MODULE_SW_CG_3_MASK_REQ_1 (SPM_BASE + 0x4DC)
  265. #define RG_MODULE_SW_CG_3_MASK_REQ_2 (SPM_BASE + 0x4E0)
  266. #define PWR_STATUS_MASK_REQ_0 (SPM_BASE + 0x4E4)
  267. #define PWR_STATUS_MASK_REQ_1 (SPM_BASE + 0x4E8)
  268. #define PWR_STATUS_MASK_REQ_2 (SPM_BASE + 0x4EC)
  269. #define SPM_CG_CHECK_CON (SPM_BASE + 0x4F0)
  270. #define SPM_SRC_RDY_STA (SPM_BASE + 0x4F4)
  271. #define SPM_DVS_DFS_LEVEL (SPM_BASE + 0x4F8)
  272. #define SPM_FORCE_DVFS (SPM_BASE + 0x4FC)
  273. #define RC_M00_SRCLKEN_CFG (SPM_BASE + 0x520)
  274. #define SPM_SW_FLAG_0 (SPM_BASE + 0x600)
  275. #define SPM_SW_DEBUG_0 (SPM_BASE + 0x604)
  276. #define SPM_SW_FLAG_1 (SPM_BASE + 0x608)
  277. #define SPM_SW_DEBUG_1 (SPM_BASE + 0x60C)
  278. #define SPM_SW_RSV_0 (SPM_BASE + 0x610)
  279. #define SPM_SW_RSV_1 (SPM_BASE + 0x614)
  280. #define SPM_SW_RSV_2 (SPM_BASE + 0x618)
  281. #define SPM_SW_RSV_3 (SPM_BASE + 0x61C)
  282. #define SPM_SW_RSV_4 (SPM_BASE + 0x620)
  283. #define SPM_SW_RSV_5 (SPM_BASE + 0x624)
  284. #define SPM_SW_RSV_6 (SPM_BASE + 0x628)
  285. #define SPM_SW_RSV_7 (SPM_BASE + 0x62C)
  286. #define SPM_SW_RSV_8 (SPM_BASE + 0x630)
  287. #define SPM_BK_WAKE_EVENT (SPM_BASE + 0x634)
  288. #define SPM_BK_VTCXO_DUR (SPM_BASE + 0x638)
  289. #define SPM_BK_WAKE_MISC (SPM_BASE + 0x63C)
  290. #define SPM_BK_PCM_TIMER (SPM_BASE + 0x640)
  291. #define SPM_RSV_CON_0 (SPM_BASE + 0x650)
  292. #define SPM_RSV_CON_1 (SPM_BASE + 0x654)
  293. #define SPM_RSV_STA_0 (SPM_BASE + 0x658)
  294. #define SPM_RSV_STA_1 (SPM_BASE + 0x65C)
  295. #define SPM_SPARE_CON (SPM_BASE + 0x660)
  296. #define SPM_SPARE_CON_SET (SPM_BASE + 0x664)
  297. #define SPM_SPARE_CON_CLR (SPM_BASE + 0x668)
  298. #define SPM_CROSS_WAKE_M00_REQ (SPM_BASE + 0x66C)
  299. #define SPM_CROSS_WAKE_M01_REQ (SPM_BASE + 0x670)
  300. #define SPM_CROSS_WAKE_M02_REQ (SPM_BASE + 0x674)
  301. #define SPM_CROSS_WAKE_M03_REQ (SPM_BASE + 0x678)
  302. #define SCP_VCORE_LEVEL (SPM_BASE + 0x67C)
  303. #define SC_MM_CK_SEL_CON (SPM_BASE + 0x680)
  304. #define SPARE_ACK_MASK (SPM_BASE + 0x684)
  305. #define SPM_SPARE_FUNCTION (SPM_BASE + 0x688)
  306. #define SPM_DV_CON_0 (SPM_BASE + 0x68C)
  307. #define SPM_DV_CON_1 (SPM_BASE + 0x690)
  308. #define SPM_DV_STA (SPM_BASE + 0x694)
  309. #define CONN_XOWCN_DEBUG_EN (SPM_BASE + 0x698)
  310. #define SPM_SEMA_M0 (SPM_BASE + 0x69C)
  311. #define SPM_SEMA_M1 (SPM_BASE + 0x6A0)
  312. #define SPM_SEMA_M2 (SPM_BASE + 0x6A4)
  313. #define SPM_SEMA_M3 (SPM_BASE + 0x6A8)
  314. #define SPM_SEMA_M4 (SPM_BASE + 0x6AC)
  315. #define SPM_SEMA_M5 (SPM_BASE + 0x6B0)
  316. #define SPM_SEMA_M6 (SPM_BASE + 0x6B4)
  317. #define SPM_SEMA_M7 (SPM_BASE + 0x6B8)
  318. #define SPM2ADSP_MAILBOX (SPM_BASE + 0x6BC)
  319. #define ADSP2SPM_MAILBOX (SPM_BASE + 0x6C0)
  320. #define SPM_ADSP_IRQ (SPM_BASE + 0x6C4)
  321. #define SPM_MD32_IRQ (SPM_BASE + 0x6C8)
  322. #define SPM2PMCU_MAILBOX_0 (SPM_BASE + 0x6CC)
  323. #define SPM2PMCU_MAILBOX_1 (SPM_BASE + 0x6D0)
  324. #define SPM2PMCU_MAILBOX_2 (SPM_BASE + 0x6D4)
  325. #define SPM2PMCU_MAILBOX_3 (SPM_BASE + 0x6D8)
  326. #define PMCU2SPM_MAILBOX_0 (SPM_BASE + 0x6DC)
  327. #define PMCU2SPM_MAILBOX_1 (SPM_BASE + 0x6E0)
  328. #define PMCU2SPM_MAILBOX_2 (SPM_BASE + 0x6E4)
  329. #define PMCU2SPM_MAILBOX_3 (SPM_BASE + 0x6E8)
  330. #define UFS_PSRI_SW (SPM_BASE + 0x6EC)
  331. #define UFS_PSRI_SW_SET (SPM_BASE + 0x6F0)
  332. #define UFS_PSRI_SW_CLR (SPM_BASE + 0x6F4)
  333. #define SPM_AP_SEMA (SPM_BASE + 0x6F8)
  334. #define SPM_SPM_SEMA (SPM_BASE + 0x6FC)
  335. #define SPM_DVFS_CON (SPM_BASE + 0x700)
  336. #define SPM_DVFS_CON_STA (SPM_BASE + 0x704)
  337. #define SPM_PMIC_SPMI_CON (SPM_BASE + 0x708)
  338. #define SPM_DVFS_CMD0 (SPM_BASE + 0x710)
  339. #define SPM_DVFS_CMD1 (SPM_BASE + 0x714)
  340. #define SPM_DVFS_CMD2 (SPM_BASE + 0x718)
  341. #define SPM_DVFS_CMD3 (SPM_BASE + 0x71C)
  342. #define SPM_DVFS_CMD4 (SPM_BASE + 0x720)
  343. #define SPM_DVFS_CMD5 (SPM_BASE + 0x724)
  344. #define SPM_DVFS_CMD6 (SPM_BASE + 0x728)
  345. #define SPM_DVFS_CMD7 (SPM_BASE + 0x72C)
  346. #define SPM_DVFS_CMD8 (SPM_BASE + 0x730)
  347. #define SPM_DVFS_CMD9 (SPM_BASE + 0x734)
  348. #define SPM_DVFS_CMD10 (SPM_BASE + 0x738)
  349. #define SPM_DVFS_CMD11 (SPM_BASE + 0x73C)
  350. #define SPM_DVFS_CMD12 (SPM_BASE + 0x740)
  351. #define SPM_DVFS_CMD13 (SPM_BASE + 0x744)
  352. #define SPM_DVFS_CMD14 (SPM_BASE + 0x748)
  353. #define SPM_DVFS_CMD15 (SPM_BASE + 0x74C)
  354. #define SPM_DVFS_CMD16 (SPM_BASE + 0x750)
  355. #define SPM_DVFS_CMD17 (SPM_BASE + 0x754)
  356. #define SPM_DVFS_CMD18 (SPM_BASE + 0x758)
  357. #define SPM_DVFS_CMD19 (SPM_BASE + 0x75C)
  358. #define SPM_DVFS_CMD20 (SPM_BASE + 0x760)
  359. #define SPM_DVFS_CMD21 (SPM_BASE + 0x764)
  360. #define SPM_DVFS_CMD22 (SPM_BASE + 0x768)
  361. #define SPM_DVFS_CMD23 (SPM_BASE + 0x76C)
  362. #define SYS_TIMER_VALUE_L (SPM_BASE + 0x770)
  363. #define SYS_TIMER_VALUE_H (SPM_BASE + 0x774)
  364. #define SYS_TIMER_START_L (SPM_BASE + 0x778)
  365. #define SYS_TIMER_START_H (SPM_BASE + 0x77C)
  366. #define SYS_TIMER_LATCH_L_00 (SPM_BASE + 0x780)
  367. #define SYS_TIMER_LATCH_H_00 (SPM_BASE + 0x784)
  368. #define SYS_TIMER_LATCH_L_01 (SPM_BASE + 0x788)
  369. #define SYS_TIMER_LATCH_H_01 (SPM_BASE + 0x78C)
  370. #define SYS_TIMER_LATCH_L_02 (SPM_BASE + 0x790)
  371. #define SYS_TIMER_LATCH_H_02 (SPM_BASE + 0x794)
  372. #define SYS_TIMER_LATCH_L_03 (SPM_BASE + 0x798)
  373. #define SYS_TIMER_LATCH_H_03 (SPM_BASE + 0x79C)
  374. #define SYS_TIMER_LATCH_L_04 (SPM_BASE + 0x7A0)
  375. #define SYS_TIMER_LATCH_H_04 (SPM_BASE + 0x7A4)
  376. #define SYS_TIMER_LATCH_L_05 (SPM_BASE + 0x7A8)
  377. #define SYS_TIMER_LATCH_H_05 (SPM_BASE + 0x7AC)
  378. #define SYS_TIMER_LATCH_L_06 (SPM_BASE + 0x7B0)
  379. #define SYS_TIMER_LATCH_H_06 (SPM_BASE + 0x7B4)
  380. #define SYS_TIMER_LATCH_L_07 (SPM_BASE + 0x7B8)
  381. #define SYS_TIMER_LATCH_H_07 (SPM_BASE + 0x7BC)
  382. #define SYS_TIMER_LATCH_L_08 (SPM_BASE + 0x7C0)
  383. #define SYS_TIMER_LATCH_H_08 (SPM_BASE + 0x7C4)
  384. #define SYS_TIMER_LATCH_L_09 (SPM_BASE + 0x7C8)
  385. #define SYS_TIMER_LATCH_H_09 (SPM_BASE + 0x7CC)
  386. #define SYS_TIMER_LATCH_L_10 (SPM_BASE + 0x7D0)
  387. #define SYS_TIMER_LATCH_H_10 (SPM_BASE + 0x7D4)
  388. #define SYS_TIMER_LATCH_L_11 (SPM_BASE + 0x7D8)
  389. #define SYS_TIMER_LATCH_H_11 (SPM_BASE + 0x7DC)
  390. #define SYS_TIMER_LATCH_L_12 (SPM_BASE + 0x7E0)
  391. #define SYS_TIMER_LATCH_H_12 (SPM_BASE + 0x7E4)
  392. #define SYS_TIMER_LATCH_L_13 (SPM_BASE + 0x7E8)
  393. #define SYS_TIMER_LATCH_H_13 (SPM_BASE + 0x7EC)
  394. #define SYS_TIMER_LATCH_L_14 (SPM_BASE + 0x7F0)
  395. #define SYS_TIMER_LATCH_H_14 (SPM_BASE + 0x7F4)
  396. #define SYS_TIMER_LATCH_L_15 (SPM_BASE + 0x7F8)
  397. #define SYS_TIMER_LATCH_H_15 (SPM_BASE + 0x7FC)
  398. #define PCM_WDT_LATCH_0 (SPM_BASE + 0x800)
  399. #define PCM_WDT_LATCH_1 (SPM_BASE + 0x804)
  400. #define PCM_WDT_LATCH_2 (SPM_BASE + 0x808)
  401. #define PCM_WDT_LATCH_3 (SPM_BASE + 0x80C)
  402. #define PCM_WDT_LATCH_4 (SPM_BASE + 0x810)
  403. #define PCM_WDT_LATCH_5 (SPM_BASE + 0x814)
  404. #define PCM_WDT_LATCH_6 (SPM_BASE + 0x818)
  405. #define PCM_WDT_LATCH_7 (SPM_BASE + 0x81C)
  406. #define PCM_WDT_LATCH_8 (SPM_BASE + 0x820)
  407. #define PCM_WDT_LATCH_9 (SPM_BASE + 0x824)
  408. #define PCM_WDT_LATCH_10 (SPM_BASE + 0x828)
  409. #define PCM_WDT_LATCH_11 (SPM_BASE + 0x82C)
  410. #define PCM_WDT_LATCH_12 (SPM_BASE + 0x830)
  411. #define PCM_WDT_LATCH_13 (SPM_BASE + 0x834)
  412. #define PCM_WDT_LATCH_14 (SPM_BASE + 0x838)
  413. #define PCM_WDT_LATCH_15 (SPM_BASE + 0x83C)
  414. #define PCM_WDT_LATCH_16 (SPM_BASE + 0x840)
  415. #define PCM_WDT_LATCH_17 (SPM_BASE + 0x844)
  416. #define PCM_WDT_LATCH_18 (SPM_BASE + 0x848)
  417. #define PCM_WDT_LATCH_SPARE_0 (SPM_BASE + 0x84C)
  418. #define PCM_WDT_LATCH_SPARE_1 (SPM_BASE + 0x850)
  419. #define PCM_WDT_LATCH_SPARE_2 (SPM_BASE + 0x854)
  420. #define PCM_WDT_LATCH_CONN_0 (SPM_BASE + 0x870)
  421. #define PCM_WDT_LATCH_CONN_1 (SPM_BASE + 0x874)
  422. #define PCM_WDT_LATCH_CONN_2 (SPM_BASE + 0x878)
  423. #define DRAMC_GATING_ERR_LATCH_CH0_0 (SPM_BASE + 0x8A0)
  424. #define DRAMC_GATING_ERR_LATCH_CH0_1 (SPM_BASE + 0x8A4)
  425. #define DRAMC_GATING_ERR_LATCH_CH0_2 (SPM_BASE + 0x8A8)
  426. #define DRAMC_GATING_ERR_LATCH_CH0_3 (SPM_BASE + 0x8AC)
  427. #define DRAMC_GATING_ERR_LATCH_CH0_4 (SPM_BASE + 0x8B0)
  428. #define DRAMC_GATING_ERR_LATCH_CH0_5 (SPM_BASE + 0x8B4)
  429. #define DRAMC_GATING_ERR_LATCH_CH0_6 (SPM_BASE + 0x8B8)
  430. #define DRAMC_GATING_ERR_LATCH_SPARE_0 (SPM_BASE + 0x8F4)
  431. #define SPM_ACK_CHK_CON_0 (SPM_BASE + 0x900)
  432. #define SPM_ACK_CHK_PC_0 (SPM_BASE + 0x904)
  433. #define SPM_ACK_CHK_SEL_0 (SPM_BASE + 0x908)
  434. #define SPM_ACK_CHK_TIMER_0 (SPM_BASE + 0x90C)
  435. #define SPM_ACK_CHK_STA_0 (SPM_BASE + 0x910)
  436. #define SPM_ACK_CHK_SWINT_0 (SPM_BASE + 0x914)
  437. #define SPM_ACK_CHK_CON_1 (SPM_BASE + 0x918)
  438. #define SPM_ACK_CHK_PC_1 (SPM_BASE + 0x91C)
  439. #define SPM_ACK_CHK_SEL_1 (SPM_BASE + 0x920)
  440. #define SPM_ACK_CHK_TIMER_1 (SPM_BASE + 0x924)
  441. #define SPM_ACK_CHK_STA_1 (SPM_BASE + 0x928)
  442. #define SPM_ACK_CHK_SWINT_1 (SPM_BASE + 0x92C)
  443. #define SPM_ACK_CHK_CON_2 (SPM_BASE + 0x930)
  444. #define SPM_ACK_CHK_PC_2 (SPM_BASE + 0x934)
  445. #define SPM_ACK_CHK_SEL_2 (SPM_BASE + 0x938)
  446. #define SPM_ACK_CHK_TIMER_2 (SPM_BASE + 0x93C)
  447. #define SPM_ACK_CHK_STA_2 (SPM_BASE + 0x940)
  448. #define SPM_ACK_CHK_SWINT_2 (SPM_BASE + 0x944)
  449. #define SPM_ACK_CHK_CON_3 (SPM_BASE + 0x948)
  450. #define SPM_ACK_CHK_PC_3 (SPM_BASE + 0x94C)
  451. #define SPM_ACK_CHK_SEL_3 (SPM_BASE + 0x950)
  452. #define SPM_ACK_CHK_TIMER_3 (SPM_BASE + 0x954)
  453. #define SPM_ACK_CHK_STA_3 (SPM_BASE + 0x958)
  454. #define SPM_ACK_CHK_SWINT_3 (SPM_BASE + 0x95C)
  455. #define SPM_COUNTER_0 (SPM_BASE + 0x960)
  456. #define SPM_COUNTER_1 (SPM_BASE + 0x964)
  457. #define SPM_COUNTER_2 (SPM_BASE + 0x968)
  458. #define SYS_TIMER_CON (SPM_BASE + 0x96C)
  459. #define SPM_TWAM_CON (SPM_BASE + 0x970)
  460. #define SPM_TWAM_WINDOW_LEN (SPM_BASE + 0x974)
  461. #define SPM_TWAM_IDLE_SEL (SPM_BASE + 0x978)
  462. #define SPM_TWAM_EVENT_CLEAR (SPM_BASE + 0x97C)
  463. #define OPP0_TABLE (SPM_BASE + 0x980)
  464. #define OPP1_TABLE (SPM_BASE + 0x984)
  465. #define OPP2_TABLE (SPM_BASE + 0x988)
  466. #define OPP3_TABLE (SPM_BASE + 0x98C)
  467. #define OPP4_TABLE (SPM_BASE + 0x990)
  468. #define OPP5_TABLE (SPM_BASE + 0x994)
  469. #define OPP6_TABLE (SPM_BASE + 0x998)
  470. #define OPP7_TABLE (SPM_BASE + 0x99C)
  471. #define OPP8_TABLE (SPM_BASE + 0x9A0)
  472. #define OPP9_TABLE (SPM_BASE + 0x9A4)
  473. #define OPP10_TABLE (SPM_BASE + 0x9A8)
  474. #define OPP11_TABLE (SPM_BASE + 0x9AC)
  475. #define OPP12_TABLE (SPM_BASE + 0x9B0)
  476. #define OPP13_TABLE (SPM_BASE + 0x9B4)
  477. #define OPP14_TABLE (SPM_BASE + 0x9B8)
  478. #define OPP15_TABLE (SPM_BASE + 0x9BC)
  479. #define OPP16_TABLE (SPM_BASE + 0x9C0)
  480. #define OPP17_TABLE (SPM_BASE + 0x9C4)
  481. #define SHU0_ARRAY (SPM_BASE + 0x9C8)
  482. #define SHU1_ARRAY (SPM_BASE + 0x9CC)
  483. #define SHU2_ARRAY (SPM_BASE + 0x9D0)
  484. #define SHU3_ARRAY (SPM_BASE + 0x9D4)
  485. #define SHU4_ARRAY (SPM_BASE + 0x9D8)
  486. #define SHU5_ARRAY (SPM_BASE + 0x9DC)
  487. #define SHU6_ARRAY (SPM_BASE + 0x9E0)
  488. #define SHU7_ARRAY (SPM_BASE + 0x9E4)
  489. #define SHU8_ARRAY (SPM_BASE + 0x9E8)
  490. #define SHU9_ARRAY (SPM_BASE + 0x9EC)
  491. /* POWERON_CONFIG_EN (0x10006000 + 0x000) */
  492. #define BCLK_CG_EN_LSB (1U << 0) /* 1b */
  493. #define PROJECT_CODE_LSB (1U << 16) /* 16b */
  494. /* SPM_POWER_ON_VAL0 (0x10006000 + 0x004) */
  495. #define POWER_ON_VAL0_LSB (1U << 0) /* 32b */
  496. /* SPM_POWER_ON_VAL1 (0x10006000 + 0x008) */
  497. #define POWER_ON_VAL1_LSB (1U << 0) /* 32b */
  498. /* SPM_CLK_CON (0x10006000 + 0x00C) */
  499. #define REG_SRCCLKEN0_CTL_LSB (1U << 0) /* 2b */
  500. #define REG_SRCCLKEN1_CTL_LSB (1U << 2) /* 2b */
  501. #define RC_SW_SRCCLKEN_RC (1U << 3) /* 1b */
  502. #define RC_SW_SRCCLKEN_FPM (1U << 4) /* 1b */
  503. #define SYS_SETTLE_SEL_LSB (1U << 4) /* 1b */
  504. #define REG_SPM_LOCK_INFRA_DCM_LSB (1U << 5) /* 1b */
  505. #define REG_SRCCLKEN_MASK_LSB (1U << 6) /* 3b */
  506. #define REG_MD1_C32RM_EN_LSB (1U << 9) /* 1b */
  507. #define REG_MD2_C32RM_EN_LSB (1U << 10) /* 1b */
  508. #define REG_CLKSQ0_SEL_CTRL_LSB (1U << 11) /* 1b */
  509. #define REG_CLKSQ1_SEL_CTRL_LSB (1U << 12) /* 1b */
  510. #define REG_SRCCLKEN0_EN_LSB (1U << 13) /* 1b */
  511. #define REG_SRCCLKEN1_EN_LSB (1U << 14) /* 1b */
  512. #define SCP_DCM_EN_LSB (1U << 15) /* 1b */
  513. #define REG_SYSCLK0_SRC_MASK_B_LSB (1U << 16) /* 8b */
  514. #define REG_SYSCLK1_SRC_MASK_B_LSB (1U << 24) /* 8b */
  515. /* SPM_CLK_SETTLE (0x10006000 + 0x010) */
  516. #define SYSCLK_SETTLE_LSB (1U << 0) /* 28b */
  517. /* SPM_AP_STANDBY_CON (0x10006000 + 0x014) */
  518. #define REG_WFI_OP_LSB (1U << 0) /* 1b */
  519. #define REG_WFI_TYPE_LSB (1U << 1) /* 1b */
  520. #define REG_MP0_CPUTOP_IDLE_MASK_LSB (1U << 2) /* 1b */
  521. #define REG_MP1_CPUTOP_IDLE_MASK_LSB (1U << 3) /* 1b */
  522. #define REG_MCUSYS_IDLE_MASK_LSB (1U << 4) /* 1b */
  523. #define REG_MD_APSRC_1_SEL_LSB (1U << 25) /* 1b */
  524. #define REG_MD_APSRC_0_SEL_LSB (1U << 26) /* 1b */
  525. #define REG_CONN_APSRC_SEL_LSB (1U << 29) /* 1b */
  526. /* PCM_CON0 (0x10006000 + 0x018) */
  527. #define PCM_CK_EN_LSB (1U << 2) /* 1b */
  528. #define RG_EN_IM_SLEEP_DVS_LSB (1U << 3) /* 1b */
  529. #define PCM_CK_FROM_CKSYS_LSB (1U << 4) /* 1b */
  530. #define PCM_SW_RESET_LSB (1U << 15) /* 1b */
  531. #define PCM_CON0_PROJECT_CODE_LSB (1U << 16) /* 16b */
  532. /* PCM_CON1 (0x10006000 + 0x01C) */
  533. #define REG_IM_SLEEP_EN_LSB (1U << 1) /* 1b */
  534. #define REG_SPM_SRAM_CTRL_MUX_LSB (1U << 2) /* 1b */
  535. #define RG_AHBMIF_APBEN_LSB (1U << 3) /* 1b */
  536. #define RG_PCM_TIMER_EN_LSB (1U << 5) /* 1b */
  537. #define REG_SPM_EVENT_COUNTER_CLR_LSB (1U << 6) /* 1b */
  538. #define RG_DIS_MIF_PROT_LSB (1U << 7) /* 1b */
  539. #define RG_PCM_WDT_EN_LSB (1U << 8) /* 1b */
  540. #define RG_PCM_WDT_WAKE_LSB (1U << 9) /* 1b */
  541. #define SPM_LEAVE_SUSPEND_MERGE_MASK_LSB (1U << 10) /* 1b */
  542. #define REG_SRCCLKEN_FAST_RESP_LSB (1U << 13) /* 1b */
  543. #define REG_MD32_APB_INTERNAL_EN_LSB (1U << 14) /* 1b */
  544. #define RG_PCM_IRQ_MSK_LSB (1U << 15) /* 1b */
  545. #define PCM_CON1_PROJECT_CODE_LSB (1U << 16) /* 16b */
  546. /* SPM_POWER_ON_VAL2 (0x10006000 + 0x020) */
  547. #define POWER_ON_VAL2_LSB (1U << 0) /* 32b */
  548. /* SPM_POWER_ON_VAL3 (0x10006000 + 0x024) */
  549. #define POWER_ON_VAL3_LSB (1U << 0) /* 32b */
  550. /* PCM_REG_DATA_INI (0x10006000 + 0x028) */
  551. #define PCM_REG_DATA_INI_LSB (1U << 0) /* 32b */
  552. /* PCM_PWR_IO_EN (0x10006000 + 0x02C) */
  553. #define PCM_PWR_IO_EN_LSB (1U << 0) /* 8b */
  554. #define RG_RF_SYNC_EN_LSB (1U << 16) /* 8b */
  555. /* PCM_TIMER_VAL (0x10006000 + 0x030) */
  556. #define REG_PCM_TIMER_VAL_LSB (1U << 0) /* 32b */
  557. /* PCM_WDT_VAL (0x10006000 + 0x034) */
  558. #define RG_PCM_WDT_VAL_LSB (1U << 0) /* 32b */
  559. /* SPM_SW_RST_CON (0x10006000 + 0x040) */
  560. #define SPM_SW_RST_CON_LSB (1U << 0) /* 16b */
  561. #define SPM_SW_RST_CON_PROJECT_CODE_LSB (1U << 16) /* 16b */
  562. /* SPM_SW_RST_CON_SET (0x10006000 + 0x044) */
  563. #define SPM_SW_RST_CON_SET_LSB (1U << 0) /* 16b */
  564. #define SPM_SW_RST_CON_SET_PROJECT_CODE_LSB (1U << 16) /* 16b */
  565. /* SPM_SW_RST_CON_CLR (0x10006000 + 0x048) */
  566. #define SPM_SW_RST_CON_CLR_LSB (1U << 0) /* 16b */
  567. #define SPM_SW_RST_CON_CLR_PROJECT_CODE_LSB (1U << 16) /* 16b */
  568. /* SPM_SRC6_MASK (0x10006000 + 0x04C) */
  569. #define REG_CCIF_EVENT_INFRA_REQ_MASK_B_LSB (1U << 0) /* 16b */
  570. #define REG_CCIF_EVENT_APSRC_REQ_MASK_B_LSB (1U << 16) /* 16b */
  571. /* MD32_CLK_CON (0x10006000 + 0x084) */
  572. #define REG_MD32_26M_CK_SEL_LSB (1U << 0) /* 1b */
  573. #define REG_MD32_DCM_EN_LSB (1U << 1) /* 1b */
  574. /* SPM_SRAM_RSV_CON (0x10006000 + 0x088) */
  575. #define SPM_SRAM_SLEEP_B_ECO_EN_LSB (1U << 0) /* 1b */
  576. /* SPM_SWINT (0x10006000 + 0x08C) */
  577. #define SPM_SWINT_LSB (1U << 0) /* 32b */
  578. /* SPM_SWINT_SET (0x10006000 + 0x090) */
  579. #define SPM_SWINT_SET_LSB (1U << 0) /* 32b */
  580. /* SPM_SWINT_CLR (0x10006000 + 0x094) */
  581. #define SPM_SWINT_CLR_LSB (1U << 0) /* 32b */
  582. /* SPM_SCP_MAILBOX (0x10006000 + 0x098) */
  583. #define SPM_SCP_MAILBOX_LSB (1U << 0) /* 32b */
  584. /* SCP_SPM_MAILBOX (0x10006000 + 0x09C) */
  585. #define SCP_SPM_MAILBOX_LSB (1U << 0) /* 32b */
  586. /* SPM_WAKEUP_EVENT_SENS (0x10006000 + 0x0A0) */
  587. #define REG_WAKEUP_EVENT_SENS_LSB (1U << 0) /* 32b */
  588. /* SPM_WAKEUP_EVENT_CLEAR (0x10006000 + 0x0A4) */
  589. #define REG_WAKEUP_EVENT_CLR_LSB (1U << 0) /* 32b */
  590. /* SPM_SCP_IRQ (0x10006000 + 0x0AC) */
  591. #define SC_SPM2SCP_WAKEUP_LSB (1U << 0) /* 1b */
  592. #define SC_SCP2SPM_WAKEUP_LSB (1U << 4) /* 1b */
  593. /* SPM_CPU_WAKEUP_EVENT (0x10006000 + 0x0B0) */
  594. #define REG_CPU_WAKEUP_LSB (1U << 0) /* 1b */
  595. /* SPM_IRQ_MASK (0x10006000 + 0x0B4) */
  596. #define REG_SPM_IRQ_MASK_LSB (1U << 0) /* 32b */
  597. /* SPM_SRC_REQ (0x10006000 + 0x0B8) */
  598. #define REG_SPM_APSRC_REQ_LSB (1U << 0) /* 1b */
  599. #define REG_SPM_F26M_REQ_LSB (1U << 1) /* 1b */
  600. #define REG_SPM_INFRA_REQ_LSB (1U << 3) /* 1b */
  601. #define REG_SPM_VRF18_REQ_LSB (1U << 4) /* 1b */
  602. #define REG_SPM_DDREN_REQ_LSB (1U << 7) /* 1b */
  603. #define REG_SPM_DVFS_REQ_LSB (1U << 8) /* 1b */
  604. #define REG_SPM_SW_MAILBOX_REQ_LSB (1U << 9) /* 1b */
  605. #define REG_SPM_SSPM_MAILBOX_REQ_LSB (1U << 10) /* 1b */
  606. #define REG_SPM_ADSP_MAILBOX_REQ_LSB (1U << 11) /* 1b */
  607. #define REG_SPM_SCP_MAILBOX_REQ_LSB (1U << 12) /* 1b */
  608. /* SPM_SRC_MASK (0x10006000 + 0x0BC) */
  609. #define REG_MD_0_SRCCLKENA_MASK_B_LSB (1U << 0) /* 1b */
  610. #define REG_MD_0_INFRA_REQ_MASK_B_LSB (1U << 1) /* 1b */
  611. #define REG_MD_0_APSRC_REQ_MASK_B_LSB (1U << 2) /* 1b */
  612. #define REG_MD_0_VRF18_REQ_MASK_B_LSB (1U << 3) /* 1b */
  613. #define REG_MD_0_DDREN_REQ_MASK_B_LSB (1U << 4) /* 1b */
  614. #define REG_MD_1_SRCCLKENA_MASK_B_LSB (1U << 5) /* 1b */
  615. #define REG_MD_1_INFRA_REQ_MASK_B_LSB (1U << 6) /* 1b */
  616. #define REG_MD_1_APSRC_REQ_MASK_B_LSB (1U << 7) /* 1b */
  617. #define REG_MD_1_VRF18_REQ_MASK_B_LSB (1U << 8) /* 1b */
  618. #define REG_MD_1_DDREN_REQ_MASK_B_LSB (1U << 9) /* 1b */
  619. #define REG_CONN_SRCCLKENA_MASK_B_LSB (1U << 10) /* 1b */
  620. #define REG_CONN_SRCCLKENB_MASK_B_LSB (1U << 11) /* 1b */
  621. #define REG_CONN_INFRA_REQ_MASK_B_LSB (1U << 12) /* 1b */
  622. #define REG_CONN_APSRC_REQ_MASK_B_LSB (1U << 13) /* 1b */
  623. #define REG_CONN_VRF18_REQ_MASK_B_LSB (1U << 14) /* 1b */
  624. #define REG_CONN_DDREN_REQ_MASK_B_LSB (1U << 15) /* 1b */
  625. #define REG_CONN_VFE28_MASK_B_LSB (1U << 16) /* 1b */
  626. #define REG_SRCCLKENI_SRCCLKENA_MASK_B_LSB (1U << 17) /* 3b */
  627. #define REG_SRCCLKENI_INFRA_REQ_MASK_B_LSB (1U << 20) /* 3b */
  628. #define REG_INFRASYS_APSRC_REQ_MASK_B_LSB (1U << 25) /* 1b */
  629. #define REG_INFRASYS_DDREN_REQ_MASK_B_LSB (1U << 26) /* 1b */
  630. #define REG_SSPM_SRCCLKENA_MASK_B_LSB (1U << 27) /* 1b */
  631. #define REG_SSPM_INFRA_REQ_MASK_B_LSB (1U << 28) /* 1b */
  632. #define REG_SSPM_APSRC_REQ_MASK_B_LSB (1U << 29) /* 1b */
  633. #define REG_SSPM_VRF18_REQ_MASK_B_LSB (1U << 30) /* 1b */
  634. #define REG_SSPM_DDREN_REQ_MASK_B_LSB (1U << 31) /* 1b */
  635. /* SPM_SRC2_MASK (0x10006000 + 0x0C0) */
  636. #define REG_SCP_SRCCLKENA_MASK_B_LSB (1U << 0) /* 1b */
  637. #define REG_SCP_INFRA_REQ_MASK_B_LSB (1U << 1) /* 1b */
  638. #define REG_SCP_APSRC_REQ_MASK_B_LSB (1U << 2) /* 1b */
  639. #define REG_SCP_VRF18_REQ_MASK_B_LSB (1U << 3) /* 1b */
  640. #define REG_SCP_DDREN_REQ_MASK_B_LSB (1U << 4) /* 1b */
  641. #define REG_AUDIO_DSP_SRCCLKENA_MASK_B_LSB (1U << 5) /* 1b */
  642. #define REG_AUDIO_DSP_INFRA_REQ_MASK_B_LSB (1U << 6) /* 1b */
  643. #define REG_AUDIO_DSP_APSRC_REQ_MASK_B_LSB (1U << 7) /* 1b */
  644. #define REG_AUDIO_DSP_VRF18_REQ_MASK_B_LSB (1U << 8) /* 1b */
  645. #define REG_AUDIO_DSP_DDREN_REQ_MASK_B_LSB (1U << 9) /* 1b */
  646. #define REG_UFS_SRCCLKENA_MASK_B_LSB (1U << 10) /* 1b */
  647. #define REG_UFS_INFRA_REQ_MASK_B_LSB (1U << 11) /* 1b */
  648. #define REG_UFS_APSRC_REQ_MASK_B_LSB (1U << 12) /* 1b */
  649. #define REG_UFS_VRF18_REQ_MASK_B_LSB (1U << 13) /* 1b */
  650. #define REG_UFS_DDREN_REQ_MASK_B_LSB (1U << 14) /* 1b */
  651. #define REG_DISP0_APSRC_REQ_MASK_B_LSB (1U << 15) /* 1b */
  652. #define REG_DISP0_DDREN_REQ_MASK_B_LSB (1U << 16) /* 1b */
  653. #define REG_DISP1_APSRC_REQ_MASK_B_LSB (1U << 17) /* 1b */
  654. #define REG_DISP1_DDREN_REQ_MASK_B_LSB (1U << 18) /* 1b */
  655. #define REG_GCE_INFRA_REQ_MASK_B_LSB (1U << 19) /* 1b */
  656. #define REG_GCE_APSRC_REQ_MASK_B_LSB (1U << 20) /* 1b */
  657. #define REG_GCE_VRF18_REQ_MASK_B_LSB (1U << 21) /* 1b */
  658. #define REG_GCE_DDREN_REQ_MASK_B_LSB (1U << 22) /* 1b */
  659. #define REG_APU_SRCCLKENA_MASK_B_LSB (1U << 23) /* 1b */
  660. #define REG_APU_INFRA_REQ_MASK_B_LSB (1U << 24) /* 1b */
  661. #define REG_APU_APSRC_REQ_MASK_B_LSB (1U << 25) /* 1b */
  662. #define REG_APU_VRF18_REQ_MASK_B_LSB (1U << 26) /* 1b */
  663. #define REG_APU_DDREN_REQ_MASK_B_LSB (1U << 27) /* 1b */
  664. #define REG_CG_CHECK_SRCCLKENA_MASK_B_LSB (1U << 28) /* 1b */
  665. #define REG_CG_CHECK_APSRC_REQ_MASK_B_LSB (1U << 29) /* 1b */
  666. #define REG_CG_CHECK_VRF18_REQ_MASK_B_LSB (1U << 30) /* 1b */
  667. #define REG_CG_CHECK_DDREN_REQ_MASK_B_LSB (1U << 31) /* 1b */
  668. /* SPM_SRC3_MASK (0x10006000 + 0x0C4) */
  669. #define REG_DVFSRC_EVENT_TRIGGER_MASK_B_LSB (1U << 0) /* 1b */
  670. #define REG_SW2SPM_WAKEUP_MASK_B_LSB (1U << 1) /* 4b */
  671. #define REG_ADSP2SPM_WAKEUP_MASK_B_LSB (1U << 5) /* 1b */
  672. #define REG_SSPM2SPM_WAKEUP_MASK_B_LSB (1U << 6) /* 4b */
  673. #define REG_SCP2SPM_WAKEUP_MASK_B_LSB (1U << 10) /* 1b */
  674. #define REG_CSYSPWRUP_ACK_MASK_LSB (1U << 11) /* 1b */
  675. #define REG_SPM_RESERVED_SRCCLKENA_MASK_B_LSB (1U << 12) /* 1b */
  676. #define REG_SPM_RESERVED_INFRA_REQ_MASK_B_LSB (1U << 13) /* 1b */
  677. #define REG_SPM_RESERVED_APSRC_REQ_MASK_B_LSB (1U << 14) /* 1b */
  678. #define REG_SPM_RESERVED_VRF18_REQ_MASK_B_LSB (1U << 15) /* 1b */
  679. #define REG_SPM_RESERVED_DDREN_REQ_MASK_B_LSB (1U << 16) /* 1b */
  680. #define REG_MCUPM_SRCCLKENA_MASK_B_LSB (1U << 17) /* 1b */
  681. #define REG_MCUPM_INFRA_REQ_MASK_B_LSB (1U << 18) /* 1b */
  682. #define REG_MCUPM_APSRC_REQ_MASK_B_LSB (1U << 19) /* 1b */
  683. #define REG_MCUPM_VRF18_REQ_MASK_B_LSB (1U << 20) /* 1b */
  684. #define REG_MCUPM_DDREN_REQ_MASK_B_LSB (1U << 21) /* 1b */
  685. #define REG_MSDC0_SRCCLKENA_MASK_B_LSB (1U << 22) /* 1b */
  686. #define REG_MSDC0_INFRA_REQ_MASK_B_LSB (1U << 23) /* 1b */
  687. #define REG_MSDC0_APSRC_REQ_MASK_B_LSB (1U << 24) /* 1b */
  688. #define REG_MSDC0_VRF18_REQ_MASK_B_LSB (1U << 25) /* 1b */
  689. #define REG_MSDC0_DDREN_REQ_MASK_B_LSB (1U << 26) /* 1b */
  690. #define REG_MSDC1_SRCCLKENA_MASK_B_LSB (1U << 27) /* 1b */
  691. #define REG_MSDC1_INFRA_REQ_MASK_B_LSB (1U << 28) /* 1b */
  692. #define REG_MSDC1_APSRC_REQ_MASK_B_LSB (1U << 29) /* 1b */
  693. #define REG_MSDC1_VRF18_REQ_MASK_B_LSB (1U << 30) /* 1b */
  694. #define REG_MSDC1_DDREN_REQ_MASK_B_LSB (1U << 31) /* 1b */
  695. /* SPM_SRC4_MASK (0x10006000 + 0x0C8) */
  696. #define REG_CCIF_EVENT_SRCCLKENA_MASK_B_LSB (1U << 0) /* 16b */
  697. #define REG_BAK_PSRI_SRCCLKENA_MASK_B_LSB (1U << 16) /* 1b */
  698. #define REG_BAK_PSRI_INFRA_REQ_MASK_B_LSB (1U << 17) /* 1b */
  699. #define REG_BAK_PSRI_APSRC_REQ_MASK_B_LSB (1U << 18) /* 1b */
  700. #define REG_BAK_PSRI_VRF18_REQ_MASK_B_LSB (1U << 19) /* 1b */
  701. #define REG_BAK_PSRI_DDREN_REQ_MASK_B_LSB (1U << 20) /* 1b */
  702. #define REG_DRAMC_MD32_INFRA_REQ_MASK_B_LSB (1U << 21) /* 2b */
  703. #define REG_DRAMC_MD32_VRF18_REQ_MASK_B_LSB (1U << 23) /* 2b */
  704. #define REG_CONN_SRCCLKENB2PWRAP_MASK_B_LSB (1U << 25) /* 1b */
  705. #define REG_DRAMC_MD32_APSRC_REQ_MASK_B_LSB (1U << 26) /* 2b */
  706. /* SPM_SRC5_MASK (0x10006000 + 0x0CC) */
  707. #define REG_MCUSYS_MERGE_APSRC_REQ_MASK_B_LSB (1U << 0) /* 9b */
  708. #define REG_MCUSYS_MERGE_DDREN_REQ_MASK_B_LSB (1U << 9) /* 9b */
  709. #define REG_AFE_SRCCLKENA_MASK_B_LSB (1U << 18) /* 1b */
  710. #define REG_AFE_INFRA_REQ_MASK_B_LSB (1U << 19) /* 1b */
  711. #define REG_AFE_APSRC_REQ_MASK_B_LSB (1U << 20) /* 1b */
  712. #define REG_AFE_VRF18_REQ_MASK_B_LSB (1U << 21) /* 1b */
  713. #define REG_AFE_DDREN_REQ_MASK_B_LSB (1U << 22) /* 1b */
  714. #define REG_MSDC2_SRCCLKENA_MASK_B_LSB (1U << 23) /* 1b */
  715. #define REG_MSDC2_INFRA_REQ_MASK_B_LSB (1U << 24) /* 1b */
  716. #define REG_MSDC2_APSRC_REQ_MASK_B_LSB (1U << 25) /* 1b */
  717. #define REG_MSDC2_VRF18_REQ_MASK_B_LSB (1U << 26) /* 1b */
  718. #define REG_MSDC2_DDREN_REQ_MASK_B_LSB (1U << 27) /* 1b */
  719. /* SPM_WAKEUP_EVENT_MASK (0x10006000 + 0x0D0) */
  720. #define REG_WAKEUP_EVENT_MASK_LSB (1U << 0) /* 32b */
  721. /* SPM_WAKEUP_EVENT_EXT_MASK (0x10006000 + 0x0D4) */
  722. #define REG_EXT_WAKEUP_EVENT_MASK_LSB (1U << 0) /* 32b */
  723. /* SPM_SRC7_MASK (0x10006000 + 0x0D8) */
  724. #define REG_PCIE_SRCCLKENA_MASK_B_LSB (1U << 0) /* 1b */
  725. #define REG_PCIE_INFRA_REQ_MASK_B_LSB (1U << 1) /* 1b */
  726. #define REG_PCIE_APSRC_REQ_MASK_B_LSB (1U << 2) /* 1b */
  727. #define REG_PCIE_VRF18_REQ_MASK_B_LSB (1U << 3) /* 1b */
  728. #define REG_PCIE_DDREN_REQ_MASK_B_LSB (1U << 4) /* 1b */
  729. #define REG_DPMAIF_SRCCLKENA_MASK_B_LSB (1U << 5) /* 1b */
  730. #define REG_DPMAIF_INFRA_REQ_MASK_B_LSB (1U << 6) /* 1b */
  731. #define REG_DPMAIF_APSRC_REQ_MASK_B_LSB (1U << 7) /* 1b */
  732. #define REG_DPMAIF_VRF18_REQ_MASK_B_LSB (1U << 8) /* 1b */
  733. #define REG_DPMAIF_DDREN_REQ_MASK_B_LSB (1U << 9) /* 1b */
  734. /* SCP_CLK_CON (0x10006000 + 0x0DC) */
  735. #define REG_SCP_26M_CK_SEL_LSB (1U << 0) /* 1b */
  736. #define REG_SCP_DCM_EN_LSB (1U << 1) /* 1b */
  737. #define SCP_SECURE_VREQ_MASK_LSB (1U << 2) /* 1b */
  738. #define SCP_SLP_REQ_LSB (1U << 3) /* 1b */
  739. #define SCP_SLP_ACK_LSB (1U << 4) /* 1b */
  740. /* PCM_DEBUG_CON (0x10006000 + 0x0E0) */
  741. #define PCM_DEBUG_OUT_ENABLE_LSB (1U << 0) /* 1b */
  742. /* DDREN_DBC_CON (0x10006000 + 0x0E8) */
  743. #define REG_DDREN_DBC_LEN_LSB (1U << 0) /* 10b */
  744. #define REG_DDREN_DBC_EN_LSB (1U << 16) /* 1b */
  745. /* SPM_RESOURCE_ACK_CON4 (0x10006000 + 0x0EC) */
  746. #define REG_DPMAIF_SRCCLKENA_ACK_MASK_LSB (1U << 0) /* 1b */
  747. #define REG_DPMAIF_INFRA_ACK_MASK_LSB (1U << 1) /* 1b */
  748. #define REG_DPMAIF_APSRC_ACK_MASK_LSB (1U << 2) /* 1b */
  749. #define REG_DPMAIF_VRF18_ACK_MASK_LSB (1U << 3) /* 1b */
  750. #define REG_DPMAIF_DDREN_ACK_MASK_LSB (1U << 4) /* 1b */
  751. /* SPM_RESOURCE_ACK_CON0 (0x10006000 + 0x0F0) */
  752. #define REG_MD_0_SRCCLKENA_ACK_MASK_LSB (1U << 0) /* 1b */
  753. #define REG_MD_0_INFRA_ACK_MASK_LSB (1U << 1) /* 1b */
  754. #define REG_MD_0_APSRC_ACK_MASK_LSB (1U << 2) /* 1b */
  755. #define REG_MD_0_VRF18_ACK_MASK_LSB (1U << 3) /* 1b */
  756. #define REG_MD_0_DDREN_ACK_MASK_LSB (1U << 4) /* 1b */
  757. #define REG_MD_1_SRCCLKENA_ACK_MASK_LSB (1U << 5) /* 1b */
  758. #define REG_MD_1_INFRA_ACK_MASK_LSB (1U << 6) /* 1b */
  759. #define REG_MD_1_APSRC_ACK_MASK_LSB (1U << 7) /* 1b */
  760. #define REG_MD_1_VRF18_ACK_MASK_LSB (1U << 8) /* 1b */
  761. #define REG_MD_1_DDREN_ACK_MASK_LSB (1U << 9) /* 1b */
  762. #define REG_CONN_SRCCLKENA_ACK_MASK_LSB (1U << 10) /* 1b */
  763. #define REG_CONN_INFRA_ACK_MASK_LSB (1U << 11) /* 1b */
  764. #define REG_CONN_APSRC_ACK_MASK_LSB (1U << 12) /* 1b */
  765. #define REG_CONN_VRF18_ACK_MASK_LSB (1U << 13) /* 1b */
  766. #define REG_CONN_DDREN_ACK_MASK_LSB (1U << 14) /* 1b */
  767. #define REG_SSPM_SRCCLKENA_ACK_MASK_LSB (1U << 15) /* 1b */
  768. #define REG_SSPM_INFRA_ACK_MASK_LSB (1U << 16) /* 1b */
  769. #define REG_SSPM_APSRC_ACK_MASK_LSB (1U << 17) /* 1b */
  770. #define REG_SSPM_VRF18_ACK_MASK_LSB (1U << 18) /* 1b */
  771. #define REG_SSPM_DDREN_ACK_MASK_LSB (1U << 19) /* 1b */
  772. #define REG_SCP_SRCCLKENA_ACK_MASK_LSB (1U << 20) /* 1b */
  773. #define REG_SCP_INFRA_ACK_MASK_LSB (1U << 21) /* 1b */
  774. #define REG_SCP_APSRC_ACK_MASK_LSB (1U << 22) /* 1b */
  775. #define REG_SCP_VRF18_ACK_MASK_LSB (1U << 23) /* 1b */
  776. #define REG_SCP_DDREN_ACK_MASK_LSB (1U << 24) /* 1b */
  777. #define REG_AUDIO_DSP_SRCCLKENA_ACK_MASK_LSB (1U << 25) /* 1b */
  778. #define REG_AUDIO_DSP_INFRA_ACK_MASK_LSB (1U << 26) /* 1b */
  779. #define REG_AUDIO_DSP_APSRC_ACK_MASK_LSB (1U << 27) /* 1b */
  780. #define REG_AUDIO_DSP_VRF18_ACK_MASK_LSB (1U << 28) /* 1b */
  781. #define REG_AUDIO_DSP_DDREN_ACK_MASK_LSB (1U << 29) /* 1b */
  782. #define REG_DISP0_DDREN_ACK_MASK_LSB (1U << 30) /* 1b */
  783. #define REG_DISP1_APSRC_ACK_MASK_LSB (1U << 31) /* 1b */
  784. /* SPM_RESOURCE_ACK_CON1 (0x10006000 + 0x0F4) */
  785. #define REG_UFS_SRCCLKENA_ACK_MASK_LSB (1U << 0) /* 1b */
  786. #define REG_UFS_INFRA_ACK_MASK_LSB (1U << 1) /* 1b */
  787. #define REG_UFS_APSRC_ACK_MASK_LSB (1U << 2) /* 1b */
  788. #define REG_UFS_VRF18_ACK_MASK_LSB (1U << 3) /* 1b */
  789. #define REG_UFS_DDREN_ACK_MASK_LSB (1U << 4) /* 1b */
  790. #define REG_APU_SRCCLKENA_ACK_MASK_LSB (1U << 5) /* 1b */
  791. #define REG_APU_INFRA_ACK_MASK_LSB (1U << 6) /* 1b */
  792. #define REG_APU_APSRC_ACK_MASK_LSB (1U << 7) /* 1b */
  793. #define REG_APU_VRF18_ACK_MASK_LSB (1U << 8) /* 1b */
  794. #define REG_APU_DDREN_ACK_MASK_LSB (1U << 9) /* 1b */
  795. #define REG_MCUPM_SRCCLKENA_ACK_MASK_LSB (1U << 10) /* 1b */
  796. #define REG_MCUPM_INFRA_ACK_MASK_LSB (1U << 11) /* 1b */
  797. #define REG_MCUPM_APSRC_ACK_MASK_LSB (1U << 12) /* 1b */
  798. #define REG_MCUPM_VRF18_ACK_MASK_LSB (1U << 13) /* 1b */
  799. #define REG_MCUPM_DDREN_ACK_MASK_LSB (1U << 14) /* 1b */
  800. #define REG_MSDC0_SRCCLKENA_ACK_MASK_LSB (1U << 15) /* 1b */
  801. #define REG_MSDC0_INFRA_ACK_MASK_LSB (1U << 16) /* 1b */
  802. #define REG_MSDC0_APSRC_ACK_MASK_LSB (1U << 17) /* 1b */
  803. #define REG_MSDC0_VRF18_ACK_MASK_LSB (1U << 18) /* 1b */
  804. #define REG_MSDC0_DDREN_ACK_MASK_LSB (1U << 19) /* 1b */
  805. #define REG_MSDC1_SRCCLKENA_ACK_MASK_LSB (1U << 20) /* 1b */
  806. #define REG_MSDC1_INFRA_ACK_MASK_LSB (1U << 21) /* 1b */
  807. #define REG_MSDC1_APSRC_ACK_MASK_LSB (1U << 22) /* 1b */
  808. #define REG_MSDC1_VRF18_ACK_MASK_LSB (1U << 23) /* 1b */
  809. #define REG_MSDC1_DDREN_ACK_MASK_LSB (1U << 24) /* 1b */
  810. #define REG_DISP0_APSRC_ACK_MASK_LSB (1U << 25) /* 1b */
  811. #define REG_DISP1_DDREN_ACK_MASK_LSB (1U << 26) /* 1b */
  812. #define REG_GCE_INFRA_ACK_MASK_LSB (1U << 27) /* 1b */
  813. #define REG_GCE_APSRC_ACK_MASK_LSB (1U << 28) /* 1b */
  814. #define REG_GCE_VRF18_ACK_MASK_LSB (1U << 29) /* 1b */
  815. #define REG_GCE_DDREN_ACK_MASK_LSB (1U << 30) /* 1b */
  816. /* SPM_RESOURCE_ACK_CON2 (0x10006000 + 0x0F8) */
  817. #define SPM_SRCCLKENA_ACK_WAIT_CYCLE_LSB (1U << 0) /* 8b */
  818. #define SPM_INFRA_ACK_WAIT_CYCLE_LSB (1U << 8) /* 8b */
  819. #define SPM_APSRC_ACK_WAIT_CYCLE_LSB (1U << 16) /* 8b */
  820. #define SPM_VRF18_ACK_WAIT_CYCLE_LSB (1U << 24) /* 8b */
  821. /* SPM_RESOURCE_ACK_CON3 (0x10006000 + 0x0FC) */
  822. #define SPM_DDREN_ACK_WAIT_CYCLE_LSB (1U << 0) /* 8b */
  823. #define REG_BAK_PSRI_SRCCLKENA_ACK_MASK_LSB (1U << 8) /* 1b */
  824. #define REG_BAK_PSRI_INFRA_ACK_MASK_LSB (1U << 9) /* 1b */
  825. #define REG_BAK_PSRI_APSRC_ACK_MASK_LSB (1U << 10) /* 1b */
  826. #define REG_BAK_PSRI_VRF18_ACK_MASK_LSB (1U << 11) /* 1b */
  827. #define REG_BAK_PSRI_DDREN_ACK_MASK_LSB (1U << 12) /* 1b */
  828. #define REG_AFE_SRCCLKENA_ACK_MASK_LSB (1U << 13) /* 1b */
  829. #define REG_AFE_INFRA_ACK_MASK_LSB (1U << 14) /* 1b */
  830. #define REG_AFE_APSRC_ACK_MASK_LSB (1U << 15) /* 1b */
  831. #define REG_AFE_VRF18_ACK_MASK_LSB (1U << 16) /* 1b */
  832. #define REG_AFE_DDREN_ACK_MASK_LSB (1U << 17) /* 1b */
  833. #define REG_MSDC2_SRCCLKENA_ACK_MASK_LSB (1U << 18) /* 1b */
  834. #define REG_MSDC2_INFRA_ACK_MASK_LSB (1U << 19) /* 1b */
  835. #define REG_MSDC2_APSRC_ACK_MASK_LSB (1U << 20) /* 1b */
  836. #define REG_MSDC2_VRF18_ACK_MASK_LSB (1U << 21) /* 1b */
  837. #define REG_MSDC2_DDREN_ACK_MASK_LSB (1U << 22) /* 1b */
  838. #define REG_PCIE_SRCCLKENA_ACK_MASK_LSB (1U << 23) /* 1b */
  839. #define REG_PCIE_INFRA_ACK_MASK_LSB (1U << 24) /* 1b */
  840. #define REG_PCIE_APSRC_ACK_MASK_LSB (1U << 25) /* 1b */
  841. #define REG_PCIE_VRF18_ACK_MASK_LSB (1U << 26) /* 1b */
  842. #define REG_PCIE_DDREN_ACK_MASK_LSB (1U << 27) /* 1b */
  843. /* PCM_REG0_DATA (0x10006000 + 0x100) */
  844. #define PCM_REG0_RF_LSB (1U << 0) /* 32b */
  845. /* PCM_REG2_DATA (0x10006000 + 0x104) */
  846. #define PCM_REG2_RF_LSB (1U << 0) /* 32b */
  847. /* PCM_REG6_DATA (0x10006000 + 0x108) */
  848. #define PCM_REG6_RF_LSB (1U << 0) /* 32b */
  849. /* PCM_REG7_DATA (0x10006000 + 0x10C) */
  850. #define PCM_REG7_RF_LSB (1U << 0) /* 32b */
  851. /* PCM_REG13_DATA (0x10006000 + 0x110) */
  852. #define PCM_REG13_RF_LSB (1U << 0) /* 32b */
  853. /* SRC_REQ_STA_0 (0x10006000 + 0x114) */
  854. #define MD_0_SRCCLKENA_LSB (1U << 0) /* 1b */
  855. #define MD_0_INFRA_REQ_LSB (1U << 1) /* 1b */
  856. #define MD_0_APSRC_REQ_LSB (1U << 2) /* 1b */
  857. #define MD_0_VRF18_REQ_LSB (1U << 4) /* 1b */
  858. #define MD_0_DDREN_REQ_LSB (1U << 5) /* 1b */
  859. #define MD_1_SRCCLKENA_LSB (1U << 6) /* 1b */
  860. #define MD_1_INFRA_REQ_LSB (1U << 7) /* 1b */
  861. #define MD_1_APSRC_REQ_LSB (1U << 8) /* 1b */
  862. #define MD_1_VRF18_REQ_LSB (1U << 10) /* 1b */
  863. #define MD_1_DDREN_REQ_LSB (1U << 11) /* 1b */
  864. #define CONN_SRCCLKENA_LSB (1U << 12) /* 1b */
  865. #define CONN_SRCCLKENB_LSB (1U << 13) /* 1b */
  866. #define CONN_INFRA_REQ_LSB (1U << 14) /* 1b */
  867. #define CONN_APSRC_REQ_LSB (1U << 15) /* 1b */
  868. #define CONN_VRF18_REQ_LSB (1U << 16) /* 1b */
  869. #define CONN_DDREN_REQ_LSB (1U << 17) /* 1b */
  870. #define SRCCLKENI_LSB (1U << 18) /* 3b */
  871. #define SSPM_SRCCLKENA_LSB (1U << 21) /* 1b */
  872. #define SSPM_INFRA_REQ_LSB (1U << 22) /* 1b */
  873. #define SSPM_APSRC_REQ_LSB (1U << 23) /* 1b */
  874. #define SSPM_VRF18_REQ_LSB (1U << 24) /* 1b */
  875. #define SSPM_DDREN_REQ_LSB (1U << 25) /* 1b */
  876. #define DISP0_APSRC_REQ_LSB (1U << 26) /* 1b */
  877. #define DISP0_DDREN_REQ_LSB (1U << 27) /* 1b */
  878. #define DISP1_APSRC_REQ_LSB (1U << 28) /* 1b */
  879. #define DISP1_DDREN_REQ_LSB (1U << 29) /* 1b */
  880. #define DVFSRC_EVENT_TRIGGER_LSB (1U << 30) /* 1b */
  881. /* SRC_REQ_STA_1 (0x10006000 + 0x118) */
  882. #define SCP_SRCCLKENA_LSB (1U << 0) /* 1b */
  883. #define SCP_INFRA_REQ_LSB (1U << 1) /* 1b */
  884. #define SCP_APSRC_REQ_LSB (1U << 2) /* 1b */
  885. #define SCP_VRF18_REQ_LSB (1U << 3) /* 1b */
  886. #define SCP_DDREN_REQ_LSB (1U << 4) /* 1b */
  887. #define AUDIO_DSP_SRCCLKENA_LSB (1U << 5) /* 1b */
  888. #define AUDIO_DSP_INFRA_REQ_LSB (1U << 6) /* 1b */
  889. #define AUDIO_DSP_APSRC_REQ_LSB (1U << 7) /* 1b */
  890. #define AUDIO_DSP_VRF18_REQ_LSB (1U << 8) /* 1b */
  891. #define AUDIO_DSP_DDREN_REQ_LSB (1U << 9) /* 1b */
  892. #define UFS_SRCCLKENA_LSB (1U << 10) /* 1b */
  893. #define UFS_INFRA_REQ_LSB (1U << 11) /* 1b */
  894. #define UFS_APSRC_REQ_LSB (1U << 12) /* 1b */
  895. #define UFS_VRF18_REQ_LSB (1U << 13) /* 1b */
  896. #define UFS_DDREN_REQ_LSB (1U << 14) /* 1b */
  897. #define GCE_INFRA_REQ_LSB (1U << 15) /* 1b */
  898. #define GCE_APSRC_REQ_LSB (1U << 16) /* 1b */
  899. #define GCE_VRF18_REQ_LSB (1U << 17) /* 1b */
  900. #define GCE_DDREN_REQ_LSB (1U << 18) /* 1b */
  901. #define INFRASYS_APSRC_REQ_LSB (1U << 19) /* 1b */
  902. #define INFRASYS_DDREN_REQ_LSB (1U << 20) /* 1b */
  903. #define MSDC0_SRCCLKENA_LSB (1U << 21) /* 1b */
  904. #define MSDC0_INFRA_REQ_LSB (1U << 22) /* 1b */
  905. #define MSDC0_APSRC_REQ_LSB (1U << 23) /* 1b */
  906. #define MSDC0_VRF18_REQ_LSB (1U << 24) /* 1b */
  907. #define MSDC0_DDREN_REQ_LSB (1U << 25) /* 1b */
  908. #define MSDC1_SRCCLKENA_LSB (1U << 26) /* 1b */
  909. #define MSDC1_INFRA_REQ_LSB (1U << 27) /* 1b */
  910. #define MSDC1_APSRC_REQ_LSB (1U << 28) /* 1b */
  911. #define MSDC1_VRF18_REQ_LSB (1U << 29) /* 1b */
  912. #define MSDC1_DDREN_REQ_LSB (1U << 30) /* 1b */
  913. /* SRC_REQ_STA_2 (0x10006000 + 0x11C) */
  914. #define MCUSYS_MERGE_DDR_EN_LSB (1U << 0) /* 9b */
  915. #define EMI_SELF_REFRESH_CH_LSB (1U << 9) /* 2b */
  916. #define SW2SPM_WAKEUP_LSB (1U << 11) /* 4b */
  917. #define SC_ADSP2SPM_WAKEUP_LSB (1U << 15) /* 1b */
  918. #define SC_SSPM2SPM_WAKEUP_LSB (1U << 16) /* 4b */
  919. #define SRC_REQ_STA_2_SC_SCP2SPM_WAKEUP_LSB (1U << 20) /* 1b */
  920. #define SPM_RESERVED_SRCCLKENA_LSB (1U << 21) /* 1b */
  921. #define SPM_RESERVED_INFRA_REQ_LSB (1U << 22) /* 1b */
  922. #define SPM_RESERVED_APSRC_REQ_LSB (1U << 23) /* 1b */
  923. #define SPM_RESERVED_VRF18_REQ_LSB (1U << 24) /* 1b */
  924. #define SPM_RESERVED_DDREN_REQ_LSB (1U << 25) /* 1b */
  925. #define MCUPM_SRCCLKENA_LSB (1U << 26) /* 1b */
  926. #define MCUPM_INFRA_REQ_LSB (1U << 27) /* 1b */
  927. #define MCUPM_APSRC_REQ_LSB (1U << 28) /* 1b */
  928. #define MCUPM_VRF18_REQ_LSB (1U << 29) /* 1b */
  929. #define MCUPM_DDREN_REQ_LSB (1U << 30) /* 1b */
  930. /* PCM_TIMER_OUT (0x10006000 + 0x120) */
  931. #define PCM_TIMER_LSB (1U << 0) /* 32b */
  932. /* PCM_WDT_OUT (0x10006000 + 0x124) */
  933. #define PCM_WDT_TIMER_VAL_OUT_LSB (1U << 0) /* 32b */
  934. /* SPM_IRQ_STA (0x10006000 + 0x128) */
  935. #define TWAM_IRQ_LSB (1U << 2) /* 1b */
  936. #define PCM_IRQ_LSB (1U << 3) /* 1b */
  937. /* SRC_REQ_STA_4 (0x10006000 + 0x12C) */
  938. #define APU_SRCCLKENA_LSB (1U << 0) /* 1b */
  939. #define APU_INFRA_REQ_LSB (1U << 1) /* 1b */
  940. #define APU_APSRC_REQ_LSB (1U << 2) /* 1b */
  941. #define APU_VRF18_REQ_LSB (1U << 3) /* 1b */
  942. #define APU_DDREN_REQ_LSB (1U << 4) /* 1b */
  943. #define BAK_PSRI_SRCCLKENA_LSB (1U << 5) /* 1b */
  944. #define BAK_PSRI_INFRA_REQ_LSB (1U << 6) /* 1b */
  945. #define BAK_PSRI_APSRC_REQ_LSB (1U << 7) /* 1b */
  946. #define BAK_PSRI_VRF18_REQ_LSB (1U << 8) /* 1b */
  947. #define BAK_PSRI_DDREN_REQ_LSB (1U << 9) /* 1b */
  948. #define MSDC2_SRCCLKENA_LSB (1U << 10) /* 1b */
  949. #define MSDC2_INFRA_REQ_LSB (1U << 11) /* 1b */
  950. #define MSDC2_APSRC_REQ_LSB (1U << 12) /* 1b */
  951. #define MSDC2_VRF18_REQ_LSB (1U << 13) /* 1b */
  952. #define MSDC2_DDREN_REQ_LSB (1U << 14) /* 1b */
  953. #define PCIE_SRCCLKENA_LSB (1U << 15) /* 1b */
  954. #define PCIE_INFRA_REQ_LSB (1U << 16) /* 1b */
  955. #define PCIE_APSRC_REQ_LSB (1U << 17) /* 1b */
  956. #define PCIE_VRF18_REQ_LSB (1U << 18) /* 1b */
  957. #define PCIE_DDREN_REQ_LSB (1U << 19) /* 1b */
  958. #define DPMAIF_SRCCLKENA_LSB (1U << 20) /* 1b */
  959. #define DPMAIF_INFRA_REQ_LSB (1U << 21) /* 1b */
  960. #define DPMAIF_APSRC_REQ_LSB (1U << 22) /* 1b */
  961. #define DPMAIF_VRF18_REQ_LSB (1U << 23) /* 1b */
  962. #define DPMAIF_DDREN_REQ_LSB (1U << 24) /* 1b */
  963. #define AFE_SRCCLKENA_LSB (1U << 25) /* 1b */
  964. #define AFE_INFRA_REQ_LSB (1U << 26) /* 1b */
  965. #define AFE_APSRC_REQ_LSB (1U << 27) /* 1b */
  966. #define AFE_VRF18_REQ_LSB (1U << 28) /* 1b */
  967. #define AFE_DDREN_REQ_LSB (1U << 29) /* 1b */
  968. /* MD32PCM_WAKEUP_STA (0x10006000 + 0x130) */
  969. #define MD32PCM_WAKEUP_STA_LSB (1U << 0) /* 32b */
  970. /* MD32PCM_EVENT_STA (0x10006000 + 0x134) */
  971. #define MD32PCM_EVENT_STA_LSB (1U << 0) /* 32b */
  972. /* SPM_WAKEUP_STA (0x10006000 + 0x138) */
  973. #define SPM_WAKEUP_EVENT_L_LSB (1U << 0) /* 32b */
  974. /* SPM_WAKEUP_EXT_STA (0x10006000 + 0x13C) */
  975. #define EXT_WAKEUP_EVENT_LSB (1U << 0) /* 32b */
  976. /* SPM_WAKEUP_MISC (0x10006000 + 0x140) */
  977. #define GIC_WAKEUP_LSB (1U << 0) /* 10b */
  978. #define DVFSRC_IRQ_LSB (1U << 16) /* 1b */
  979. #define SPM_WAKEUP_MISC_REG_CPU_WAKEUP_LSB (1U << 17) /* 1b */
  980. #define PCM_TIMER_EVENT_LSB (1U << 18) /* 1b */
  981. #define PMIC_EINT_OUT_B_LSB (1U << 19) /* 2b */
  982. #define TWAM_IRQ_B_LSB (1U << 21) /* 1b */
  983. #define SPM_ACK_CHK_WAKEUP_0_LSB (1U << 25) /* 1b */
  984. #define SPM_ACK_CHK_WAKEUP_1_LSB (1U << 26) /* 1b */
  985. #define SPM_ACK_CHK_WAKEUP_2_LSB (1U << 27) /* 1b */
  986. #define SPM_ACK_CHK_WAKEUP_3_LSB (1U << 28) /* 1b */
  987. #define SPM_ACK_CHK_WAKEUP_ALL_LSB (1U << 29) /* 1b */
  988. #define PMIC_IRQ_ACK_LSB (1U << 30) /* 1b */
  989. #define PMIC_SCP_IRQ_LSB (1U << 31) /* 1b */
  990. /* MM_DVFS_HALT (0x10006000 + 0x144) */
  991. #define MM_DVFS_HALT_LSB (1U << 0) /* 5b */
  992. /* BUS_PROTECT_RDY (0x10006000 + 0x150) */
  993. #define PROTECT_READY_LSB (1U << 0) /* 32b */
  994. /* BUS_PROTECT1_RDY (0x10006000 + 0x154) */
  995. #define PROTECT1_READY_LSB (1U << 0) /* 32b */
  996. /* BUS_PROTECT2_RDY (0x10006000 + 0x158) */
  997. #define PROTECT2_READY_LSB (1U << 0) /* 32b */
  998. /* BUS_PROTECT3_RDY (0x10006000 + 0x15C) */
  999. #define PROTECT3_READY_LSB (1U << 0) /* 32b */
  1000. /* SUBSYS_IDLE_STA (0x10006000 + 0x160) */
  1001. #define SUBSYS_IDLE_SIGNALS_LSB (1U << 0) /* 32b */
  1002. /* PCM_STA (0x10006000 + 0x164) */
  1003. #define PCM_CK_SEL_O_LSB (1U << 0) /* 4b */
  1004. #define EXT_SRC_STA_LSB (1U << 4) /* 3b */
  1005. /* SRC_REQ_STA_3 (0x10006000 + 0x168) */
  1006. #define CCIF_EVENT_STATE_LSB (1U << 0) /* 1b */
  1007. #define F26M_STATE_LSB (1U << 16) /* 1b */
  1008. #define INFRA_STATE_LSB (1U << 17) /* 1b */
  1009. #define APSRC_STATE_LSB (1U << 18) /* 1b */
  1010. #define VRF18_STATE_LSB (1U << 19) /* 1b */
  1011. #define DDREN_STATE_LSB (1U << 20) /* 1b */
  1012. #define DVFS_STATE_LSB (1U << 21) /* 1b */
  1013. #define SW_MAILBOX_STATE_LSB (1U << 22) /* 1b */
  1014. #define SSPM_MAILBOX_STATE_LSB (1U << 23) /* 1b */
  1015. #define ADSP_MAILBOX_STATE_LSB (1U << 24) /* 1b */
  1016. #define SCP_MAILBOX_STATE_LSB (1U << 25) /* 1b */
  1017. /* PWR_STATUS (0x10006000 + 0x16C) */
  1018. #define PWR_STATUS_LSB (1U << 0) /* 32b */
  1019. /* PWR_STATUS_2ND (0x10006000 + 0x170) */
  1020. #define PWR_STATUS_2ND_LSB (1U << 0) /* 32b */
  1021. /* CPU_PWR_STATUS (0x10006000 + 0x174) */
  1022. #define MP0_SPMC_PWR_ON_ACK_CPU0_LSB (1U << 0) /* 1b */
  1023. #define MP0_SPMC_PWR_ON_ACK_CPU1_LSB (1U << 1) /* 1b */
  1024. #define MP0_SPMC_PWR_ON_ACK_CPU2_LSB (1U << 2) /* 1b */
  1025. #define MP0_SPMC_PWR_ON_ACK_CPU3_LSB (1U << 3) /* 1b */
  1026. #define MP0_SPMC_PWR_ON_ACK_CPU4_LSB (1U << 4) /* 1b */
  1027. #define MP0_SPMC_PWR_ON_ACK_CPU5_LSB (1U << 5) /* 1b */
  1028. #define MP0_SPMC_PWR_ON_ACK_CPU6_LSB (1U << 6) /* 1b */
  1029. #define MP0_SPMC_PWR_ON_ACK_CPU7_LSB (1U << 7) /* 1b */
  1030. #define MP0_SPMC_PWR_ON_ACK_CPUTOP_LSB (1U << 8) /* 1b */
  1031. #define MCUSYS_SPMC_PWR_ON_ACK_LSB (1U << 9) /* 1b */
  1032. /* OTHER_PWR_STATUSi (0x10006000 + 0x178) */
  1033. #define OTHER_PWR_STATUS_LSB (1U << 0) /* 32b */
  1034. /* SPM_VTCXO_EVENT_COUNT_STA (0x10006000 + 0x17C) */
  1035. #define SPM_SRCCLKENA_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1036. #define SPM_SRCCLKENA_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1037. /* SPM_INFRA_EVENT_COUNT_STA (0x10006000 + 0x180) */
  1038. #define SPM_INFRA_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1039. #define SPM_INFRA_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1040. /* SPM_VRF18_EVENT_COUNT_STA (0x10006000 + 0x184) */
  1041. #define SPM_VRF18_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1042. #define SPM_VRF18_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1043. /* SPM_APSRC_EVENT_COUNT_STA (0x10006000 + 0x188) */
  1044. #define SPM_APSRC_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1045. #define SPM_APSRC_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1046. /* SPM_DDREN_EVENT_COUNT_STA (0x10006000 + 0x18C) */
  1047. #define SPM_DDREN_SLEEP_COUNT_LSB (1U << 0) /* 16b */
  1048. #define SPM_DDREN_WAKE_COUNT_LSB (1U << 16) /* 16b */
  1049. /* MD32PCM_STA (0x10006000 + 0x190) */
  1050. #define MD32PCM_HALT_LSB (1U << 0) /* 1b */
  1051. #define MD32PCM_GATED_LSB (1U << 1) /* 1b */
  1052. /* MD32PCM_PC (0x10006000 + 0x194) */
  1053. #define MON_PC_LSB (1U << 0) /* 32b */
  1054. /* DVFSRC_EVENT_STA (0x10006000 + 0x1A4) */
  1055. #define DVFSRC_EVENT_LSB (1U << 0) /* 32b */
  1056. /* BUS_PROTECT4_RDY (0x10006000 + 0x1A8) */
  1057. #define PROTECT4_READY_LSB (1U << 0) /* 32b */
  1058. /* BUS_PROTECT5_RDY (0x10006000 + 0x1AC) */
  1059. #define PROTECT5_READY_LSB (1U << 0) /* 32b */
  1060. /* BUS_PROTECT6_RDY (0x10006000 + 0x1B0) */
  1061. #define PROTECT6_READY_LSB (1U << 0) /* 32b */
  1062. /* BUS_PROTECT7_RDY (0x10006000 + 0x1B4) */
  1063. #define PROTECT7_READY_LSB (1U << 0) /* 32b */
  1064. /* BUS_PROTECT8_RDY (0x10006000 + 0x1B8) */
  1065. #define PROTECT8_READY_LSB (1U << 0) /* 32b */
  1066. /* SPM_TWAM_LAST_STA0 (0x10006000 + 0x1D0) */
  1067. #define LAST_IDLE_CNT_0_LSB (1U << 0) /* 32b */
  1068. /* SPM_TWAM_LAST_STA1 (0x10006000 + 0x1D4) */
  1069. #define LAST_IDLE_CNT_1_LSB (1U << 0) /* 32b */
  1070. /* SPM_TWAM_LAST_STA2 (0x10006000 + 0x1D8) */
  1071. #define LAST_IDLE_CNT_2_LSB (1U << 0) /* 32b */
  1072. /* SPM_TWAM_LAST_STA3 (0x10006000 + 0x1DC) */
  1073. #define LAST_IDLE_CNT_3_LSB (1U << 0) /* 32b */
  1074. /* SPM_TWAM_CURR_STA0 (0x10006000 + 0x1E0) */
  1075. #define CURRENT_IDLE_CNT_0_LSB (1U << 0) /* 32b */
  1076. /* SPM_TWAM_CURR_STA1 (0x10006000 + 0x1E4) */
  1077. #define CURRENT_IDLE_CNT_1_LSB (1U << 0) /* 32b */
  1078. /* SPM_TWAM_CURR_STA2 (0x10006000 + 0x1E8) */
  1079. #define CURRENT_IDLE_CNT_2_LSB (1U << 0) /* 32b */
  1080. /* SPM_TWAM_CURR_STA3 (0x10006000 + 0x1EC) */
  1081. #define CURRENT_IDLE_CNT_3_LSB (1U << 0) /* 32b */
  1082. /* SPM_TWAM_TIMER_OUT (0x10006000 + 0x1F0) */
  1083. #define TWAM_TIMER_LSB (1U << 0) /* 32b */
  1084. /* SPM_CG_CHECK_STA (0x10006000 + 0x1F4) */
  1085. #define SPM_CG_CHECK_SLEEP_REQ_0_LSB (1U << 0) /* 1b */
  1086. #define SPM_CG_CHECK_SLEEP_REQ_1_LSB (1U << 1) /* 1b */
  1087. #define SPM_CG_CHECK_SLEEP_REQ_2_LSB (1U << 2) /* 1b */
  1088. /* SPM_DVFS_STA (0x10006000 + 0x1F8) */
  1089. #define TARGET_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1090. /* SPM_DVFS_OPP_STA (0x10006000 + 0x1FC) */
  1091. #define TARGET_DVFS_OPP_LSB (1U << 0) /* 5b */
  1092. #define CURRENT_DVFS_OPP_LSB (1U << 5) /* 5b */
  1093. #define RELAY_DVFS_OPP_LSB (1U << 10) /* 5b */
  1094. /* SPM_MCUSYS_PWR_CON (0x10006000 + 0x200) */
  1095. #define MCUSYS_SPMC_PWR_RST_B_LSB (1U << 0) /* 1b */
  1096. #define MCUSYS_SPMC_PWR_ON_LSB (1U << 2) /* 1b */
  1097. #define MCUSYS_SPMC_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1098. #define MCUSYS_SPMC_RESETPWRON_CONFIG_LSB (1U << 5) /* 1b */
  1099. #define MCUSYS_SPMC_DORMANT_EN_LSB (1U << 6) /* 1b */
  1100. #define MCUSYS_VPROC_EXT_OFF_LSB (1U << 7) /* 1b */
  1101. #define SPM_MCUSYS_PWR_CON_MCUSYS_SPMC_PWR_ON_ACK_LSB (1U << 31) /* 1b */
  1102. /* SPM_CPUTOP_PWR_CON (0x10006000 + 0x204) */
  1103. #define MP0_SPMC_PWR_RST_B_CPUTOP_LSB (1U << 0) /* 1b */
  1104. #define MP0_SPMC_PWR_ON_CPUTOP_LSB (1U << 2) /* 1b */
  1105. #define MP0_SPMC_PWR_CLK_DIS_CPUTOP_LSB (1U << 4) /* 1b */
  1106. #define MP0_SPMC_RESETPWRON_CONFIG_CPUTOP_LSB (1U << 5) /* 1b */
  1107. #define MP0_SPMC_DORMANT_EN_CPUTOP_LSB (1U << 6) /* 1b */
  1108. #define MP0_VPROC_EXT_OFF_LSB (1U << 7) /* 1b */
  1109. #define MP0_VSRAM_EXT_OFF_LSB (1U << 8) /* 1b */
  1110. #define SPM_CPUTOP_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPUTOP_LSB (1U << 31) /* 1b */
  1111. /* SPM_CPU0_PWR_CON (0x10006000 + 0x208) */
  1112. #define MP0_SPMC_PWR_RST_B_CPU0_LSB (1U << 0) /* 1b */
  1113. #define MP0_SPMC_PWR_ON_CPU0_LSB (1U << 2) /* 1b */
  1114. #define MP0_SPMC_RESETPWRON_CONFIG_CPU0_LSB (1U << 5) /* 1b */
  1115. #define MP0_VPROC_EXT_OFF_CPU0_LSB (1U << 7) /* 1b */
  1116. #define SPM_CPU0_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU0_LSB (1U << 31) /* 1b */
  1117. /* SPM_CPU1_PWR_CON (0x10006000 + 0x20C) */
  1118. #define MP0_SPMC_PWR_RST_B_CPU1_LSB (1U << 0) /* 1b */
  1119. #define MP0_SPMC_PWR_ON_CPU1_LSB (1U << 2) /* 1b */
  1120. #define MP0_SPMC_RESETPWRON_CONFIG_CPU1_LSB (1U << 5) /* 1b */
  1121. #define MP0_VPROC_EXT_OFF_CPU1_LSB (1U << 7) /* 1b */
  1122. #define SPM_CPU1_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU1_LSB (1U << 31) /* 1b */
  1123. /* SPM_CPU2_PWR_CON (0x10006000 + 0x210) */
  1124. #define MP0_SPMC_PWR_RST_B_CPU2_LSB (1U << 0) /* 1b */
  1125. #define MP0_SPMC_PWR_ON_CPU2_LSB (1U << 2) /* 1b */
  1126. #define MP0_SPMC_RESETPWRON_CONFIG_CPU2_LSB (1U << 5) /* 1b */
  1127. #define MP0_VPROC_EXT_OFF_CPU2_LSB (1U << 7) /* 1b */
  1128. #define SPM_CPU2_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU2_LSB (1U << 31) /* 1b */
  1129. /* SPM_CPU3_PWR_CON (0x10006000 + 0x214) */
  1130. #define MP0_SPMC_PWR_RST_B_CPU3_LSB (1U << 0) /* 1b */
  1131. #define MP0_SPMC_PWR_ON_CPU3_LSB (1U << 2) /* 1b */
  1132. #define MP0_SPMC_RESETPWRON_CONFIG_CPU3_LSB (1U << 5) /* 1b */
  1133. #define MP0_VPROC_EXT_OFF_CPU3_LSB (1U << 7) /* 1b */
  1134. #define SPM_CPU3_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU3_LSB (1U << 31) /* 1b */
  1135. /* SPM_CPU4_PWR_CON (0x10006000 + 0x218) */
  1136. #define MP0_SPMC_PWR_RST_B_CPU4_LSB (1U << 0) /* 1b */
  1137. #define MP0_SPMC_PWR_ON_CPU4_LSB (1U << 2) /* 1b */
  1138. #define MP0_SPMC_RESETPWRON_CONFIG_CPU4_LSB (1U << 5) /* 1b */
  1139. #define MP0_VPROC_EXT_OFF_CPU4_LSB (1U << 7) /* 1b */
  1140. #define SPM_CPU4_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU4_LSB (1U << 31) /* 1b */
  1141. /* SPM_CPU5_PWR_CON (0x10006000 + 0x21C) */
  1142. #define MP0_SPMC_PWR_RST_B_CPU5_LSB (1U << 0) /* 1b */
  1143. #define MP0_SPMC_PWR_ON_CPU5_LSB (1U << 2) /* 1b */
  1144. #define MP0_SPMC_RESETPWRON_CONFIG_CPU5_LSB (1U << 5) /* 1b */
  1145. #define MP0_VPROC_EXT_OFF_CPU5_LSB (1U << 7) /* 1b */
  1146. #define SPM_CPU5_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU5_LSB (1U << 31) /* 1b */
  1147. /* SPM_CPU6_PWR_CON (0x10006000 + 0x220) */
  1148. #define MP0_SPMC_PWR_RST_B_CPU6_LSB (1U << 0) /* 1b */
  1149. #define MP0_SPMC_PWR_ON_CPU6_LSB (1U << 2) /* 1b */
  1150. #define MP0_SPMC_RESETPWRON_CONFIG_CPU6_LSB (1U << 5) /* 1b */
  1151. #define MP0_VPROC_EXT_OFF_CPU6_LSB (1U << 7) /* 1b */
  1152. #define SPM_CPU6_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU6_LSB (1U << 31) /* 1b */
  1153. /* SPM_CPU7_PWR_CON (0x10006000 + 0x224) */
  1154. #define MP0_SPMC_PWR_RST_B_CPU7_LSB (1U << 0) /* 1b */
  1155. #define MP0_SPMC_PWR_ON_CPU7_LSB (1U << 2) /* 1b */
  1156. #define MP0_SPMC_RESETPWRON_CONFIG_CPU7_LSB (1U << 5) /* 1b */
  1157. #define MP0_VPROC_EXT_OFF_CPU7_LSB (1U << 7) /* 1b */
  1158. #define SPM_CPU7_PWR_CON_MP0_SPMC_PWR_ON_ACK_CPU7_LSB (1U << 31) /* 1b */
  1159. /* ARMPLL_CLK_CON (0x10006000 + 0x22C) */
  1160. #define SC_ARM_FHC_PAUSE_LSB (1U << 0) /* 6b */
  1161. #define SC_ARM_CK_OFF_LSB (1U << 6) /* 6b */
  1162. #define SC_ARMPLL_OFF_LSB (1U << 12) /* 1b */
  1163. #define SC_ARMBPLL_OFF_LSB (1U << 13) /* 1b */
  1164. #define SC_ARMBPLL1_OFF_LSB (1U << 14) /* 1b */
  1165. #define SC_ARMBPLL2_OFF_LSB (1U << 15) /* 1b */
  1166. #define SC_ARMBPLL3_OFF_LSB (1U << 16) /* 1b */
  1167. #define SC_CCIPLL_CKOFF_LSB (1U << 17) /* 1b */
  1168. #define SC_ARMDDS_OFF_LSB (1U << 18) /* 1b */
  1169. #define SC_ARMBPLL_S_OFF_LSB (1U << 19) /* 1b */
  1170. #define SC_ARMBPLL1_S_OFF_LSB (1U << 20) /* 1b */
  1171. #define SC_ARMBPLL2_S_OFF_LSB (1U << 21) /* 1b */
  1172. #define SC_ARMBPLL3_S_OFF_LSB (1U << 22) /* 1b */
  1173. #define SC_CCIPLL_PWROFF_LSB (1U << 23) /* 1b */
  1174. #define SC_ARMPLLOUT_OFF_LSB (1U << 24) /* 1b */
  1175. #define SC_ARMBPLLOUT_OFF_LSB (1U << 25) /* 1b */
  1176. #define SC_ARMBPLLOUT1_OFF_LSB (1U << 26) /* 1b */
  1177. #define SC_ARMBPLLOUT2_OFF_LSB (1U << 27) /* 1b */
  1178. #define SC_ARMBPLLOUT3_OFF_LSB (1U << 28) /* 1b */
  1179. #define SC_CCIPLL_OUT_OFF_LSB (1U << 29) /* 1b */
  1180. /* MCUSYS_IDLE_STA (0x10006000 + 0x230) */
  1181. #define ARMBUS_IDLE_TO_26M_LSB (1U << 0) /* 1b */
  1182. #define MP0_CLUSTER_IDLE_TO_PWR_OFF_LSB (1U << 1) /* 1b */
  1183. #define MCUSYS_DDR_EN_0_LSB (1U << 2) /* 1b */
  1184. #define MCUSYS_DDR_EN_1_LSB (1U << 3) /* 1b */
  1185. #define MCUSYS_DDR_EN_2_LSB (1U << 4) /* 1b */
  1186. #define MCUSYS_DDR_EN_3_LSB (1U << 5) /* 1b */
  1187. #define MCUSYS_DDR_EN_4_LSB (1U << 6) /* 1b */
  1188. #define MCUSYS_DDR_EN_5_LSB (1U << 7) /* 1b */
  1189. #define MCUSYS_DDR_EN_6_LSB (1U << 8) /* 1b */
  1190. #define MCUSYS_DDR_EN_7_LSB (1U << 9) /* 1b */
  1191. #define MP0_CPU_IDLE_TO_PWR_OFF_LSB (1U << 16) /* 8b */
  1192. #define WFI_AF_SEL_LSB (1U << 24) /* 8b */
  1193. /* GIC_WAKEUP_STA (0x10006000 + 0x234) */
  1194. #define GIC_WAKEUP_STA_GIC_WAKEUP_LSB (1U << 10) /* 10b */
  1195. /* CPU_SPARE_CON (0x10006000 + 0x238) */
  1196. #define CPU_SPARE_CON_LSB (1U << 0) /* 32b */
  1197. /* CPU_SPARE_CON_SET (0x10006000 + 0x23C) */
  1198. #define CPU_SPARE_CON_SET_LSB (1U << 0) /* 32b */
  1199. /* CPU_SPARE_CON_CLR (0x10006000 + 0x240) */
  1200. #define CPU_SPARE_CON_CLR_LSB (1U << 0) /* 32b */
  1201. /* ARMPLL_CLK_SEL (0x10006000 + 0x244) */
  1202. #define ARMPLL_CLK_SEL_LSB (1U << 0) /* 15b */
  1203. /* EXT_INT_WAKEUP_REQ (0x10006000 + 0x248) */
  1204. #define EXT_INT_WAKEUP_REQ_LSB (1U << 0) /* 10b */
  1205. /* EXT_INT_WAKEUP_REQ_SET (0x10006000 + 0x24C) */
  1206. #define EXT_INT_WAKEUP_REQ_SET_LSB (1U << 0) /* 10b */
  1207. /* EXT_INT_WAKEUP_REQ_CLR (0x10006000 + 0x250) */
  1208. #define EXT_INT_WAKEUP_REQ_CLR_LSB (1U << 0) /* 10b */
  1209. /* CPU_IRQ_MASK (0x10006000 + 0x260) */
  1210. #define CPU_IRQ_MASK_LSB (1U << 0) /* 8b */
  1211. /* CPU_IRQ_MASK_SET (0x10006000 + 0x264) */
  1212. #define CPU_IRQ_MASK_SET_LSB (1U << 0) /* 8b */
  1213. /* CPU_IRQ_MASK_CLR (0x10006000 + 0x268) */
  1214. #define CPU_IRQ_MASK_CLR_LSB (1U << 0) /* 8b */
  1215. /* CPU_WFI_EN (0x10006000 + 0x280) */
  1216. #define CPU_WFI_EN_LSB (1U << 0) /* 8b */
  1217. /* CPU_WFI_EN_SET (0x10006000 + 0x284) */
  1218. #define CPU_WFI_EN_SET_LSB (1U << 0) /* 8b */
  1219. /* CPU_WFI_EN_CLR (0x10006000 + 0x288) */
  1220. #define CPU_WFI_EN_CLR_LSB (1U << 0) /* 8b */
  1221. /* ROOT_CPUTOP_ADDR (0x10006000 + 0x2A0) */
  1222. #define ROOT_CPUTOP_ADDR_LSB (1U << 0) /* 32b */
  1223. /* ROOT_CORE_ADDR (0x10006000 + 0x2A4) */
  1224. #define ROOT_CORE_ADDR_LSB (1U << 0) /* 32b */
  1225. /* SPM2SW_MAILBOX_0 (0x10006000 + 0x2D0) */
  1226. #define SPM2SW_MAILBOX_0_LSB (1U << 0) /* 32b */
  1227. /* SPM2SW_MAILBOX_1 (0x10006000 + 0x2D4) */
  1228. #define SPM2SW_MAILBOX_1_LSB (1U << 0) /* 32b */
  1229. /* SPM2SW_MAILBOX_2 (0x10006000 + 0x2D8) */
  1230. #define SPM2SW_MAILBOX_2_LSB (1U << 0) /* 32b */
  1231. /* SPM2SW_MAILBOX_3 (0x10006000 + 0x2DC) */
  1232. #define SPM2SW_MAILBOX_3_LSB (1U << 0) /* 32b */
  1233. /* SW2SPM_WAKEUP (0x10006000 + 0x2E0) */
  1234. #define SW2SPM_WAKEUP_SW2SPM_WAKEUP_LSB (1U << 0) /* 4b */
  1235. /* SW2SPM_WAKEUP_SET (0x10006000 + 0x2E4) */
  1236. #define SW2SPM_WAKEUP_SET_LSB (1U << 0) /* 4b */
  1237. /* SW2SPM_WAKEUP_CLR (0x10006000 + 0x2E8) */
  1238. #define SW2SPM_WAKEUP_CLR_LSB (1U << 0) /* 4b */
  1239. /* SW2SPM_MAILBOX_0 (0x10006000 + 0x2EC) */
  1240. #define SW2SPM_MAILBOX_0_LSB (1U << 0) /* 32b */
  1241. /* SW2SPM_MAILBOX_1 (0x10006000 + 0x2F0) */
  1242. #define SW2SPM_MAILBOX_1_LSB (1U << 0) /* 32b */
  1243. /* SW2SPM_MAILBOX_2 (0x10006000 + 0x2F4) */
  1244. #define SW2SPM_MAILBOX_2_LSB (1U << 0) /* 32b */
  1245. /* SW2SPM_MAILBOX_3 (0x10006000 + 0x2F8) */
  1246. #define SW2SPM_MAILBOX_3_LSB (1U << 0) /* 32b */
  1247. /* SW2SPM_CFG (0x10006000 + 0x2FC) */
  1248. #define SWU2SPM_INT_MASK_B_LSB (1U << 0) /* 4b */
  1249. /* MD1_PWR_CON (0x10006000 + 0x300) */
  1250. #define MD1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1251. #define MD1_PWR_ISO_LSB (1U << 1) /* 1b */
  1252. #define MD1_PWR_ON_LSB (1U << 2) /* 1b */
  1253. #define MD1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1254. #define MD1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1255. #define MD1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1256. #define SC_MD1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1257. /* CONN_PWR_CON (0x10006000 + 0x304) */
  1258. #define CONN_PWR_RST_B_LSB (1U << 0) /* 1b */
  1259. #define CONN_PWR_ISO_LSB (1U << 1) /* 1b */
  1260. #define CONN_PWR_ON_LSB (1U << 2) /* 1b */
  1261. #define CONN_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1262. #define CONN_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1263. /* MFG0_PWR_CON (0x10006000 + 0x308) */
  1264. #define MFG0_PWR_RST_B_LSB (1U << 0) /* 1b */
  1265. #define MFG0_PWR_ISO_LSB (1U << 1) /* 1b */
  1266. #define MFG0_PWR_ON_LSB (1U << 2) /* 1b */
  1267. #define MFG0_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1268. #define MFG0_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1269. #define MFG0_SRAM_PDN_LSB (1U << 8) /* 1b */
  1270. #define SC_MFG0_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1271. /* MFG1_PWR_CON (0x10006000 + 0x30C) */
  1272. #define MFG1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1273. #define MFG1_PWR_ISO_LSB (1U << 1) /* 1b */
  1274. #define MFG1_PWR_ON_LSB (1U << 2) /* 1b */
  1275. #define MFG1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1276. #define MFG1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1277. #define MFG1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1278. #define SC_MFG1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1279. /* MFG2_PWR_CON (0x10006000 + 0x310) */
  1280. #define MFG2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1281. #define MFG2_PWR_ISO_LSB (1U << 1) /* 1b */
  1282. #define MFG2_PWR_ON_LSB (1U << 2) /* 1b */
  1283. #define MFG2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1284. #define MFG2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1285. #define MFG2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1286. #define SC_MFG2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1287. /* MFG3_PWR_CON (0x10006000 + 0x314) */
  1288. #define MFG3_PWR_RST_B_LSB (1U << 0) /* 1b */
  1289. #define MFG3_PWR_ISO_LSB (1U << 1) /* 1b */
  1290. #define MFG3_PWR_ON_LSB (1U << 2) /* 1b */
  1291. #define MFG3_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1292. #define MFG3_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1293. #define MFG3_SRAM_PDN_LSB (1U << 8) /* 1b */
  1294. #define SC_MFG3_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1295. /* MFG4_PWR_CON (0x10006000 + 0x318) */
  1296. #define MFG4_PWR_RST_B_LSB (1U << 0) /* 1b */
  1297. #define MFG4_PWR_ISO_LSB (1U << 1) /* 1b */
  1298. #define MFG4_PWR_ON_LSB (1U << 2) /* 1b */
  1299. #define MFG4_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1300. #define MFG4_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1301. #define MFG4_SRAM_PDN_LSB (1U << 8) /* 1b */
  1302. #define SC_MFG4_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1303. /* MFG5_PWR_CON (0x10006000 + 0x31C) */
  1304. #define MFG5_PWR_RST_B_LSB (1U << 0) /* 1b */
  1305. #define MFG5_PWR_ISO_LSB (1U << 1) /* 1b */
  1306. #define MFG5_PWR_ON_LSB (1U << 2) /* 1b */
  1307. #define MFG5_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1308. #define MFG5_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1309. #define MFG5_SRAM_PDN_LSB (1U << 8) /* 1b */
  1310. #define SC_MFG5_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1311. /* MFG6_PWR_CON (0x10006000 + 0x320) */
  1312. #define MFG6_PWR_RST_B_LSB (1U << 0) /* 1b */
  1313. #define MFG6_PWR_ISO_LSB (1U << 1) /* 1b */
  1314. #define MFG6_PWR_ON_LSB (1U << 2) /* 1b */
  1315. #define MFG6_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1316. #define MFG6_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1317. #define MFG6_SRAM_PDN_LSB (1U << 8) /* 1b */
  1318. #define SC_MFG6_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1319. /* IFR_PWR_CON (0x10006000 + 0x324) */
  1320. #define IFR_PWR_RST_B_LSB (1U << 0) /* 1b */
  1321. #define IFR_PWR_ISO_LSB (1U << 1) /* 1b */
  1322. #define IFR_PWR_ON_LSB (1U << 2) /* 1b */
  1323. #define IFR_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1324. #define IFR_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1325. #define IFR_SRAM_PDN_LSB (1U << 8) /* 1b */
  1326. #define SC_IFR_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1327. /* IFR_SUB_PWR_CON (0x10006000 + 0x328) */
  1328. #define IFR_SUB_PWR_RST_B_LSB (1U << 0) /* 1b */
  1329. #define IFR_SUB_PWR_ISO_LSB (1U << 1) /* 1b */
  1330. #define IFR_SUB_PWR_ON_LSB (1U << 2) /* 1b */
  1331. #define IFR_SUB_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1332. #define IFR_SUB_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1333. #define IFR_SUB_SRAM_PDN_LSB (1U << 8) /* 1b */
  1334. #define SC_IFR_SUB_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1335. /* DPY_PWR_CON (0x10006000 + 0x32C) */
  1336. #define DPY_PWR_RST_B_LSB (1U << 0) /* 1b */
  1337. #define DPY_PWR_ISO_LSB (1U << 1) /* 1b */
  1338. #define DPY_PWR_ON_LSB (1U << 2) /* 1b */
  1339. #define DPY_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1340. #define DPY_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1341. /* DRAMC_MD32_PWR_CON (0x10006000 + 0x330) */
  1342. #define DRAMC_MD32_PWR_RST_B_LSB (1U << 0) /* 1b */
  1343. #define DRAMC_MD32_PWR_ISO_LSB (1U << 1) /* 1b */
  1344. #define DRAMC_MD32_PWR_ON_LSB (1U << 2) /* 1b */
  1345. #define DRAMC_MD32_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1346. #define DRAMC_MD32_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1347. #define DRAMC_MD32_SRAM_PDN_LSB (1U << 8) /* 1b */
  1348. #define SC_DRAMC_MD32_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1349. /* ISP_PWR_CON (0x10006000 + 0x334) */
  1350. #define ISP_PWR_RST_B_LSB (1U << 0) /* 1b */
  1351. #define ISP_PWR_ISO_LSB (1U << 1) /* 1b */
  1352. #define ISP_PWR_ON_LSB (1U << 2) /* 1b */
  1353. #define ISP_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1354. #define ISP_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1355. #define ISP_SRAM_PDN_LSB (1U << 8) /* 1b */
  1356. #define SC_ISP_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1357. /* ISP2_PWR_CON (0x10006000 + 0x338) */
  1358. #define ISP2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1359. #define ISP2_PWR_ISO_LSB (1U << 1) /* 1b */
  1360. #define ISP2_PWR_ON_LSB (1U << 2) /* 1b */
  1361. #define ISP2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1362. #define ISP2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1363. #define ISP2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1364. #define SC_ISP2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1365. /* IPE_PWR_CON (0x10006000 + 0x33C) */
  1366. #define IPE_PWR_RST_B_LSB (1U << 0) /* 1b */
  1367. #define IPE_PWR_ISO_LSB (1U << 1) /* 1b */
  1368. #define IPE_PWR_ON_LSB (1U << 2) /* 1b */
  1369. #define IPE_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1370. #define IPE_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1371. #define IPE_SRAM_PDN_LSB (1U << 8) /* 1b */
  1372. #define SC_IPE_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1373. /* VDE_PWR_CON (0x10006000 + 0x340) */
  1374. #define VDE_PWR_RST_B_LSB (1U << 0) /* 1b */
  1375. #define VDE_PWR_ISO_LSB (1U << 1) /* 1b */
  1376. #define VDE_PWR_ON_LSB (1U << 2) /* 1b */
  1377. #define VDE_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1378. #define VDE_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1379. #define VDE_SRAM_PDN_LSB (1U << 8) /* 1b */
  1380. #define SC_VDE_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1381. /* VDE2_PWR_CON (0x10006000 + 0x344) */
  1382. #define VDE2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1383. #define VDE2_PWR_ISO_LSB (1U << 1) /* 1b */
  1384. #define VDE2_PWR_ON_LSB (1U << 2) /* 1b */
  1385. #define VDE2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1386. #define VDE2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1387. #define VDE2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1388. #define SC_VDE2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1389. /* VEN_PWR_CON (0x10006000 + 0x348) */
  1390. #define VEN_PWR_RST_B_LSB (1U << 0) /* 1b */
  1391. #define VEN_PWR_ISO_LSB (1U << 1) /* 1b */
  1392. #define VEN_PWR_ON_LSB (1U << 2) /* 1b */
  1393. #define VEN_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1394. #define VEN_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1395. #define VEN_SRAM_PDN_LSB (1U << 8) /* 1b */
  1396. #define SC_VEN_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1397. /* VEN_CORE1_PWR_CON (0x10006000 + 0x34C) */
  1398. #define VEN_CORE1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1399. #define VEN_CORE1_PWR_ISO_LSB (1U << 1) /* 1b */
  1400. #define VEN_CORE1_PWR_ON_LSB (1U << 2) /* 1b */
  1401. #define VEN_CORE1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1402. #define VEN_CORE1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1403. #define VEN_CORE1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1404. #define SC_VEN_CORE1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1405. /* MDP_PWR_CON (0x10006000 + 0x350) */
  1406. #define MDP_PWR_RST_B_LSB (1U << 0) /* 1b */
  1407. #define MDP_PWR_ISO_LSB (1U << 1) /* 1b */
  1408. #define MDP_PWR_ON_LSB (1U << 2) /* 1b */
  1409. #define MDP_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1410. #define MDP_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1411. #define MDP_SRAM_PDN_LSB (1U << 8) /* 1b */
  1412. #define SC_MDP_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1413. /* DIS_PWR_CON (0x10006000 + 0x354) */
  1414. #define DIS_PWR_RST_B_LSB (1U << 0) /* 1b */
  1415. #define DIS_PWR_ISO_LSB (1U << 1) /* 1b */
  1416. #define DIS_PWR_ON_LSB (1U << 2) /* 1b */
  1417. #define DIS_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1418. #define DIS_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1419. #define DIS_SRAM_PDN_LSB (1U << 8) /* 1b */
  1420. #define SC_DIS_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1421. /* AUDIO_PWR_CON (0x10006000 + 0x358) */
  1422. #define AUDIO_PWR_RST_B_LSB (1U << 0) /* 1b */
  1423. #define AUDIO_PWR_ISO_LSB (1U << 1) /* 1b */
  1424. #define AUDIO_PWR_ON_LSB (1U << 2) /* 1b */
  1425. #define AUDIO_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1426. #define AUDIO_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1427. #define AUDIO_SRAM_PDN_LSB (1U << 8) /* 1b */
  1428. #define SC_AUDIO_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1429. /* CAM_PWR_CON (0x10006000 + 0x35C) */
  1430. #define CAM_PWR_RST_B_LSB (1U << 0) /* 1b */
  1431. #define CAM_PWR_ISO_LSB (1U << 1) /* 1b */
  1432. #define CAM_PWR_ON_LSB (1U << 2) /* 1b */
  1433. #define CAM_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1434. #define CAM_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1435. #define CAM_SRAM_PDN_LSB (1U << 8) /* 1b */
  1436. #define SC_CAM_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1437. /* CAM_RAWA_PWR_CON (0x10006000 + 0x360) */
  1438. #define CAM_RAWA_PWR_RST_B_LSB (1U << 0) /* 1b */
  1439. #define CAM_RAWA_PWR_ISO_LSB (1U << 1) /* 1b */
  1440. #define CAM_RAWA_PWR_ON_LSB (1U << 2) /* 1b */
  1441. #define CAM_RAWA_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1442. #define CAM_RAWA_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1443. #define CAM_RAWA_SRAM_PDN_LSB (1U << 8) /* 1b */
  1444. #define SC_CAM_RAWA_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1445. /* CAM_RAWB_PWR_CON (0x10006000 + 0x364) */
  1446. #define CAM_RAWB_PWR_RST_B_LSB (1U << 0) /* 1b */
  1447. #define CAM_RAWB_PWR_ISO_LSB (1U << 1) /* 1b */
  1448. #define CAM_RAWB_PWR_ON_LSB (1U << 2) /* 1b */
  1449. #define CAM_RAWB_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1450. #define CAM_RAWB_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1451. #define CAM_RAWB_SRAM_PDN_LSB (1U << 8) /* 1b */
  1452. #define SC_CAM_RAWB_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1453. /* CAM_RAWC_PWR_CON (0x10006000 + 0x368) */
  1454. #define CAM_RAWC_PWR_RST_B_LSB (1U << 0) /* 1b */
  1455. #define CAM_RAWC_PWR_ISO_LSB (1U << 1) /* 1b */
  1456. #define CAM_RAWC_PWR_ON_LSB (1U << 2) /* 1b */
  1457. #define CAM_RAWC_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1458. #define CAM_RAWC_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1459. #define CAM_RAWC_SRAM_PDN_LSB (1U << 8) /* 1b */
  1460. #define SC_CAM_RAWC_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1461. /* SYSRAM_CON (0x10006000 + 0x36C) */
  1462. #define SYSRAM_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1463. #define SYSRAM_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1464. #define SYSRAM_SRAM_SLEEP_B_LSB (1U << 4) /* 4b */
  1465. #define SYSRAM_SRAM_PDN_LSB (1U << 16) /* 4b */
  1466. /* SYSROM_CON (0x10006000 + 0x370) */
  1467. #define SYSROM_SRAM_PDN_LSB (1U << 0) /* 8b */
  1468. /* SSPM_SRAM_CON (0x10006000 + 0x374) */
  1469. #define SSPM_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1470. #define SSPM_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1471. #define SSPM_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1472. #define SSPM_SRAM_PDN_LSB (1U << 16) /* 1b */
  1473. /* SCP_SRAM_CON (0x10006000 + 0x378) */
  1474. #define SCP_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1475. #define SCP_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1476. #define SCP_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1477. #define SCP_SRAM_PDN_LSB (1U << 16) /* 1b */
  1478. /* DPY_SHU_SRAM_CON (0x10006000 + 0x37C) */
  1479. #define DPY_SHU_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1480. #define DPY_SHU_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1481. #define DPY_SHU_SRAM_SLEEP_B_LSB (1U << 4) /* 2b */
  1482. #define DPY_SHU_SRAM_PDN_LSB (1U << 16) /* 2b */
  1483. /* UFS_SRAM_CON (0x10006000 + 0x380) */
  1484. #define UFS_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1485. #define UFS_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1486. #define UFS_SRAM_SLEEP_B_LSB (1U << 4) /* 8b */
  1487. #define UFS_SRAM_PDN_LSB (1U << 16) /* 8b */
  1488. /* DEVAPC_IFR_SRAM_CON (0x10006000 + 0x384) */
  1489. #define DEVAPC_IFR_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1490. #define DEVAPC_IFR_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1491. #define DEVAPC_IFR_SRAM_SLEEP_B_LSB (1U << 4) /* 6b */
  1492. #define DEVAPC_IFR_SRAM_PDN_LSB (1U << 16) /* 6b */
  1493. /* DEVAPC_SUBIFR_SRAM_CON (0x10006000 + 0x388) */
  1494. #define DEVAPC_SUBIFR_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1495. #define DEVAPC_SUBIFR_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1496. #define DEVAPC_SUBIFR_SRAM_SLEEP_B_LSB (1U << 4) /* 12b */
  1497. #define DEVAPC_SUBIFR_SRAM_PDN_LSB (1U << 16) /* 12b */
  1498. /* DEVAPC_ACP_SRAM_CON (0x10006000 + 0x38C) */
  1499. #define DEVAPC_ACP_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1500. #define DEVAPC_ACP_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1501. #define DEVAPC_ACP_SRAM_SLEEP_B_LSB (1U << 4) /* 12b */
  1502. #define DEVAPC_ACP_SRAM_PDN_LSB (1U << 16) /* 12b */
  1503. /* USB_SRAM_CON (0x10006000 + 0x390) */
  1504. #define USB_SRAM_PDN_LSB (1U << 0) /* 9b */
  1505. /* DUMMY_SRAM_CONi (0x10006000 + 0x394) */
  1506. #define DUMMY_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1507. #define DUMMY_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1508. #define DUMMY_SRAM_SLEEP_B_LSB (1U << 4) /* 12b */
  1509. #define DUMMY_SRAM_PDN_LSB (1U << 16) /* 12b */
  1510. /* MD_EXT_BUCK_ISO_CON (0x10006000 + 0x398) */
  1511. #define VMODEM_EXT_BUCK_ISO_LSB (1U << 0) /* 1b */
  1512. #define VMD_EXT_BUCK_ISO_LSB (1U << 1) /* 1b */
  1513. /* EXT_BUCK_ISO (0x10006000 + 0x39C) */
  1514. #define VIMVO_EXT_BUCK_ISO_LSB (1U << 0) /* 1b */
  1515. #define GPU_EXT_BUCK_ISO_LSB (1U << 1) /* 1b */
  1516. #define ADSP_EXT_BUCK_ISO_LSB (1U << 2) /* 1b */
  1517. #define IPU_EXT_BUCK_ISO_LSB (1U << 5) /* 3b */
  1518. /* DXCC_SRAM_CON (0x10006000 + 0x3A0) */
  1519. #define DXCC_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1520. #define DXCC_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1521. #define DXCC_SRAM_SLEEP_B_LSB (1U << 4) /* 8b */
  1522. #define DXCC_SRAM_PDN_LSB (1U << 16) /* 8b */
  1523. /* MSDC_PWR_CON (0x10006000 + 0x3A4) */
  1524. #define MSDC_PWR_RST_B_LSB (1U << 0) /* 1b */
  1525. #define MSDC_PWR_ISO_LSB (1U << 1) /* 1b */
  1526. #define MSDC_PWR_ON_LSB (1U << 2) /* 1b */
  1527. #define MSDC_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1528. #define MSDC_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1529. #define MSDC_SRAM_CKISO_LSB (1U << 5) /* 1b */
  1530. #define MSDC_SRAM_ISOINT_B_LSB (1U << 6) /* 1b */
  1531. #define MSDC_SRAM_PDN_LSB (1U << 8) /* 5b */
  1532. #define MSDC_SRAM_SLEEP_B_LSB (1U << 13) /* 5b */
  1533. #define SC_MSDC_SRAM_PDN_ACK_LSB (1U << 18) /* 5b */
  1534. #define SC_MSDC_SRAM_SLEEP_B_ACK_LSB (1U << 23) /* 5b */
  1535. /* DEBUGTOP_SRAM_CON (0x10006000 + 0x3A8) */
  1536. #define DEBUGTOP_SRAM_PDN_LSB (1U << 0) /* 1b */
  1537. /* DP_TX_PWR_CON (0x10006000 + 0x3AC) */
  1538. #define DP_TX_PWR_RST_B_LSB (1U << 0) /* 1b */
  1539. #define DP_TX_PWR_ISO_LSB (1U << 1) /* 1b */
  1540. #define DP_TX_PWR_ON_LSB (1U << 2) /* 1b */
  1541. #define DP_TX_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1542. #define DP_TX_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1543. #define DP_TX_SRAM_PDN_LSB (1U << 8) /* 1b */
  1544. #define SC_DP_TX_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1545. /* DPMAIF_SRAM_CON (0x10006000 + 0x3B0) */
  1546. #define DPMAIF_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1547. #define DPMAIF_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1548. #define DPMAIF_SRAM_SLEEP_B_LSB (1U << 4) /* 1b */
  1549. #define DPMAIF_SRAM_PDN_LSB (1U << 16) /* 1b */
  1550. /* DPY_SHU2_SRAM_CON (0x10006000 + 0x3B4) */
  1551. #define DPY_SHU2_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1552. #define DPY_SHU2_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1553. #define DPY_SHU2_SRAM_SLEEP_B_LSB (1U << 4) /* 12b */
  1554. #define DPY_SHU2_SRAM_PDN_LSB (1U << 16) /* 12b */
  1555. /* DRAMC_MCU2_SRAM_CON (0x10006000 + 0x3B8) */
  1556. #define DRAMC_MCU2_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1557. #define DRAMC_MCU2_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1558. #define DRAMC_MCU2_SRAM_SLEEP_B_LSB (1U << 4) /* 12b */
  1559. #define DRAMC_MCU2_SRAM_PDN_LSB (1U << 16) /* 12b */
  1560. /* DRAMC_MCU_SRAM_CON (0x10006000 + 0x3BC) */
  1561. #define DRAMC_MCU_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1562. #define DRAMC_MCU_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1563. #define DRAMC_MCU_SRAM_SLEEP_B_LSB (1U << 4) /* 12b */
  1564. #define DRAMC_MCU_SRAM_PDN_LSB (1U << 16) /* 12b */
  1565. /* MCUPM_PWR_CON (0x10006000 + 0x3C0) */
  1566. #define MCUPM_PWR_RST_B_LSB (1U << 0) /* 1b */
  1567. #define MCUPM_PWR_ISO_LSB (1U << 1) /* 1b */
  1568. #define MCUPM_PWR_ON_LSB (1U << 2) /* 1b */
  1569. #define MCUPM_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1570. #define MCUPM_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1571. #define MCUPM_SRAM_CKISO_LSB (1U << 5) /* 1b */
  1572. #define MCUPM_SRAM_ISOINT_B_LSB (1U << 6) /* 1b */
  1573. #define MCUPM_SRAM_PDN_LSB (1U << 8) /* 1b */
  1574. #define MCUPM_SRAM_SLEEP_B_LSB (1U << 9) /* 1b */
  1575. #define SC_MCUPM_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1576. #define SC_MCUPM_SRAM_SLEEP_B_ACK_LSB (1U << 13) /* 1b */
  1577. #define MCUPM_WFI_LSB (1U << 14) /* 1b */
  1578. /* DPY2_PWR_CON (0x10006000 + 0x3C4) */
  1579. #define DPY2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1580. #define DPY2_PWR_ISO_LSB (1U << 1) /* 1b */
  1581. #define DPY2_PWR_ON_LSB (1U << 2) /* 1b */
  1582. #define DPY2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1583. #define DPY2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1584. #define DPY2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1585. #define SC_DPY2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1586. /* SPM_SRAM_CON (0x10006000 + 0x3C8) */
  1587. #define SPM_SRAM_CKISO_LSB (1U << 0) /* 1b */
  1588. #define REG_SPM_SRAM_ISOINT_B_LSB (1U << 1) /* 1b */
  1589. #define REG_SPM_SRAM_SLEEP_B_LSB (1U << 4) /* 2b */
  1590. #define SPM_SRAM_PDN_LSB (1U << 16) /* 2b */
  1591. /* PERI_PWR_CON (0x10006000 + 0x3D0) */
  1592. #define PERI_PWR_RST_B_LSB (1U << 0) /* 1b */
  1593. #define PERI_PWR_ISO_LSB (1U << 1) /* 1b */
  1594. #define PERI_PWR_ON_LSB (1U << 2) /* 1b */
  1595. #define PERI_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1596. #define PERI_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1597. #define PERI_SRAM_PDN_LSB (1U << 8) /* 1b */
  1598. #define SC_PERI_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1599. /* NNA0_PWR_CON (0x10006000 + 0x3D4) */
  1600. #define NNA0_PWR_RST_B_LSB (1U << 0) /* 1b */
  1601. #define NNA0_PWR_ISO_LSB (1U << 1) /* 1b */
  1602. #define NNA0_PWR_ON_LSB (1U << 2) /* 1b */
  1603. #define NNA0_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1604. #define NNA0_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1605. #define NNA0_SRAM_PDN_LSB (1U << 8) /* 1b */
  1606. #define SC_NNA0_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1607. /* NNA1_PWR_CON (0x10006000 + 0x3D8) */
  1608. #define NNA1_PWR_RST_B_LSB (1U << 0) /* 1b */
  1609. #define NNA1_PWR_ISO_LSB (1U << 1) /* 1b */
  1610. #define NNA1_PWR_ON_LSB (1U << 2) /* 1b */
  1611. #define NNA1_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1612. #define NNA1_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1613. #define NNA1_SRAM_PDN_LSB (1U << 8) /* 1b */
  1614. #define SC_NNA1_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1615. /* NNA2_PWR_CON (0x10006000 + 0x3DC) */
  1616. #define NNA2_PWR_RST_B_LSB (1U << 0) /* 1b */
  1617. #define NNA2_PWR_ISO_LSB (1U << 1) /* 1b */
  1618. #define NNA2_PWR_ON_LSB (1U << 2) /* 1b */
  1619. #define NNA2_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1620. #define NNA2_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1621. #define NNA2_SRAM_PDN_LSB (1U << 8) /* 1b */
  1622. #define SC_NNA2_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1623. /* NNA_PWR_CON (0x10006000 + 0x3E0) */
  1624. #define NNA_PWR_RST_B_LSB (1U << 0) /* 1b */
  1625. #define NNA_PWR_ISO_LSB (1U << 1) /* 1b */
  1626. #define NNA_PWR_ON_LSB (1U << 2) /* 1b */
  1627. #define NNA_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1628. #define NNA_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1629. #define NNA_SRAM_PDN_LSB (1U << 8) /* 1b */
  1630. #define SC_NNA_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1631. /* ADSP_PWR_CON (0x10006000 + 0x3E4) */
  1632. #define ADSP_PWR_RST_B_LSB (1U << 0) /* 1b */
  1633. #define ADSP_PWR_ISO_LSB (1U << 1) /* 1b */
  1634. #define ADSP_PWR_ON_LSB (1U << 2) /* 1b */
  1635. #define ADSP_PWR_ON_2ND_LSB (1U << 3) /* 1b */
  1636. #define ADSP_PWR_CLK_DIS_LSB (1U << 4) /* 1b */
  1637. #define ADSP_SRAM_CKISO_LSB (1U << 5) /* 1b */
  1638. #define ADSP_SRAM_ISOINT_B_LSB (1U << 6) /* 1b */
  1639. #define ADSP_SRAM_PDN_LSB (1U << 8) /* 1b */
  1640. #define ADSP_SRAM_SLEEP_B_LSB (1U << 9) /* 1b */
  1641. #define SC_ADSP_SRAM_PDN_ACK_LSB (1U << 12) /* 1b */
  1642. #define SC_ADSP_SRAM_SLEEP_B_ACK_LSB (1U << 13) /* 1b */
  1643. /* DPY_SRAM_CON (0x10006000 + 0x3E8) */
  1644. #define DPY_SRAM_PDN_LSB (1U << 16) /* 4b */
  1645. #define SC_DPY_SRAM_PDN_ACK_LSB (1U << 24) /* 4b */
  1646. /* SPM_MEM_CK_SEL (0x10006000 + 0x400) */
  1647. #define SC_MEM_CK_SEL_LSB (1U << 0) /* 1b */
  1648. #define SPM2CKSYS_MEM_CK_MUX_UPDATE_LSB (1U << 1) /* 1b */
  1649. /* SPM_BUS_PROTECT_MASK_B (0x10006000 + 0X404) */
  1650. #define SPM_BUS_PROTECT_MASK_B_LSB (1U << 0) /* 32b */
  1651. /* SPM_BUS_PROTECT1_MASK_B (0x10006000 + 0x408) */
  1652. #define SPM_BUS_PROTECT1_MASK_B_LSB (1U << 0) /* 32b */
  1653. /* SPM_BUS_PROTECT2_MASK_B (0x10006000 + 0x40C) */
  1654. #define SPM_BUS_PROTECT2_MASK_B_LSB (1U << 0) /* 32b */
  1655. /* SPM_BUS_PROTECT3_MASK_B (0x10006000 + 0x410) */
  1656. #define SPM_BUS_PROTECT3_MASK_B_LSB (1U << 0) /* 32b */
  1657. /* SPM_BUS_PROTECT4_MASK_B (0x10006000 + 0x414) */
  1658. #define SPM_BUS_PROTECT4_MASK_B_LSB (1U << 0) /* 32b */
  1659. /* SPM_EMI_BW_MODE (0x10006000 + 0x418) */
  1660. #define EMI_BW_MODE_LSB (1U << 0) /* 1b */
  1661. #define EMI_BOOST_MODE_LSB (1U << 1) /* 1b */
  1662. #define EMI_BW_MODE_2_LSB (1U << 2) /* 1b */
  1663. #define EMI_BOOST_MODE_2_LSB (1U << 3) /* 1b */
  1664. #define SPM_S1_MODE_CH_LSB (1U << 16) /* 2b */
  1665. /* AP2MD_PEER_WAKEUP (0x10006000 + 0x41C) */
  1666. #define AP2MD_PEER_WAKEUP_LSB (1U << 0) /* 1b */
  1667. /* ULPOSC_CON (0x10006000 + 0x420) */
  1668. #define ULPOSC_EN_LSB (1U << 0) /* 1b */
  1669. #define ULPOSC_RST_LSB (1U << 1) /* 1b */
  1670. #define ULPOSC_CG_EN_LSB (1U << 2) /* 1b */
  1671. #define ULPOSC_CLK_SEL_LSB (1U << 3) /* 1b */
  1672. /* SPM2MM_CON (0x10006000 + 0x424) */
  1673. #define SPM2MM_FORCE_ULTRA_LSB (1U << 0) /* 1b */
  1674. #define SPM2MM_DBL_OSTD_ACT_LSB (1U << 1) /* 1b */
  1675. #define SPM2MM_ULTRAREQ_LSB (1U << 2) /* 1b */
  1676. #define SPM2MD_ULTRAREQ_LSB (1U << 3) /* 1b */
  1677. #define SPM2ISP_ULTRAREQ_LSB (1U << 4) /* 1b */
  1678. #define MM2SPM_FORCE_ULTRA_ACK_D2T_LSB (1U << 16) /* 1b */
  1679. #define MM2SPM_DBL_OSTD_ACT_ACK_D2T_LSB (1U << 17) /* 1b */
  1680. #define SPM2ISP_ULTRAACK_D2T_LSB (1U << 18) /* 1b */
  1681. #define SPM2MM_ULTRAACK_D2T_LSB (1U << 19) /* 1b */
  1682. #define SPM2MD_ULTRAACK_D2T_LSB (1U << 20) /* 1b */
  1683. /* SPM_BUS_PROTECT5_MASK_B (0x10006000 + 0x428) */
  1684. #define SPM_BUS_PROTECT5_MASK_B_LSB (1U << 0) /* 32b */
  1685. /* SPM2MCUPM_CON (0x10006000 + 0x42C) */
  1686. #define SPM2MCUPM_SW_RST_B_LSB (1U << 0) /* 1b */
  1687. #define SPM2MCUPM_SW_INT_LSB (1U << 1) /* 1b */
  1688. /* AP_MDSRC_REQ (0x10006000 + 0x430) */
  1689. #define AP_MDSMSRC_REQ_LSB (1U << 0) /* 1b */
  1690. #define AP_L1SMSRC_REQ_LSB (1U << 1) /* 1b */
  1691. #define AP_MD2SRC_REQ_LSB (1U << 2) /* 1b */
  1692. #define AP_MDSMSRC_ACK_LSB (1U << 4) /* 1b */
  1693. #define AP_L1SMSRC_ACK_LSB (1U << 5) /* 1b */
  1694. #define AP_MD2SRC_ACK_LSB (1U << 6) /* 1b */
  1695. /* SPM2EMI_ENTER_ULPM (0x10006000 + 0x434) */
  1696. #define SPM2EMI_ENTER_ULPM_LSB (1U << 0) /* 1b */
  1697. /* SPM2MD_DVFS_CON (0x10006000 + 0x438) */
  1698. #define SPM2MD_DVFS_CON_LSB (1U << 0) /* 32b */
  1699. /* MD2SPM_DVFS_CON (0x10006000 + 0x43C) */
  1700. #define MD2SPM_DVFS_CON_LSB (1U << 0) /* 32b */
  1701. /* SPM_BUS_PROTECT6_MASK_B (0x10006000 + 0X440) */
  1702. #define SPM_BUS_PROTECT6_MASK_B_LSB (1U << 0) /* 32b */
  1703. /* SPM_BUS_PROTECT7_MASK_B (0x10006000 + 0x444) */
  1704. #define SPM_BUS_PROTECT7_MASK_B_LSB (1U << 0) /* 32b */
  1705. /* SPM_BUS_PROTECT8_MASK_B (0x10006000 + 0x448) */
  1706. #define SPM_BUS_PROTECT8_MASK_B_LSB (1U << 0) /* 32b */
  1707. /* SPM_PLL_CON (0x10006000 + 0x44C) */
  1708. #define SC_MAINPLLOUT_OFF_LSB (1U << 0) /* 1b */
  1709. #define SC_UNIPLLOUT_OFF_LSB (1U << 1) /* 1b */
  1710. #define SC_SPAREPLLOUT_OFF_LSB (1U << 2) /* 2b */
  1711. #define SC_MAINPLL_OFF_LSB (1U << 4) /* 1b */
  1712. #define SC_UNIPLL_OFF_LSB (1U << 5) /* 1b */
  1713. #define SC_SPAREPLL_OFF_LSB (1U << 6) /* 2b */
  1714. #define SC_MAINPLL_S_OFF_LSB (1U << 8) /* 1b */
  1715. #define SC_UNIPLL_S_OFF_LSB (1U << 9) /* 1b */
  1716. #define SC_SPAREPLL_S_OFF_LSB (1U << 10) /* 2b */
  1717. #define SC_SPARE_CK_OFF_LSB (1U << 12) /* 4b */
  1718. #define SC_SMI_CK_OFF_LSB (1U << 16) /* 1b */
  1719. #define SC_MD32K_CK_OFF_LSB (1U << 17) /* 1b */
  1720. #define SC_CKSQ1_OFF_LSB (1U << 18) /* 1b */
  1721. #define SC_AXI_MEM_CK_OFF_LSB (1U << 19) /* 1b */
  1722. #define SC_CLK_BACKUP_LSB (1U << 20) /* 12b */
  1723. /* RC_SPM_CTRL (0x10006000 + 0x450) */
  1724. #define SPM_AP_26M_RDY_LSB (1U << 0) /* 1b */
  1725. #define SPM2RC_DMY_CTRL_LSB (1U << 2) /* 6b */
  1726. #define RC2SPM_SRCCLKENO_0_ACK_LSB (1U << 16) /* 1b */
  1727. /* SPM_DRAM_MCU_SW_CON_0 (0x10006000 + 0x454) */
  1728. #define SW_DDR_PST_REQ_LSB (1U << 0) /* 2b */
  1729. #define SW_DDR_PST_ABORT_REQ_LSB (1U << 2) /* 2b */
  1730. /* SPM_DRAM_MCU_SW_CON_1 (0x10006000 + 0x458) */
  1731. #define SW_DDR_PST_CH0_LSB (1U << 0) /* 32b */
  1732. /* SPM_DRAM_MCU_SW_CON_2 (0x10006000 + 0x45C) */
  1733. #define SW_DDR_PST_CH1_LSB (1U << 0) /* 32b */
  1734. /* SPM_DRAM_MCU_SW_CON_3 (0x10006000 + 0x460) */
  1735. #define SW_DDR_RESERVED_CH0_LSB (1U << 0) /* 32b */
  1736. /* SPM_DRAM_MCU_SW_CON_4 (0x10006000 + 0x464) */
  1737. #define SW_DDR_RESERVED_CH1_LSB (1U << 0) /* 32b */
  1738. /* SPM_DRAM_MCU_STA_0 (0x10006000 + 0x468) */
  1739. #define SC_DDR_PST_ACK_LSB (1U << 0) /* 2b */
  1740. #define SC_DDR_PST_ABORT_ACK_LSB (1U << 2) /* 2b */
  1741. /* SPM_DRAM_MCU_STA_1 (0x10006000 + 0x46C) */
  1742. #define SC_DDR_CUR_PST_STA_CH0_LSB (1U << 0) /* 32b */
  1743. /* SPM_DRAM_MCU_STA_2 (0x10006000 + 0x470) */
  1744. #define SC_DDR_CUR_PST_STA_CH1_LSB (1U << 0) /* 32b */
  1745. /* SPM_DRAM_MCU_SW_SEL_0 (0x10006000 + 0x474) */
  1746. #define SW_DDR_PST_REQ_SEL_LSB (1U << 0) /* 2b */
  1747. #define SW_DDR_PST_SEL_LSB (1U << 2) /* 2b */
  1748. #define SW_DDR_PST_ABORT_REQ_SEL_LSB (1U << 4) /* 2b */
  1749. #define SW_DDR_RESERVED_SEL_LSB (1U << 6) /* 2b */
  1750. #define SW_DDR_PST_ACK_SEL_LSB (1U << 8) /* 2b */
  1751. #define SW_DDR_PST_ABORT_ACK_SEL_LSB (1U << 10) /* 2b */
  1752. /* RELAY_DVFS_LEVEL (0x10006000 + 0x478) */
  1753. #define RELAY_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1754. /* DRAMC_DPY_CLK_SW_CON_0 (0x10006000 + 0x480) */
  1755. #define SW_PHYPLL_EN_LSB (1U << 0) /* 2b */
  1756. #define SW_DPY_VREF_EN_LSB (1U << 2) /* 2b */
  1757. #define SW_DPY_DLL_CK_EN_LSB (1U << 4) /* 2b */
  1758. #define SW_DPY_DLL_EN_LSB (1U << 6) /* 2b */
  1759. #define SW_DPY_2ND_DLL_EN_LSB (1U << 8) /* 2b */
  1760. #define SW_MEM_CK_OFF_LSB (1U << 10) /* 2b */
  1761. #define SW_DMSUS_OFF_LSB (1U << 12) /* 2b */
  1762. #define SW_DPY_MODE_SW_LSB (1U << 14) /* 2b */
  1763. #define SW_EMI_CLK_OFF_LSB (1U << 16) /* 2b */
  1764. #define SW_DDRPHY_FB_CK_EN_LSB (1U << 18) /* 2b */
  1765. #define SW_DR_GATE_RETRY_EN_LSB (1U << 20) /* 2b */
  1766. #define SW_DPHY_PRECAL_UP_LSB (1U << 24) /* 2b */
  1767. #define SW_DPY_BCLK_ENABLE_LSB (1U << 26) /* 2b */
  1768. #define SW_TX_TRACKING_DIS_LSB (1U << 28) /* 2b */
  1769. #define SW_DPHY_RXDLY_TRACKING_EN_LSB (1U << 30) /* 2b */
  1770. /* DRAMC_DPY_CLK_SW_CON_1 (0x10006000 + 0x484) */
  1771. #define SW_SHU_RESTORE_LSB (1U << 0) /* 2b */
  1772. #define SW_DMYRD_MOD_LSB (1U << 2) /* 2b */
  1773. #define SW_DMYRD_INTV_LSB (1U << 4) /* 2b */
  1774. #define SW_DMYRD_EN_LSB (1U << 6) /* 2b */
  1775. #define SW_DRS_DIS_REQ_LSB (1U << 8) /* 2b */
  1776. #define SW_DR_SRAM_LOAD_LSB (1U << 10) /* 2b */
  1777. #define SW_DR_SRAM_RESTORE_LSB (1U << 12) /* 2b */
  1778. #define SW_DR_SHU_LEVEL_SRAM_LATCH_LSB (1U << 14) /* 2b */
  1779. #define SW_TX_TRACK_RETRY_EN_LSB (1U << 16) /* 2b */
  1780. #define SW_DPY_MIDPI_EN_LSB (1U << 18) /* 2b */
  1781. #define SW_DPY_PI_RESETB_EN_LSB (1U << 20) /* 2b */
  1782. #define SW_DPY_MCK8X_EN_LSB (1U << 22) /* 2b */
  1783. #define SW_DR_SHU_LEVEL_SRAM_CH0_LSB (1U << 24) /* 4b */
  1784. #define SW_DR_SHU_LEVEL_SRAM_CH1_LSB (1U << 28) /* 4b */
  1785. /* DRAMC_DPY_CLK_SW_CON_2 (0x10006000 + 0x488) */
  1786. #define SW_DR_SHU_LEVEL_LSB (1U << 0) /* 2b */
  1787. #define SW_DR_SHU_EN_LSB (1U << 2) /* 1b */
  1788. #define SW_DR_SHORT_QUEUE_LSB (1U << 3) /* 1b */
  1789. #define SW_PHYPLL_MODE_SW_LSB (1U << 4) /* 1b */
  1790. #define SW_PHYPLL2_MODE_SW_LSB (1U << 5) /* 1b */
  1791. #define SW_PHYPLL_SHU_EN_LSB (1U << 6) /* 1b */
  1792. #define SW_PHYPLL2_SHU_EN_LSB (1U << 7) /* 1b */
  1793. #define SW_DR_RESERVED_0_LSB (1U << 24) /* 2b */
  1794. #define SW_DR_RESERVED_1_LSB (1U << 26) /* 2b */
  1795. #define SW_DR_RESERVED_2_LSB (1U << 28) /* 2b */
  1796. #define SW_DR_RESERVED_3_LSB (1U << 30) /* 2b */
  1797. /* DRAMC_DPY_CLK_SW_CON_3 (0x10006000 + 0x48C) */
  1798. #define SC_DR_SHU_EN_ACK_LSB (1U << 0) /* 4b */
  1799. #define SC_EMI_CLK_OFF_ACK_LSB (1U << 4) /* 4b */
  1800. #define SC_DR_SHORT_QUEUE_ACK_LSB (1U << 8) /* 4b */
  1801. #define SC_DRAMC_DFS_STA_LSB (1U << 12) /* 4b */
  1802. #define SC_DRS_DIS_ACK_LSB (1U << 16) /* 4b */
  1803. #define SC_DR_SRAM_LOAD_ACK_LSB (1U << 20) /* 4b */
  1804. #define SC_DR_SRAM_PLL_LOAD_ACK_LSB (1U << 24) /* 4b */
  1805. #define SC_DR_SRAM_RESTORE_ACK_LSB (1U << 28) /* 4b */
  1806. /* DRAMC_DPY_CLK_SW_SEL_0 (0x10006000 + 0x490) */
  1807. #define SW_PHYPLL_EN_SEL_LSB (1U << 0) /* 2b */
  1808. #define SW_DPY_VREF_EN_SEL_LSB (1U << 2) /* 2b */
  1809. #define SW_DPY_DLL_CK_EN_SEL_LSB (1U << 4) /* 2b */
  1810. #define SW_DPY_DLL_EN_SEL_LSB (1U << 6) /* 2b */
  1811. #define SW_DPY_2ND_DLL_EN_SEL_LSB (1U << 8) /* 2b */
  1812. #define SW_MEM_CK_OFF_SEL_LSB (1U << 10) /* 2b */
  1813. #define SW_DMSUS_OFF_SEL_LSB (1U << 12) /* 2b */
  1814. #define SW_DPY_MODE_SW_SEL_LSB (1U << 14) /* 2b */
  1815. #define SW_EMI_CLK_OFF_SEL_LSB (1U << 16) /* 2b */
  1816. #define SW_DDRPHY_FB_CK_EN_SEL_LSB (1U << 18) /* 2b */
  1817. #define SW_DR_GATE_RETRY_EN_SEL_LSB (1U << 20) /* 2b */
  1818. #define SW_DPHY_PRECAL_UP_SEL_LSB (1U << 24) /* 2b */
  1819. #define SW_DPY_BCLK_ENABLE_SEL_LSB (1U << 26) /* 2b */
  1820. #define SW_TX_TRACKING_DIS_SEL_LSB (1U << 28) /* 2b */
  1821. #define SW_DPHY_RXDLY_TRACKING_EN_SEL_LSB (1U << 30) /* 2b */
  1822. /* DRAMC_DPY_CLK_SW_SEL_1 (0x10006000 + 0x494) */
  1823. #define SW_SHU_RESTORE_SEL_LSB (1U << 0) /* 2b */
  1824. #define SW_DMYRD_MOD_SEL_LSB (1U << 2) /* 2b */
  1825. #define SW_DMYRD_INTV_SEL_LSB (1U << 4) /* 2b */
  1826. #define SW_DMYRD_EN_SEL_LSB (1U << 6) /* 2b */
  1827. #define SW_DRS_DIS_REQ_SEL_LSB (1U << 8) /* 2b */
  1828. #define SW_DR_SRAM_LOAD_SEL_LSB (1U << 10) /* 2b */
  1829. #define SW_DR_SRAM_RESTORE_SEL_LSB (1U << 12) /* 2b */
  1830. #define SW_DR_SHU_LEVEL_SRAM_LATCH_SEL_LSB (1U << 14) /* 2b */
  1831. #define SW_TX_TRACK_RETRY_EN_SEL_LSB (1U << 16) /* 2b */
  1832. #define SW_DPY_MIDPI_EN_SEL_LSB (1U << 18) /* 2b */
  1833. #define SW_DPY_PI_RESETB_EN_SEL_LSB (1U << 20) /* 2b */
  1834. #define SW_DPY_MCK8X_EN_SEL_LSB (1U << 22) /* 2b */
  1835. #define SW_DR_SHU_LEVEL_SRAM_SEL_LSB (1U << 24) /* 2b */
  1836. /* DRAMC_DPY_CLK_SW_SEL_2 (0x10006000 + 0x498) */
  1837. #define SW_DR_SHU_LEVEL_SEL_LSB (1U << 0) /* 1b */
  1838. #define SW_DR_SHU_EN_SEL_LSB (1U << 2) /* 1b */
  1839. #define SW_DR_SHORT_QUEUE_SEL_LSB (1U << 3) /* 1b */
  1840. #define SW_PHYPLL_MODE_SW_SEL_LSB (1U << 4) /* 1b */
  1841. #define SW_PHYPLL2_MODE_SW_SEL_LSB (1U << 5) /* 1b */
  1842. #define SW_PHYPLL_SHU_EN_SEL_LSB (1U << 6) /* 1b */
  1843. #define SW_PHYPLL2_SHU_EN_SEL_LSB (1U << 7) /* 1b */
  1844. #define SW_DR_RESERVED_0_SEL_LSB (1U << 24) /* 2b */
  1845. #define SW_DR_RESERVED_1_SEL_LSB (1U << 26) /* 2b */
  1846. #define SW_DR_RESERVED_2_SEL_LSB (1U << 28) /* 2b */
  1847. #define SW_DR_RESERVED_3_SEL_LSB (1U << 30) /* 2b */
  1848. /* DRAMC_DPY_CLK_SW_SEL_3 (0x10006000 + 0x49C) */
  1849. #define SC_DR_SHU_EN_ACK_SEL_LSB (1U << 0) /* 4b */
  1850. #define SC_EMI_CLK_OFF_ACK_SEL_LSB (1U << 4) /* 4b */
  1851. #define SC_DR_SHORT_QUEUE_ACK_SEL_LSB (1U << 8) /* 4b */
  1852. #define SC_DRAMC_DFS_STA_SEL_LSB (1U << 12) /* 4b */
  1853. #define SC_DRS_DIS_ACK_SEL_LSB (1U << 16) /* 4b */
  1854. #define SC_DR_SRAM_LOAD_ACK_SEL_LSB (1U << 20) /* 4b */
  1855. #define SC_DR_SRAM_PLL_LOAD_ACK_SEL_LSB (1U << 24) /* 4b */
  1856. #define SC_DR_SRAM_RESTORE_ACK_SEL_LSB (1U << 28) /* 4b */
  1857. /* DRAMC_DPY_CLK_SPM_CON (0x10006000 + 0x4A0) */
  1858. #define SC_DMYRD_EN_MOD_SEL_PCM_LSB (1U << 0) /* 1b */
  1859. #define SC_DMYRD_INTV_SEL_PCM_LSB (1U << 1) /* 1b */
  1860. #define SC_DMYRD_EN_PCM_LSB (1U << 2) /* 1b */
  1861. #define SC_DRS_DIS_REQ_PCM_LSB (1U << 3) /* 1b */
  1862. #define SC_DR_SHU_LEVEL_SRAM_PCM_LSB (1U << 4) /* 4b */
  1863. #define SC_DR_GATE_RETRY_EN_PCM_LSB (1U << 8) /* 1b */
  1864. #define SC_DR_SHORT_QUEUE_PCM_LSB (1U << 9) /* 1b */
  1865. #define SC_DPY_MIDPI_EN_PCM_LSB (1U << 10) /* 1b */
  1866. #define SC_DPY_PI_RESETB_EN_PCM_LSB (1U << 11) /* 1b */
  1867. #define SC_DPY_MCK8X_EN_PCM_LSB (1U << 12) /* 1b */
  1868. #define SC_DR_RESERVED_0_PCM_LSB (1U << 13) /* 1b */
  1869. #define SC_DR_RESERVED_1_PCM_LSB (1U << 14) /* 1b */
  1870. #define SC_DR_RESERVED_2_PCM_LSB (1U << 15) /* 1b */
  1871. #define SC_DR_RESERVED_3_PCM_LSB (1U << 16) /* 1b */
  1872. #define SC_DMDRAMCSHU_ACK_ALL_LSB (1U << 24) /* 1b */
  1873. #define SC_EMI_CLK_OFF_ACK_ALL_LSB (1U << 25) /* 1b */
  1874. #define SC_DR_SHORT_QUEUE_ACK_ALL_LSB (1U << 26) /* 1b */
  1875. #define SC_DRAMC_DFS_STA_ALL_LSB (1U << 27) /* 1b */
  1876. #define SC_DRS_DIS_ACK_ALL_LSB (1U << 28) /* 1b */
  1877. #define SC_DR_SRAM_LOAD_ACK_ALL_LSB (1U << 29) /* 1b */
  1878. #define SC_DR_SRAM_PLL_LOAD_ACK_ALL_LSB (1U << 30) /* 1b */
  1879. #define SC_DR_SRAM_RESTORE_ACK_ALL_LSB (1U << 31) /* 1b */
  1880. /* SPM_DVFS_LEVEL (0x10006000 + 0x4A4) */
  1881. #define SPM_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1882. /* SPM_CIRQ_CON (0x10006000 + 0x4A8) */
  1883. #define CIRQ_CLK_SEL_LSB (1U << 0) /* 1b */
  1884. /* SPM_DVFS_MISC (0x10006000 + 0x4AC) */
  1885. #define MSDC_DVFS_REQUEST_LSB (1U << 0) /* 1b */
  1886. #define SPM2EMI_SLP_PROT_EN_LSB (1U << 1) /* 1b */
  1887. #define SPM_DVFS_FORCE_ENABLE_LSB (1U << 2) /* 1b */
  1888. #define FORCE_DVFS_WAKE_LSB (1U << 3) /* 1b */
  1889. #define SPM_DVFSRC_ENABLE_LSB (1U << 4) /* 1b */
  1890. #define SPM_DVFS_DONE_LSB (1U << 5) /* 1b */
  1891. #define DVFSRC_IRQ_WAKEUP_EVENT_MASK_LSB (1U << 6) /* 1b */
  1892. #define SPM2RC_EVENT_ABORT_LSB (1U << 7) /* 1b */
  1893. #define EMI_SLP_IDLE_LSB (1U << 14) /* 1b */
  1894. #define SDIO_READY_TO_SPM_LSB (1U << 15) /* 1b */
  1895. /* RG_MODULE_SW_CG_0_MASK_REQ_0 (0x10006000 + 0x4B4) */
  1896. #define RG_MODULE_SW_CG_0_MASK_REQ_0_LSB (1U << 0) /* 32b */
  1897. /* RG_MODULE_SW_CG_0_MASK_REQ_1 (0x10006000 + 0x4B8) */
  1898. #define RG_MODULE_SW_CG_0_MASK_REQ_1_LSB (1U << 0) /* 32b */
  1899. /* RG_MODULE_SW_CG_0_MASK_REQ_2 (0x10006000 + 0x4BC) */
  1900. #define RG_MODULE_SW_CG_0_MASK_REQ_2_LSB (1U << 0) /* 32b */
  1901. /* RG_MODULE_SW_CG_1_MASK_REQ_0 (0x10006000 + 0x4C0) */
  1902. #define RG_MODULE_SW_CG_1_MASK_REQ_0_LSB (1U << 0) /* 32b */
  1903. /* RG_MODULE_SW_CG_1_MASK_REQ_1 (0x10006000 + 0x4C4) */
  1904. #define RG_MODULE_SW_CG_1_MASK_REQ_1_LSB (1U << 0) /* 32b */
  1905. /* RG_MODULE_SW_CG_1_MASK_REQ_2 (0x10006000 + 0x4C8) */
  1906. #define RG_MODULE_SW_CG_1_MASK_REQ_2_LSB (1U << 0) /* 32b */
  1907. /* RG_MODULE_SW_CG_2_MASK_REQ_0 (0x10006000 + 0x4CC) */
  1908. #define RG_MODULE_SW_CG_2_MASK_REQ_0_LSB (1U << 0) /* 32b */
  1909. /* RG_MODULE_SW_CG_2_MASK_REQ_1 (0x10006000 + 0x4D0) */
  1910. #define RG_MODULE_SW_CG_2_MASK_REQ_1_LSB (1U << 0) /* 32b */
  1911. /* RG_MODULE_SW_CG_2_MASK_REQ_2 (0x10006000 + 0x4D4) */
  1912. #define RG_MODULE_SW_CG_2_MASK_REQ_2_LSB (1U << 0) /* 32b */
  1913. /* RG_MODULE_SW_CG_3_MASK_REQ_0 (0x10006000 + 0x4D8) */
  1914. #define RG_MODULE_SW_CG_3_MASK_REQ_0_LSB (1U << 0) /* 32b */
  1915. /* RG_MODULE_SW_CG_3_MASK_REQ_1 (0x10006000 + 0x4DC) */
  1916. #define RG_MODULE_SW_CG_3_MASK_REQ_1_LSB (1U << 0) /* 32b */
  1917. /* RG_MODULE_SW_CG_3_MASK_REQ_2 (0x10006000 + 0x4E0) */
  1918. #define RG_MODULE_SW_CG_3_MASK_REQ_2_LSB (1U << 0) /* 32b */
  1919. /* PWR_STATUS_MASK_REQ_0 (0x10006000 + 0x4E4) */
  1920. #define PWR_STATUS_MASK_REQ_0_LSB (1U << 0) /* 32b */
  1921. /* PWR_STATUS_MASK_REQ_1 (0x10006000 + 0x4E8) */
  1922. #define PWR_STATUS_MASK_REQ_1_LSB (1U << 0) /* 32b */
  1923. /* PWR_STATUS_MASK_REQ_2 (0x10006000 + 0x4EC) */
  1924. #define PWR_STATUS_MASK_REQ_2_LSB (1U << 0) /* 32b */
  1925. /* SPM_CG_CHECK_CON (0x10006000 + 0x4F0) */
  1926. #define APMIXEDSYS_BUSY_MASK_REQ_0_LSB (1U << 0) /* 5b */
  1927. #define APMIXEDSYS_BUSY_MASK_REQ_1_LSB (1U << 8) /* 5b */
  1928. #define APMIXEDSYS_BUSY_MASK_REQ_2_LSB (1U << 16) /* 5b */
  1929. #define AUDIOSYS_BUSY_MASK_REQ_0_LSB (1U << 24) /* 1b */
  1930. #define AUDIOSYS_BUSY_MASK_REQ_1_LSB (1U << 25) /* 1b */
  1931. #define AUDIOSYS_BUSY_MASK_REQ_2_LSB (1U << 26) /* 1b */
  1932. #define SSUSB_BUSY_MASK_REQ_0_LSB (1U << 27) /* 1b */
  1933. #define SSUSB_BUSY_MASK_REQ_1_LSB (1U << 28) /* 1b */
  1934. #define SSUSB_BUSY_MASK_REQ_2_LSB (1U << 29) /* 1b */
  1935. /* SPM_SRC_RDY_STA (0x10006000 + 0x4F4) */
  1936. #define SPM_INFRA_INTERNAL_ACK_LSB (1U << 0) /* 1b */
  1937. #define SPM_VRF18_INTERNAL_ACK_LSB (1U << 1) /* 1b */
  1938. /* SPM_DVS_DFS_LEVEL (0x10006000 + 0x4F8) */
  1939. #define SPM_DFS_LEVEL_LSB (1U << 0) /* 16b */
  1940. #define SPM_DVS_LEVEL_LSB (1U << 16) /* 16b */
  1941. /* SPM_FORCE_DVFS (0x10006000 + 0x4FC) */
  1942. #define FORCE_DVFS_LEVEL_LSB (1U << 0) /* 32b */
  1943. /* SPM_SW_FLAG_0 (0x10006000 + 0x600) */
  1944. #define SPM_SW_FLAG_LSB (1U << 0) /* 32b */
  1945. /* SPM_SW_DEBUG_0 (0x10006000 + 0x604) */
  1946. #define SPM_SW_DEBUG_0_LSB (1U << 0) /* 32b */
  1947. /* SPM_SW_FLAG_1 (0x10006000 + 0x608) */
  1948. #define SPM_SW_FLAG_1_LSB (1U << 0) /* 32b */
  1949. /* SPM_SW_DEBUG_1 (0x10006000 + 0x60C) */
  1950. #define SPM_SW_DEBUG_1_LSB (1U << 0) /* 32b */
  1951. /* SPM_SW_RSV_0 (0x10006000 + 0x610) */
  1952. #define SPM_SW_RSV_0_LSB (1U << 0) /* 32b */
  1953. /* SPM_SW_RSV_1 (0x10006000 + 0x614) */
  1954. #define SPM_SW_RSV_1_LSB (1U << 0) /* 32b */
  1955. /* SPM_SW_RSV_2 (0x10006000 + 0x618) */
  1956. #define SPM_SW_RSV_2_LSB (1U << 0) /* 32b */
  1957. /* SPM_SW_RSV_3 (0x10006000 + 0x61C) */
  1958. #define SPM_SW_RSV_3_LSB (1U << 0) /* 32b */
  1959. /* SPM_SW_RSV_4 (0x10006000 + 0x620) */
  1960. #define SPM_SW_RSV_4_LSB (1U << 0) /* 32b */
  1961. /* SPM_SW_RSV_5 (0x10006000 + 0x624) */
  1962. #define SPM_SW_RSV_5_LSB (1U << 0) /* 32b */
  1963. /* SPM_SW_RSV_6 (0x10006000 + 0x628) */
  1964. #define SPM_SW_RSV_6_LSB (1U << 0) /* 32b */
  1965. /* SPM_SW_RSV_7 (0x10006000 + 0x62C) */
  1966. #define SPM_SW_RSV_7_LSB (1U << 0) /* 32b */
  1967. /* SPM_SW_RSV_8 (0x10006000 + 0x630) */
  1968. #define SPM_SW_RSV_8_LSB (1U << 0) /* 32b */
  1969. /* SPM_BK_WAKE_EVENT (0x10006000 + 0x634) */
  1970. #define SPM_BK_WAKE_EVENT_LSB (1U << 0) /* 32b */
  1971. /* SPM_BK_VTCXO_DUR (0x10006000 + 0x638) */
  1972. #define SPM_BK_VTCXO_DUR_LSB (1U << 0) /* 32b */
  1973. /* SPM_BK_WAKE_MISC (0x10006000 + 0x63C) */
  1974. #define SPM_BK_WAKE_MISC_LSB (1U << 0) /* 32b */
  1975. /* SPM_BK_PCM_TIMER (0x10006000 + 0x640) */
  1976. #define SPM_BK_PCM_TIMER_LSB (1U << 0) /* 32b */
  1977. /* SPM_RSV_CON_0 (0x10006000 + 0x650) */
  1978. #define SPM_RSV_CON_0_LSB (1U << 0) /* 32b */
  1979. /* SPM_RSV_CON_1 (0x10006000 + 0x654) */
  1980. #define SPM_RSV_CON_1_LSB (1U << 0) /* 32b */
  1981. /* SPM_RSV_STA_0 (0x10006000 + 0x658) */
  1982. #define SPM_RSV_STA_0_LSB (1U << 0) /* 32b */
  1983. /* SPM_RSV_STA_1 (0x10006000 + 0x65C) */
  1984. #define SPM_RSV_STA_1_LSB (1U << 0) /* 32b */
  1985. /* SPM_SPARE_CON (0x10006000 + 0x660) */
  1986. #define SPM_SPARE_CON_LSB (1U << 0) /* 32b */
  1987. /* SPM_SPARE_CON_SET (0x10006000 + 0x664) */
  1988. #define SPM_SPARE_CON_SET_LSB (1U << 0) /* 32b */
  1989. /* SPM_SPARE_CON_CLR (0x10006000 + 0x668) */
  1990. #define SPM_SPARE_CON_CLR_LSB (1U << 0) /* 32b */
  1991. /* SPM_CROSS_WAKE_M00_REQ (0x10006000 + 0x66C) */
  1992. #define SPM_CROSS_WAKE_M00_REQ_LSB (1U << 0) /* 4b */
  1993. #define SPM_CROSS_WAKE_M00_CHK_LSB (1U << 4) /* 4b */
  1994. /* SPM_CROSS_WAKE_M01_REQ (0x10006000 + 0x670) */
  1995. #define SPM_CROSS_WAKE_M01_REQ_LSB (1U << 0) /* 4b */
  1996. #define SPM_CROSS_WAKE_M01_CHK_LSB (1U << 4) /* 4b */
  1997. /* SPM_CROSS_WAKE_M02_REQ (0x10006000 + 0x674) */
  1998. #define SPM_CROSS_WAKE_M02_REQ_LSB (1U << 0) /* 4b */
  1999. #define SPM_CROSS_WAKE_M02_CHK_LSB (1U << 4) /* 4b */
  2000. /* SPM_CROSS_WAKE_M03_REQ (0x10006000 + 0x678) */
  2001. #define SPM_CROSS_WAKE_M03_REQ_LSB (1U << 0) /* 4b */
  2002. #define SPM_CROSS_WAKE_M03_CHK_LSB (1U << 4) /* 4b */
  2003. /* SCP_VCORE_LEVEL (0x10006000 + 0x67C) */
  2004. #define SCP_VCORE_LEVEL_LSB (1U << 0) /* 16b */
  2005. /* SC_MM_CK_SEL_CON (0x10006000 + 0x680) */
  2006. #define SC_MM_CK_SEL_LSB (1U << 0) /* 4b */
  2007. #define SC_MM_CK_SEL_EN_LSB (1U << 4) /* 1b */
  2008. /* SPARE_ACK_MASK (0x10006000 + 0x684) */
  2009. #define SPARE_ACK_MASK_B_LSB (1U << 0) /* 32b */
  2010. /* SPM_SPARE_FUNCTION (0x10006000 + 0x688) */
  2011. #define SPM_SPARE_FUNCTION_LSB (1U << 0) /* 32b */
  2012. /* SPM_DV_CON_0 (0x10006000 + 0x68C) */
  2013. #define SPM_DV_CON_0_LSB (1U << 0) /* 32b */
  2014. /* SPM_DV_CON_1 (0x10006000 + 0x690) */
  2015. #define SPM_DV_CON_1_LSB (1U << 0) /* 32b */
  2016. /* SPM_DV_STA (0x10006000 + 0x694) */
  2017. #define SPM_DV_STA_LSB (1U << 0) /* 32b */
  2018. /* CONN_XOWCN_DEBUG_EN (0x10006000 + 0x698) */
  2019. #define CONN_XOWCN_DEBUG_EN_LSB (1U << 0) /* 1b */
  2020. /* SPM_SEMA_M0 (0x10006000 + 0x69C) */
  2021. #define SPM_SEMA_M0_LSB (1U << 0) /* 8b */
  2022. /* SPM_SEMA_M1 (0x10006000 + 0x6A0) */
  2023. #define SPM_SEMA_M1_LSB (1U << 0) /* 8b */
  2024. /* SPM_SEMA_M2 (0x10006000 + 0x6A4) */
  2025. #define SPM_SEMA_M2_LSB (1U << 0) /* 8b */
  2026. /* SPM_SEMA_M3 (0x10006000 + 0x6A8) */
  2027. #define SPM_SEMA_M3_LSB (1U << 0) /* 8b */
  2028. /* SPM_SEMA_M4 (0x10006000 + 0x6AC) */
  2029. #define SPM_SEMA_M4_LSB (1U << 0) /* 8b */
  2030. /* SPM_SEMA_M5 (0x10006000 + 0x6B0) */
  2031. #define SPM_SEMA_M5_LSB (1U << 0) /* 8b */
  2032. /* SPM_SEMA_M6 (0x10006000 + 0x6B4) */
  2033. #define SPM_SEMA_M6_LSB (1U << 0) /* 8b */
  2034. /* SPM_SEMA_M7 (0x10006000 + 0x6B8) */
  2035. #define SPM_SEMA_M7_LSB (1U << 0) /* 8b */
  2036. /* SPM2ADSP_MAILBOXi (0x10006000 + 0x6BC) */
  2037. #define SPM2ADSP_MAILBOX_LSB (1U << 0) /* 32b */
  2038. /* ADSP2SPM_MAILBOX (0x10006000 + 0x6C0) */
  2039. #define ADSP2SPM_MAILBOX_LSB (1U << 0) /* 32b */
  2040. /* SPM_ADSP_IRQ (0x10006000 + 0x6C4) */
  2041. #define SC_SPM2ADSP_WAKEUP_LSB (1U << 0) /* 1b */
  2042. #define SPM_ADSP_IRQ_SC_ADSP2SPM_WAKEUP_LSB (1U << 4) /* 1b */
  2043. /* SPM_MD32_IRQ (0x10006000 + 0x6C8) */
  2044. #define SC_SPM2SSPM_WAKEUP_LSB (1U << 0) /* 4b */
  2045. #define SPM_MD32_IRQ_SC_SSPM2SPM_WAKEUP_LSB (1U << 4) /* 4b */
  2046. /* SPM2PMCU_MAILBOX_0 (0x10006000 + 0x6CC) */
  2047. #define SPM2PMCU_MAILBOX_0_LSB (1U << 0) /* 32b */
  2048. /* SPM2PMCU_MAILBOX_1 (0x10006000 + 0x6D0) */
  2049. #define SPM2PMCU_MAILBOX_1_LSB (1U << 0) /* 32b */
  2050. /* SPM2PMCU_MAILBOX_2 (0x10006000 + 0x6D4) */
  2051. #define SPM2PMCU_MAILBOX_2_LSB (1U << 0) /* 32b */
  2052. /* SPM2PMCU_MAILBOX_3 (0x10006000 + 0x6D8) */
  2053. #define SPM2PMCU_MAILBOX_3_LSB (1U << 0) /* 32b */
  2054. /* PMCU2SPM_MAILBOX_0 (0x10006000 + 0x6DC) */
  2055. #define PMCU2SPM_MAILBOX_0_LSB (1U << 0) /* 32b */
  2056. /* PMCU2SPM_MAILBOX_1 (0x10006000 + 0x6E0) */
  2057. #define PMCU2SPM_MAILBOX_1_LSB (1U << 0) /* 32b */
  2058. /* PMCU2SPM_MAILBOX_2 (0x10006000 + 0x6E4) */
  2059. #define PMCU2SPM_MAILBOX_2_LSB (1U << 0) /* 32b */
  2060. /* PMCU2SPM_MAILBOX_3 (0x10006000 + 0x6E8) */
  2061. #define PMCU2SPM_MAILBOX_3_LSB (1U << 0) /* 32b */
  2062. /* UFS_PSRI_SW (0x10006000 + 0x6EC) */
  2063. #define UFS_PSRI_SW_LSB (1U << 0) /* 1b */
  2064. /* UFS_PSRI_SW_SET (0x10006000 + 0x6F0) */
  2065. #define UFS_PSRI_SW_SET_LSB (1U << 0) /* 1b */
  2066. /* UFS_PSRI_SW_CLR (0x10006000 + 0x6F4) */
  2067. #define UFS_PSRI_SW_CLR_LSB (1U << 0) /* 1b */
  2068. /* SPM_AP_SEMA (0x10006000 + 0x6F8) */
  2069. #define SPM_AP_SEMA_LSB (1U << 0) /* 1b */
  2070. /* SPM_SPM_SEMA (0x10006000 + 0x6FC) */
  2071. #define SPM_SPM_SEMA_LSB (1U << 0) /* 1b */
  2072. /* SPM_DVFS_CON (0x10006000 + 0x700) */
  2073. #define SPM_DVFS_CON_LSB (1U << 0) /* 32b */
  2074. /* SPM_DVFS_CON_STA (0x10006000 + 0x704) */
  2075. #define SPM_DVFS_CON_STA_LSB (1U << 0) /* 32b */
  2076. /* SPM_PMIC_SPMI_CON (0x10006000 + 0x708) */
  2077. #define SPM_PMIC_SPMI_CMD_LSB (1U << 0) /* 2b */
  2078. #define SPM_PMIC_SPMI_SLAVEID_LSB (1U << 2) /* 4b */
  2079. #define SPM_PMIC_SPMI_PMIFID_LSB (1U << 6) /* 1b */
  2080. #define SPM_PMIC_SPMI_DBCNT_LSB (1U << 7) /* 1b */
  2081. /* SPM_DVFS_CMD0 (0x10006000 + 0x710) */
  2082. #define SPM_DVFS_CMD0_LSB (1U << 0) /* 32b */
  2083. /* SPM_DVFS_CMD1 (0x10006000 + 0x714) */
  2084. #define SPM_DVFS_CMD1_LSB (1U << 0) /* 32b */
  2085. /* SPM_DVFS_CMD2 (0x10006000 + 0x718) */
  2086. #define SPM_DVFS_CMD2_LSB (1U << 0) /* 32b */
  2087. /* SPM_DVFS_CMD3 (0x10006000 + 0x71C) */
  2088. #define SPM_DVFS_CMD3_LSB (1U << 0) /* 32b */
  2089. /* SPM_DVFS_CMD4 (0x10006000 + 0x720) */
  2090. #define SPM_DVFS_CMD4_LSB (1U << 0) /* 32b */
  2091. /* SPM_DVFS_CMD5 (0x10006000 + 0x724) */
  2092. #define SPM_DVFS_CMD5_LSB (1U << 0) /* 32b */
  2093. /* SPM_DVFS_CMD6 (0x10006000 + 0x728) */
  2094. #define SPM_DVFS_CMD6_LSB (1U << 0) /* 32b */
  2095. /* SPM_DVFS_CMD7 (0x10006000 + 0x72C) */
  2096. #define SPM_DVFS_CMD7_LSB (1U << 0) /* 32b */
  2097. /* SPM_DVFS_CMD8 (0x10006000 + 0x730) */
  2098. #define SPM_DVFS_CMD8_LSB (1U << 0) /* 32b */
  2099. /* SPM_DVFS_CMD9 (0x10006000 + 0x734) */
  2100. #define SPM_DVFS_CMD9_LSB (1U << 0) /* 32b */
  2101. /* SPM_DVFS_CMD10 (0x10006000 + 0x738) */
  2102. #define SPM_DVFS_CMD10_LSB (1U << 0) /* 32b */
  2103. /* SPM_DVFS_CMD11 (0x10006000 + 0x73C) */
  2104. #define SPM_DVFS_CMD11_LSB (1U << 0) /* 32b */
  2105. /* SPM_DVFS_CMD12 (0x10006000 + 0x740) */
  2106. #define SPM_DVFS_CMD12_LSB (1U << 0) /* 32b */
  2107. /* SPM_DVFS_CMD13 (0x10006000 + 0x744) */
  2108. #define SPM_DVFS_CMD13_LSB (1U << 0) /* 32b */
  2109. /* SPM_DVFS_CMD14 (0x10006000 + 0x748) */
  2110. #define SPM_DVFS_CMD14_LSB (1U << 0) /* 32b */
  2111. /* SPM_DVFS_CMD15 (0x10006000 + 0x74C) */
  2112. #define SPM_DVFS_CMD15_LSB (1U << 0) /* 32b */
  2113. /* SPM_DVFS_CMD16i (0x10006000 + 0x750) */
  2114. #define SPM_DVFS_CMD16_LSB (1U << 0) /* 32b */
  2115. /* SPM_DVFS_CMD17 (0x10006000 + 0x754) */
  2116. #define SPM_DVFS_CMD17_LSB (1U << 0) /* 32b */
  2117. /* SPM_DVFS_CMD18 (0x10006000 + 0x758) */
  2118. #define SPM_DVFS_CMD18_LSB (1U << 0) /* 32b */
  2119. /* SPM_DVFS_CMD19 (0x10006000 + 0x75C) */
  2120. #define SPM_DVFS_CMD19_LSB (1U << 0) /* 32b */
  2121. /* SPM_DVFS_CMD20 (0x10006000 + 0x760) */
  2122. #define SPM_DVFS_CMD20_LSB (1U << 0) /* 32b */
  2123. /* SPM_DVFS_CMD21 (0x10006000 + 0x764) */
  2124. #define SPM_DVFS_CMD21_LSB (1U << 0) /* 32b */
  2125. /* SPM_DVFS_CMD22 (0x10006000 + 0x768) */
  2126. #define SPM_DVFS_CMD22_LSB (1U << 0) /* 32b */
  2127. /* SPM_DVFS_CMD23 (0x10006000 + 0x76C) */
  2128. #define SPM_DVFS_CMD23_LSB (1U << 0) /* 32b */
  2129. /* SYS_TIMER_VALUE_L (0x10006000 + 0x770) */
  2130. #define SYS_TIMER_VALUE_L_LSB (1U << 0) /* 32b */
  2131. /* SYS_TIMER_VALUE_H (0x10006000 + 0x774) */
  2132. #define SYS_TIMER_VALUE_H_LSB (1U << 0) /* 32b */
  2133. /* SYS_TIMER_START_L (0x10006000 + 0x778) */
  2134. #define SYS_TIMER_START_L_LSB (1U << 0) /* 32b */
  2135. /* SYS_TIMER_START_H (0x10006000 + 0x77C) */
  2136. #define SYS_TIMER_START_H_LSB (1U << 0) /* 32b */
  2137. /* SYS_TIMER_LATCH_L_00 (0x10006000 + 0x780) */
  2138. #define SYS_TIMER_LATCH_L_00_LSB (1U << 0) /* 32b */
  2139. /* SYS_TIMER_LATCH_H_00 (0x10006000 + 0x784) */
  2140. #define SYS_TIMER_LATCH_H_00_LSB (1U << 0) /* 32b */
  2141. /* SYS_TIMER_LATCH_L_01 (0x10006000 + 0x788) */
  2142. #define SYS_TIMER_LATCH_L_01_LSB (1U << 0) /* 32b */
  2143. /* SYS_TIMER_LATCH_H_01 (0x10006000 + 0x78C) */
  2144. #define SYS_TIMER_LATCH_H_01_LSB (1U << 0) /* 32b */
  2145. /* SYS_TIMER_LATCH_L_02 (0x10006000 + 0x790) */
  2146. #define SYS_TIMER_LATCH_L_02_LSB (1U << 0) /* 32b */
  2147. /* SYS_TIMER_LATCH_H_02 (0x10006000 + 0x794) */
  2148. #define SYS_TIMER_LATCH_H_02_LSB (1U << 0) /* 32b */
  2149. /* SYS_TIMER_LATCH_L_03 (0x10006000 + 0x798) */
  2150. #define SYS_TIMER_LATCH_L_03_LSB (1U << 0) /* 32b */
  2151. /* SYS_TIMER_LATCH_H_03 (0x10006000 + 0x79C) */
  2152. #define SYS_TIMER_LATCH_H_03_LSB (1U << 0) /* 32b */
  2153. /* SYS_TIMER_LATCH_L_04 (0x10006000 + 0x7A0) */
  2154. #define SYS_TIMER_LATCH_L_04_LSB (1U << 0) /* 32b */
  2155. /* SYS_TIMER_LATCH_H_04 (0x10006000 + 0x7A4) */
  2156. #define SYS_TIMER_LATCH_H_04_LSB (1U << 0) /* 32b */
  2157. /* SYS_TIMER_LATCH_L_05 (0x10006000 + 0x7A8) */
  2158. #define SYS_TIMER_LATCH_L_05_LSB (1U << 0) /* 32b */
  2159. /* SYS_TIMER_LATCH_H_05 (0x10006000 + 0x7AC) */
  2160. #define SYS_TIMER_LATCH_H_05_LSB (1U << 0) /* 32b */
  2161. /* SYS_TIMER_LATCH_L_06 (0x10006000 + 0x7B0) */
  2162. #define SYS_TIMER_LATCH_L_06_LSB (1U << 0) /* 32b */
  2163. /* SYS_TIMER_LATCH_H_06 (0x10006000 + 0x7B4) */
  2164. #define SYS_TIMER_LATCH_H_06_LSB (1U << 0) /* 32b */
  2165. /* SYS_TIMER_LATCH_L_07 (0x10006000 + 0x7B8) */
  2166. #define SYS_TIMER_LATCH_L_07_LSB (1U << 0) /* 32b */
  2167. /* SYS_TIMER_LATCH_H_07 (0x10006000 + 0x7BC) */
  2168. #define SYS_TIMER_LATCH_H_07_LSB (1U << 0) /* 32b */
  2169. /* SYS_TIMER_LATCH_L_08 (0x10006000 + 0x7C0) */
  2170. #define SYS_TIMER_LATCH_L_08_LSB (1U << 0) /* 32b */
  2171. /* SYS_TIMER_LATCH_H_08 (0x10006000 + 0x7C4) */
  2172. #define SYS_TIMER_LATCH_H_08_LSB (1U << 0) /* 32b */
  2173. /* SYS_TIMER_LATCH_L_09 (0x10006000 + 0x7C8) */
  2174. #define SYS_TIMER_LATCH_L_09_LSB (1U << 0) /* 32b */
  2175. /* SYS_TIMER_LATCH_H_09 (0x10006000 + 0x7CC) */
  2176. #define SYS_TIMER_LATCH_H_09_LSB (1U << 0) /* 32b */
  2177. /* SYS_TIMER_LATCH_L_10 (0x10006000 + 0x7D0) */
  2178. #define SYS_TIMER_LATCH_L_10_LSB (1U << 0) /* 32b */
  2179. /* SYS_TIMER_LATCH_H_10 (0x10006000 + 0x7D4) */
  2180. #define SYS_TIMER_LATCH_H_10_LSB (1U << 0) /* 32b */
  2181. /* SYS_TIMER_LATCH_L_11 (0x10006000 + 0x7D8) */
  2182. #define SYS_TIMER_LATCH_L_11_LSB (1U << 0) /* 32b */
  2183. /* SYS_TIMER_LATCH_H_11 (0x10006000 + 0x7DC) */
  2184. #define SYS_TIMER_LATCH_H_11_LSB (1U << 0) /* 32b */
  2185. /* SYS_TIMER_LATCH_L_12 (0x10006000 + 0x7E0) */
  2186. #define SYS_TIMER_LATCH_L_12_LSB (1U << 0) /* 32b */
  2187. /* SYS_TIMER_LATCH_H_12 (0x10006000 + 0x7E4) */
  2188. #define SYS_TIMER_LATCH_H_12_LSB (1U << 0) /* 32b */
  2189. /* SYS_TIMER_LATCH_L_13 (0x10006000 + 0x7E8) */
  2190. #define SYS_TIMER_LATCH_L_13_LSB (1U << 0) /* 32b */
  2191. /* SYS_TIMER_LATCH_H_13 (0x10006000 + 0x7EC) */
  2192. #define SYS_TIMER_LATCH_H_13_LSB (1U << 0) /* 32b */
  2193. /* SYS_TIMER_LATCH_L_14 (0x10006000 + 0x7F0) */
  2194. #define SYS_TIMER_LATCH_L_14_LSB (1U << 0) /* 32b */
  2195. /* SYS_TIMER_LATCH_H_14 (0x10006000 + 0x7F4) */
  2196. #define SYS_TIMER_LATCH_H_14_LSB (1U << 0) /* 32b */
  2197. /* SYS_TIMER_LATCH_L_15 (0x10006000 + 0x7F8) */
  2198. #define SYS_TIMER_LATCH_L_15_LSB (1U << 0) /* 32b */
  2199. /* SYS_TIMER_LATCH_H_15 (0x10006000 + 0x7FC) */
  2200. #define SYS_TIMER_LATCH_H_15_LSB (1U << 0) /* 32b */
  2201. /* PCM_WDT_LATCH_0 (0x10006000 + 0x800) */
  2202. #define PCM_WDT_LATCH_0_LSB (1U << 0) /* 32b */
  2203. /* PCM_WDT_LATCH_1 (0x10006000 + 0x804) */
  2204. #define PCM_WDT_LATCH_1_LSB (1U << 0) /* 32b */
  2205. /* PCM_WDT_LATCH_2 (0x10006000 + 0x808) */
  2206. #define PCM_WDT_LATCH_2_LSB (1U << 0) /* 32b */
  2207. /* PCM_WDT_LATCH_3 (0x10006000 + 0x80C) */
  2208. #define PCM_WDT_LATCH_3_LSB (1U << 0) /* 32b */
  2209. /* PCM_WDT_LATCH_4 (0x10006000 + 0x810) */
  2210. #define PCM_WDT_LATCH_4_LSB (1U << 0) /* 32b */
  2211. /* PCM_WDT_LATCH_5 (0x10006000 + 0x814) */
  2212. #define PCM_WDT_LATCH_5_LSB (1U << 0) /* 32b */
  2213. /* PCM_WDT_LATCH_6 (0x10006000 + 0x818) */
  2214. #define PCM_WDT_LATCH_6_LSB (1U << 0) /* 32b */
  2215. /* PCM_WDT_LATCH_7 (0x10006000 + 0x81C) */
  2216. #define PCM_WDT_LATCH_7_LSB (1U << 0) /* 32b */
  2217. /* PCM_WDT_LATCH_8 (0x10006000 + 0x820) */
  2218. #define PCM_WDT_LATCH_8_LSB (1U << 0) /* 32b */
  2219. /* PCM_WDT_LATCH_9 (0x10006000 + 0x824) */
  2220. #define PCM_WDT_LATCH_9_LSB (1U << 0) /* 32b */
  2221. /* PCM_WDT_LATCH_10 (0x10006000 + 0x828) */
  2222. #define PCM_WDT_LATCH_10_LSB (1U << 0) /* 32b */
  2223. /* PCM_WDT_LATCH_11 (0x10006000 + 0x82C) */
  2224. #define PCM_WDT_LATCH_11_LSB (1U << 0) /* 32b */
  2225. /* PCM_WDT_LATCH_12 (0x10006000 + 0x830) */
  2226. #define PCM_WDT_LATCH_12_LSB (1U << 0) /* 32b */
  2227. /* PCM_WDT_LATCH_13 (0x10006000 + 0x834) */
  2228. #define PCM_WDT_LATCH_13_LSB (1U << 0) /* 32b */
  2229. /* PCM_WDT_LATCH_14 (0x10006000 + 0x838) */
  2230. #define PCM_WDT_LATCH_14_LSB (1U << 0) /* 32b */
  2231. /* PCM_WDT_LATCH_15 (0x10006000 + 0x83C) */
  2232. #define PCM_WDT_LATCH_15_LSB (1U << 0) /* 32b */
  2233. /* PCM_WDT_LATCH_16 (0x10006000 + 0x840) */
  2234. #define PCM_WDT_LATCH_16_LSB (1U << 0) /* 32b */
  2235. /* PCM_WDT_LATCH_17 (0x10006000 + 0x844) */
  2236. #define PCM_WDT_LATCH_17_LSB (1U << 0) /* 32b */
  2237. /* PCM_WDT_LATCH_18 (0x10006000 + 0x848) */
  2238. #define PCM_WDT_LATCH_18_LSB (1U << 0) /* 32b */
  2239. /* PCM_WDT_LATCH_SPARE_0 (0x10006000 + 0x84C) */
  2240. #define PCM_WDT_LATCH_SPARE_0_LSB (1U << 0) /* 32b */
  2241. /* PCM_WDT_LATCH_SPARE_1 (0x10006000 + 0x850) */
  2242. #define PCM_WDT_LATCH_SPARE_1_LSB (1U << 0) /* 32b */
  2243. /* PCM_WDT_LATCH_SPARE_2 (0x10006000 + 0x854) */
  2244. #define PCM_WDT_LATCH_SPARE_2_LSB (1U << 0) /* 32b */
  2245. /* PCM_WDT_LATCH_CONN_0 (0x10006000 + 0x870) */
  2246. #define PCM_WDT_LATCH_CONN_0_LSB (1U << 0) /* 32b */
  2247. /* PCM_WDT_LATCH_CONN_1 (0x10006000 + 0x874) */
  2248. #define PCM_WDT_LATCH_CONN_1_LSB (1U << 0) /* 32b */
  2249. /* PCM_WDT_LATCH_CONN_2 (0x10006000 + 0x878) */
  2250. #define PCM_WDT_LATCH_CONN_2_LSB (1U << 0) /* 32b */
  2251. /* DRAMC_GATING_ERR_LATCH_CH0_0 (0x10006000 + 0x8A0) */
  2252. #define DRAMC_GATING_ERR_LATCH_CH0_0_LSB (1U << 0) /* 32b */
  2253. /* DRAMC_GATING_ERR_LATCH_CH0_1 (0x10006000 + 0x8A4) */
  2254. #define DRAMC_GATING_ERR_LATCH_CH0_1_LSB (1U << 0) /* 32b */
  2255. /* DRAMC_GATING_ERR_LATCH_CH0_2 (0x10006000 + 0x8A8) */
  2256. #define DRAMC_GATING_ERR_LATCH_CH0_2_LSB (1U << 0) /* 32b */
  2257. /* DRAMC_GATING_ERR_LATCH_CH0_3 (0x10006000 + 0x8AC) */
  2258. #define DRAMC_GATING_ERR_LATCH_CH0_3_LSB (1U << 0) /* 32b */
  2259. /* DRAMC_GATING_ERR_LATCH_CH0_4 (0x10006000 + 0x8B0) */
  2260. #define DRAMC_GATING_ERR_LATCH_CH0_4_LSB (1U << 0) /* 32b */
  2261. /* DRAMC_GATING_ERR_LATCH_CH0_5 (0x10006000 + 0x8B4) */
  2262. #define DRAMC_GATING_ERR_LATCH_CH0_5_LSB (1U << 0) /* 32b */
  2263. /* DRAMC_GATING_ERR_LATCH_CH0_6 (0x10006000 + 0x8B8) */
  2264. #define DRAMC_GATING_ERR_LATCH_CH0_6_LSB (1U << 0) /* 32b */
  2265. /* DRAMC_GATING_ERR_LATCH_SPARE_0 (0x10006000 + 0x8F4) */
  2266. #define DRAMC_GATING_ERR_LATCH_SPARE_0_LSB (1U << 0) /* 32b */
  2267. /* SPM_ACK_CHK_CON_0 (0x10006000 + 0x900) */
  2268. #define SPM_ACK_CHK_SW_EN_0_LSB (1U << 0) /* 1b */
  2269. #define SPM_ACK_CHK_CLR_ALL_0_LSB (1U << 1) /* 1b */
  2270. #define SPM_ACK_CHK_CLR_TIMER_0_LSB (1U << 2) /* 1b */
  2271. #define SPM_ACK_CHK_CLR_IRQ_0_LSB (1U << 3) /* 1b */
  2272. #define SPM_ACK_CHK_STA_EN_0_LSB (1U << 4) /* 1b */
  2273. #define SPM_ACK_CHK_WAKEUP_EN_0_LSB (1U << 5) /* 1b */
  2274. #define SPM_ACK_CHK_WDT_EN_0_LSB (1U << 6) /* 1b */
  2275. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_0_LSB (1U << 7) /* 1b */
  2276. #define SPM_ACK_CHK_HW_EN_0_LSB (1U << 8) /* 1b */
  2277. #define SPM_ACK_CHK_HW_MODE_0_LSB (1U << 9) /* 3b */
  2278. #define SPM_ACK_CHK_FAIL_0_LSB (1U << 15) /* 1b */
  2279. /* SPM_ACK_CHK_PC_0 (0x10006000 + 0x904) */
  2280. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_0_LSB (1U << 0) /* 16b */
  2281. #define SPM_ACK_CHK_HW_TARG_PC_VAL_0_LSB (1U << 16) /* 16b */
  2282. /* SPM_ACK_CHK_SEL_0 (0x10006000 + 0x908) */
  2283. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_0_LSB (1U << 0) /* 5b */
  2284. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_0_LSB (1U << 5) /* 3b */
  2285. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_0_LSB (1U << 16) /* 5b */
  2286. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_0_LSB (1U << 21) /* 3b */
  2287. /* SPM_ACK_CHK_TIMER_0 (0x10006000 + 0x90C) */
  2288. #define SPM_ACK_CHK_TIMER_VAL_0_LSB (1U << 0) /* 16b */
  2289. #define SPM_ACK_CHK_TIMER_0_LSB (1U << 16) /* 16b */
  2290. /* SPM_ACK_CHK_STA_0 (0x10006000 + 0x910) */
  2291. #define SPM_ACK_CHK_STA_0_LSB (1U << 0) /* 32b */
  2292. /* SPM_ACK_CHK_SWINT_0 (0x10006000 + 0x914) */
  2293. #define SPM_ACK_CHK_SWINT_EN_0_LSB (1U << 0) /* 32b */
  2294. /* SPM_ACK_CHK_CON_1 (0x10006000 + 0x918) */
  2295. #define SPM_ACK_CHK_SW_EN_1_LSB (1U << 0) /* 1b */
  2296. #define SPM_ACK_CHK_CLR_ALL_1_LSB (1U << 1) /* 1b */
  2297. #define SPM_ACK_CHK_CLR_TIMER_1_LSB (1U << 2) /* 1b */
  2298. #define SPM_ACK_CHK_CLR_IRQ_1_LSB (1U << 3) /* 1b */
  2299. #define SPM_ACK_CHK_STA_EN_1_LSB (1U << 4) /* 1b */
  2300. #define SPM_ACK_CHK_WAKEUP_EN_1_LSB (1U << 5) /* 1b */
  2301. #define SPM_ACK_CHK_WDT_EN_1_LSB (1U << 6) /* 1b */
  2302. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_1_LSB (1U << 7) /* 1b */
  2303. #define SPM_ACK_CHK_HW_EN_1_LSB (1U << 8) /* 1b */
  2304. #define SPM_ACK_CHK_HW_MODE_1_LSB (1U << 9) /* 3b */
  2305. #define SPM_ACK_CHK_FAIL_1_LSB (1U << 15) /* 1b */
  2306. /* SPM_ACK_CHK_PC_1 (0x10006000 + 0x91C) */
  2307. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_1_LSB (1U << 0) /* 16b */
  2308. #define SPM_ACK_CHK_HW_TARG_PC_VAL_1_LSB (1U << 16) /* 16b */
  2309. /* SPM_ACK_CHK_SEL_1 (0x10006000 + 0x920) */
  2310. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_1_LSB (1U << 0) /* 5b */
  2311. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_1_LSB (1U << 5) /* 3b */
  2312. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_1_LSB (1U << 16) /* 5b */
  2313. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_1_LSB (1U << 21) /* 3b */
  2314. /* SPM_ACK_CHK_TIMER_1 (0x10006000 + 0x924) */
  2315. #define SPM_ACK_CHK_TIMER_VAL_1_LSB (1U << 0) /* 16b */
  2316. #define SPM_ACK_CHK_TIMER_1_LSB (1U << 16) /* 16b */
  2317. /* SPM_ACK_CHK_STA_1 (0x10006000 + 0x928) */
  2318. #define SPM_ACK_CHK_STA_1_LSB (1U << 0) /* 32b */
  2319. /* SPM_ACK_CHK_SWINT_1 (0x10006000 + 0x92C) */
  2320. #define SPM_ACK_CHK_SWINT_EN_1_LSB (1U << 0) /* 32b */
  2321. /* SPM_ACK_CHK_CON_2 (0x10006000 + 0x930) */
  2322. #define SPM_ACK_CHK_SW_EN_2_LSB (1U << 0) /* 1b */
  2323. #define SPM_ACK_CHK_CLR_ALL_2_LSB (1U << 1) /* 1b */
  2324. #define SPM_ACK_CHK_CLR_TIMER_2_LSB (1U << 2) /* 1b */
  2325. #define SPM_ACK_CHK_CLR_IRQ_2_LSB (1U << 3) /* 1b */
  2326. #define SPM_ACK_CHK_STA_EN_2_LSB (1U << 4) /* 1b */
  2327. #define SPM_ACK_CHK_WAKEUP_EN_2_LSB (1U << 5) /* 1b */
  2328. #define SPM_ACK_CHK_WDT_EN_2_LSB (1U << 6) /* 1b */
  2329. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_2_LSB (1U << 7) /* 1b */
  2330. #define SPM_ACK_CHK_HW_EN_2_LSB (1U << 8) /* 1b */
  2331. #define SPM_ACK_CHK_HW_MODE_2_LSB (1U << 9) /* 3b */
  2332. #define SPM_ACK_CHK_FAIL_2_LSB (1U << 15) /* 1b */
  2333. /* SPM_ACK_CHK_PC_2 (0x10006000 + 0x934) */
  2334. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_2_LSB (1U << 0) /* 16b */
  2335. #define SPM_ACK_CHK_HW_TARG_PC_VAL_2_LSB (1U << 16) /* 16b */
  2336. /* SPM_ACK_CHK_SEL_2 (0x10006000 + 0x938) */
  2337. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_2_LSB (1U << 0) /* 5b */
  2338. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_2_LSB (1U << 5) /* 3b */
  2339. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_2_LSB (1U << 16) /* 5b */
  2340. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_2_LSB (1U << 21) /* 3b */
  2341. /* SPM_ACK_CHK_TIMER_2 (0x10006000 + 0x93C) */
  2342. #define SPM_ACK_CHK_TIMER_VAL_2_LSB (1U << 0) /* 16b */
  2343. #define SPM_ACK_CHK_TIMER_2_LSB (1U << 16) /* 16b */
  2344. /* SPM_ACK_CHK_STA_2 (0x10006000 + 0x940) */
  2345. #define SPM_ACK_CHK_STA_2_LSB (1U << 0) /* 32b */
  2346. /* SPM_ACK_CHK_SWINT_2 (0x10006000 + 0x944) */
  2347. #define SPM_ACK_CHK_SWINT_EN_2_LSB (1U << 0) /* 32b */
  2348. /* SPM_ACK_CHK_CON_3 (0x10006000 + 0x948) */
  2349. #define SPM_ACK_CHK_SW_EN_3_LSB (1U << 0) /* 1b */
  2350. #define SPM_ACK_CHK_CLR_ALL_3_LSB (1U << 1) /* 1b */
  2351. #define SPM_ACK_CHK_CLR_TIMER_3_LSB (1U << 2) /* 1b */
  2352. #define SPM_ACK_CHK_CLR_IRQ_3_LSB (1U << 3) /* 1b */
  2353. #define SPM_ACK_CHK_STA_EN_3_LSB (1U << 4) /* 1b */
  2354. #define SPM_ACK_CHK_WAKEUP_EN_3_LSB (1U << 5) /* 1b */
  2355. #define SPM_ACK_CHK_WDT_EN_3_LSB (1U << 6) /* 1b */
  2356. #define SPM_ACK_CHK_LOCK_PC_TRACE_EN_3_LSB (1U << 7) /* 1b */
  2357. #define SPM_ACK_CHK_HW_EN_3_LSB (1U << 8) /* 1b */
  2358. #define SPM_ACK_CHK_HW_MODE_3_LSB (1U << 9) /* 3b */
  2359. #define SPM_ACK_CHK_FAIL_3_LSB (1U << 15) /* 1b */
  2360. /* SPM_ACK_CHK_PC_3 (0x10006000 + 0x94C) */
  2361. #define SPM_ACK_CHK_HW_TRIG_PC_VAL_3_LSB (1U << 0) /* 16b */
  2362. #define SPM_ACK_CHK_HW_TARG_PC_VAL_3_LSB (1U << 16) /* 16b */
  2363. /* SPM_ACK_CHK_SEL_3 (0x10006000 + 0x950) */
  2364. #define SPM_ACK_CHK_HW_TRIG_SIGNAL_SEL_3_LSB (1U << 0) /* 5b */
  2365. #define SPM_ACK_CHK_HW_TRIG_GROUP_SEL_3_LSB (1U << 5) /* 3b */
  2366. #define SPM_ACK_CHK_HW_TARG_SIGNAL_SEL_3_LSB (1U << 16) /* 5b */
  2367. #define SPM_ACK_CHK_HW_TARG_GROUP_SEL_3_LSB (1U << 21) /* 3b */
  2368. /* SPM_ACK_CHK_TIMER_3 (0x10006000 + 0x954) */
  2369. #define SPM_ACK_CHK_TIMER_VAL_3_LSB (1U << 0) /* 16b */
  2370. #define SPM_ACK_CHK_TIMER_3_LSB (1U << 16) /* 16b */
  2371. /* SPM_ACK_CHK_STA_3 (0x10006000 + 0x958) */
  2372. #define SPM_ACK_CHK_STA_3_LSB (1U << 0) /* 32b */
  2373. /* SPM_ACK_CHK_SWINT_3 (0x10006000 + 0x95C) */
  2374. #define SPM_ACK_CHK_SWINT_EN_3_LSB (1U << 0) /* 32b */
  2375. /* SPM_COUNTER_0 (0x10006000 + 0x960) */
  2376. #define SPM_COUNTER_VAL_0_LSB (1U << 0) /* 14b */
  2377. #define SPM_COUNTER_OUT_0_LSB (1U << 14) /* 14b */
  2378. #define SPM_COUNTER_EN_0_LSB (1U << 28) /* 1b */
  2379. #define SPM_COUNTER_CLR_0_LSB (1U << 29) /* 1b */
  2380. #define SPM_COUNTER_TIMEOUT_0_LSB (1U << 30) /* 1b */
  2381. #define SPM_COUNTER_WAKEUP_EN_0_LSB (1U << 31) /* 1b */
  2382. /* SPM_COUNTER_1 (0x10006000 + 0x964) */
  2383. #define SPM_COUNTER_VAL_1_LSB (1U << 0) /* 14b */
  2384. #define SPM_COUNTER_OUT_1_LSB (1U << 14) /* 14b */
  2385. #define SPM_COUNTER_EN_1_LSB (1U << 28) /* 1b */
  2386. #define SPM_COUNTER_CLR_1_LSB (1U << 29) /* 1b */
  2387. #define SPM_COUNTER_TIMEOUT_1_LSB (1U << 30) /* 1b */
  2388. #define SPM_COUNTER_WAKEUP_EN_1_LSB (1U << 31) /* 1b */
  2389. /* SPM_COUNTER_2 (0x10006000 + 0x968) */
  2390. #define SPM_COUNTER_VAL_2_LSB (1U << 0) /* 14b */
  2391. #define SPM_COUNTER_OUT_2_LSB (1U << 14) /* 14b */
  2392. #define SPM_COUNTER_EN_2_LSB (1U << 28) /* 1b */
  2393. #define SPM_COUNTER_CLR_2_LSB (1U << 29) /* 1b */
  2394. #define SPM_COUNTER_TIMEOUT_2_LSB (1U << 30) /* 1b */
  2395. #define SPM_COUNTER_WAKEUP_EN_2_LSB (1U << 31) /* 1b */
  2396. /* SYS_TIMER_CON (0x10006000 + 0x96C) */
  2397. #define SYS_TIMER_START_EN_LSB (1U << 0) /* 1b */
  2398. #define SYS_TIMER_LATCH_EN_LSB (1U << 1) /* 1b */
  2399. #define SYS_TIMER_ID_LSB (1U << 8) /* 8b */
  2400. #define SYS_TIMER_VALID_LSB (1U << 31) /* 1b */
  2401. /* SPM_TWAM_CON (0x10006000 + 0x970) */
  2402. #define REG_TWAM_ENABLE_LSB (1U << 0) /* 1b */
  2403. #define REG_TWAM_SPEED_MODE_EN_LSB (1U << 1) /* 1b */
  2404. #define REG_TWAM_SW_RST_LSB (1U << 2) /* 1b */
  2405. #define REG_TWAM_IRQ_MASK_LSB (1U << 3) /* 1b */
  2406. #define REG_TWAM_MON_TYPE_0_LSB (1U << 4) /* 2b */
  2407. #define REG_TWAM_MON_TYPE_1_LSB (1U << 6) /* 2b */
  2408. #define REG_TWAM_MON_TYPE_2_LSB (1U << 8) /* 2b */
  2409. #define REG_TWAM_MON_TYPE_3_LSB (1U << 10) /* 2b */
  2410. /* SPM_TWAM_WINDOW_LEN (0x10006000 + 0x974) */
  2411. #define REG_TWAM_WINDOW_LEN_LSB (1U << 0) /* 32b */
  2412. /* SPM_TWAM_IDLE_SEL (0x10006000 + 0x978) */
  2413. #define REG_TWAM_SIG_SEL_0_LSB (1U << 0) /* 7b */
  2414. #define REG_TWAM_SIG_SEL_1_LSB (1U << 8) /* 7b */
  2415. #define REG_TWAM_SIG_SEL_2_LSB (1U << 16) /* 7b */
  2416. #define REG_TWAM_SIG_SEL_3_LSB (1U << 24) /* 7b */
  2417. /* SPM_TWAM_EVENT_CLEAR (0x10006000 + 0x97C) */
  2418. #define SPM_TWAM_EVENT_CLEAR_LSB (1U << 0) /* 1b */
  2419. /* OPP0_TABLE (0x10006000 + 0x980) */
  2420. #define OPP0_TABLE_LSB (1U << 0) /* 32b */
  2421. /* OPP1_TABLE (0x10006000 + 0x984) */
  2422. #define OPP1_TABLE_LSB (1U << 0) /* 32b */
  2423. /* OPP2_TABLE (0x10006000 + 0x988) */
  2424. #define OPP2_TABLE_LSB (1U << 0) /* 32b */
  2425. /* OPP3_TABLE (0x10006000 + 0x98C) */
  2426. #define OPP3_TABLE_LSB (1U << 0) /* 32b */
  2427. /* OPP4_TABLE (0x10006000 + 0x990) */
  2428. #define OPP4_TABLE_LSB (1U << 0) /* 32b */
  2429. /* OPP5_TABLE (0x10006000 + 0x994) */
  2430. #define OPP5_TABLE_LSB (1U << 0) /* 32b */
  2431. /* OPP6_TABLE (0x10006000 + 0x998) */
  2432. #define OPP6_TABLE_LSB (1U << 0) /* 32b */
  2433. /* OPP7_TABLE (0x10006000 + 0x99C) */
  2434. #define OPP7_TABLE_LSB (1U << 0) /* 32b */
  2435. /* OPP8_TABLE (0x10006000 + 0x9A0) */
  2436. #define OPP8_TABLE_LSB (1U << 0) /* 32b */
  2437. /* OPP9_TABLE (0x10006000 + 0x9A4) */
  2438. #define OPP9_TABLE_LSB (1U << 0) /* 32b */
  2439. /* OPP10_TABLE (0x10006000 + 0x9A8) */
  2440. #define OPP10_TABLE_LSB (1U << 0) /* 32b */
  2441. /* OPP11_TABLE (0x10006000 + 0x9AC) */
  2442. #define OPP11_TABLE_LSB (1U << 0) /* 32b */
  2443. /* OPP12_TABLE (0x10006000 + 0x9B0) */
  2444. #define OPP12_TABLE_LSB (1U << 0) /* 32b */
  2445. /* OPP13_TABLE (0x10006000 + 0x9B4) */
  2446. #define OPP13_TABLE_LSB (1U << 0) /* 32b */
  2447. /* OPP14_TABLE (0x10006000 + 0x9B8) */
  2448. #define OPP14_TABLE_LSB (1U << 0) /* 32b */
  2449. /* OPP15_TABLE (0x10006000 + 0x9BC) */
  2450. #define OPP15_TABLE_LSB (1U << 0) /* 32b */
  2451. /* OPP16_TABLE (0x10006000 + 0x9C0) */
  2452. #define OPP16_TABLE_LSB (1U << 0) /* 32b */
  2453. /* OPP17_TABLE (0x10006000 + 0x9C4) */
  2454. #define OPP17_TABLE_LSB (1U << 0) /* 32b */
  2455. /* SHU0_ARRAY (0x10006000 + 0x9C8) */
  2456. #define SHU0_ARRAY_LSB (1U << 0) /* 32b */
  2457. /* SHU1_ARRAY (0x10006000 + 0x9CC) */
  2458. #define SHU1_ARRAY_LSB (1U << 0) /* 32b */
  2459. /* SHU2_ARRAY (0x10006000 + 0x9D0) */
  2460. #define SHU2_ARRAY_LSB (1U << 0) /* 32b */
  2461. /* SHU3_ARRAY (0x10006000 + 0x9D4) */
  2462. #define SHU3_ARRAY_LSB (1U << 0) /* 32b */
  2463. /* SHU4_ARRAY (0x10006000 + 0x9D8) */
  2464. #define SHU4_ARRAY_LSB (1U << 0) /* 32b */
  2465. /* SHU5_ARRAY (0x10006000 + 0x9DC) */
  2466. #define SHU5_ARRAY_LSB (1U << 0) /* 32b */
  2467. /* SHU6_ARRAY (0x10006000 + 0x9E0) */
  2468. #define SHU6_ARRAY_LSB (1U << 0) /* 32b */
  2469. /* SHU7_ARRAY (0x10006000 + 0x9E4) */
  2470. #define SHU7_ARRAY_LSB (1U << 0) /* 32b */
  2471. /* SHU8_ARRAY (0x10006000 + 0x9E8) */
  2472. #define SHU8_ARRAY_LSB (1U << 0) /* 32b */
  2473. /* SHU9_ARRAY (0x10006000 + 0x9EC) */
  2474. #define SHU9_ARRAY_LSB (1U << 0) /* 32b */
  2475. #define SPM_PROJECT_CODE (0xb16)
  2476. #define SPM_REGWR_CFG_KEY (SPM_PROJECT_CODE << 16)
  2477. #endif /* MT_SPM_REG */