power.h 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2011 Samsung Electronics
  4. * Heungjun Kim <riverful.kim@samsung.com>
  5. */
  6. #ifndef __ASM_ARM_ARCH_POWER_H_
  7. #define __ASM_ARM_ARCH_POWER_H_
  8. #ifndef __ASSEMBLY__
  9. struct exynos4_power {
  10. unsigned int om_stat;
  11. unsigned char res1[0x8];
  12. unsigned int rtc_clko_sel;
  13. unsigned int gnss_rtc_out_ctrl;
  14. unsigned char res2[0x1ec];
  15. unsigned int system_power_down_ctrl;
  16. unsigned int res3;
  17. unsigned int system_power_down_option;
  18. unsigned char res4[0x1f4];
  19. unsigned int swreset;
  20. unsigned int rst_stat;
  21. unsigned char res5[0x1f8];
  22. unsigned int wakeup_stat;
  23. unsigned int eint_wakeup_mask;
  24. unsigned int wakeup_mask;
  25. unsigned char res6[0xf4];
  26. unsigned int hdmi_phy_control;
  27. unsigned int usbdevice_phy_control;
  28. unsigned int usbhost_phy_control;
  29. unsigned int dac_phy_control;
  30. unsigned int mipi_phy0_control;
  31. unsigned int mipi_phy1_control;
  32. unsigned int adc_phy_control;
  33. unsigned int pcie_phy_control;
  34. unsigned int sata_phy_control;
  35. unsigned char res7[0xdc];
  36. unsigned int inform0;
  37. unsigned int inform1;
  38. unsigned int inform2;
  39. unsigned int inform3;
  40. unsigned int inform4;
  41. unsigned int inform5;
  42. unsigned int inform6;
  43. unsigned int inform7;
  44. unsigned char res8[0x1e0];
  45. unsigned int pmu_debug;
  46. unsigned char res9[0x5fc];
  47. unsigned int arm_core0_sys_pwr_reg;
  48. unsigned char res10[0xc];
  49. unsigned int arm_core1_sys_pwr_reg;
  50. unsigned char res11[0x6c];
  51. unsigned int arm_common_sys_pwr_reg;
  52. unsigned char res12[0x3c];
  53. unsigned int arm_cpu_l2_0_sys_pwr_reg;
  54. unsigned int arm_cpu_l2_1_sys_pwr_reg;
  55. unsigned char res13[0x38];
  56. unsigned int cmu_aclkstop_sys_pwr_reg;
  57. unsigned int cmu_sclkstop_sys_pwr_reg;
  58. unsigned char res14[0x4];
  59. unsigned int cmu_reset_sys_pwr_reg;
  60. unsigned char res15[0x10];
  61. unsigned int apll_sysclk_sys_pwr_reg;
  62. unsigned int mpll_sysclk_sys_pwr_reg;
  63. unsigned int vpll_sysclk_sys_pwr_reg;
  64. unsigned int epll_sysclk_sys_pwr_reg;
  65. unsigned char res16[0x8];
  66. unsigned int cmu_clkstop_gps_alive_sys_pwr_reg;
  67. unsigned int cmu_reset_gps_alive_sys_pwr_reg;
  68. unsigned int cmu_clkstop_cam_sys_pwr_reg;
  69. unsigned int cmu_clkstop_tv_sys_pwr_reg;
  70. unsigned int cmu_clkstop_mfc_sys_pwr_reg;
  71. unsigned int cmu_clkstop_g3d_sys_pwr_reg;
  72. unsigned int cmu_clkstop_lcd0_sys_pwr_reg;
  73. unsigned int cmu_clkstop_lcd1_sys_pwr_reg;
  74. unsigned int cmu_clkstop_maudio_sys_pwr_reg;
  75. unsigned int cmu_clkstop_gps_sys_pwr_reg;
  76. unsigned int cmu_reset_cam_sys_pwr_reg;
  77. unsigned int cmu_reset_tv_sys_pwr_reg;
  78. unsigned int cmu_reset_mfc_sys_pwr_reg;
  79. unsigned int cmu_reset_g3d_sys_pwr_reg;
  80. unsigned int cmu_reset_lcd0_sys_pwr_reg;
  81. unsigned int cmu_reset_lcd1_sys_pwr_reg;
  82. unsigned int cmu_reset_maudio_sys_pwr_reg;
  83. unsigned int cmu_reset_gps_sys_pwr_reg;
  84. unsigned int top_bus_sys_pwr_reg;
  85. unsigned int top_retention_sys_pwr_reg;
  86. unsigned int top_pwr_sys_pwr_reg;
  87. unsigned char res17[0x1c];
  88. unsigned int logic_reset_sys_pwr_reg;
  89. unsigned char res18[0x14];
  90. unsigned int onenandxl_mem_sys_pwr_reg;
  91. unsigned int modemif_mem_sys_pwr_reg;
  92. unsigned char res19[0x4];
  93. unsigned int usbdevice_mem_sys_pwr_reg;
  94. unsigned int sdmmc_mem_sys_pwr_reg;
  95. unsigned int cssys_mem_sys_pwr_reg;
  96. unsigned int secss_mem_sys_pwr_reg;
  97. unsigned char res20[0x4];
  98. unsigned int pcie_mem_sys_pwr_reg;
  99. unsigned int sata_mem_sys_pwr_reg;
  100. unsigned char res21[0x18];
  101. unsigned int pad_retention_dram_sys_pwr_reg;
  102. unsigned int pad_retention_maudio_sys_pwr_reg;
  103. unsigned char res22[0x18];
  104. unsigned int pad_retention_gpio_sys_pwr_reg;
  105. unsigned int pad_retention_uart_sys_pwr_reg;
  106. unsigned int pad_retention_mmca_sys_pwr_reg;
  107. unsigned int pad_retention_mmcb_sys_pwr_reg;
  108. unsigned int pad_retention_ebia_sys_pwr_reg;
  109. unsigned int pad_retention_ebib_sys_pwr_reg;
  110. unsigned char res23[0x8];
  111. unsigned int pad_isolation_sys_pwr_reg;
  112. unsigned char res24[0x1c];
  113. unsigned int pad_alv_sel_sys_pwr_reg;
  114. unsigned char res25[0x1c];
  115. unsigned int xusbxti_sys_pwr_reg;
  116. unsigned int xxti_sys_pwr_reg;
  117. unsigned char res26[0x38];
  118. unsigned int ext_regulator_sys_pwr_reg;
  119. unsigned char res27[0x3c];
  120. unsigned int gpio_mode_sys_pwr_reg;
  121. unsigned char res28[0x3c];
  122. unsigned int gpio_mode_maudio_sys_pwr_reg;
  123. unsigned char res29[0x3c];
  124. unsigned int cam_sys_pwr_reg;
  125. unsigned int tv_sys_pwr_reg;
  126. unsigned int mfc_sys_pwr_reg;
  127. unsigned int g3d_sys_pwr_reg;
  128. unsigned int lcd0_sys_pwr_reg;
  129. unsigned int lcd1_sys_pwr_reg;
  130. unsigned int maudio_sys_pwr_reg;
  131. unsigned int gps_sys_pwr_reg;
  132. unsigned int gps_alive_sys_pwr_reg;
  133. unsigned char res30[0xc5c];
  134. unsigned int arm_core0_configuration;
  135. unsigned int arm_core0_status;
  136. unsigned int arm_core0_option;
  137. unsigned char res31[0x74];
  138. unsigned int arm_core1_configuration;
  139. unsigned int arm_core1_status;
  140. unsigned int arm_core1_option;
  141. unsigned char res32[0x37c];
  142. unsigned int arm_common_option;
  143. unsigned char res33[0x1f4];
  144. unsigned int arm_cpu_l2_0_configuration;
  145. unsigned int arm_cpu_l2_0_status;
  146. unsigned char res34[0x18];
  147. unsigned int arm_cpu_l2_1_configuration;
  148. unsigned int arm_cpu_l2_1_status;
  149. unsigned char res35[0xa00];
  150. unsigned int pad_retention_maudio_option;
  151. unsigned char res36[0xdc];
  152. unsigned int pad_retention_gpio_option;
  153. unsigned char res37[0x1c];
  154. unsigned int pad_retention_uart_option;
  155. unsigned char res38[0x1c];
  156. unsigned int pad_retention_mmca_option;
  157. unsigned char res39[0x1c];
  158. unsigned int pad_retention_mmcb_option;
  159. unsigned char res40[0x1c];
  160. unsigned int pad_retention_ebia_option;
  161. unsigned char res41[0x1c];
  162. unsigned int pad_retention_ebib_option;
  163. unsigned char res42[0x160];
  164. unsigned int ps_hold_control;
  165. unsigned char res43[0xf0];
  166. unsigned int xusbxti_configuration;
  167. unsigned int xusbxti_status;
  168. unsigned char res44[0x14];
  169. unsigned int xusbxti_duration;
  170. unsigned int xxti_configuration;
  171. unsigned int xxti_status;
  172. unsigned char res45[0x14];
  173. unsigned int xxti_duration;
  174. unsigned char res46[0x1dc];
  175. unsigned int ext_regulator_duration;
  176. unsigned char res47[0x5e0];
  177. unsigned int cam_configuration;
  178. unsigned int cam_status;
  179. unsigned int cam_option;
  180. unsigned char res48[0x14];
  181. unsigned int tv_configuration;
  182. unsigned int tv_status;
  183. unsigned int tv_option;
  184. unsigned char res49[0x14];
  185. unsigned int mfc_configuration;
  186. unsigned int mfc_status;
  187. unsigned int mfc_option;
  188. unsigned char res50[0x14];
  189. unsigned int g3d_configuration;
  190. unsigned int g3d_status;
  191. unsigned int g3d_option;
  192. unsigned char res51[0x14];
  193. unsigned int lcd0_configuration;
  194. unsigned int lcd0_status;
  195. unsigned int lcd0_option;
  196. unsigned char res52[0x14];
  197. unsigned int lcd1_configuration;
  198. unsigned int lcd1_status;
  199. unsigned int lcd1_option;
  200. unsigned char res53[0x34];
  201. unsigned int gps_configuration;
  202. unsigned int gps_status;
  203. unsigned int gps_option;
  204. unsigned char res54[0x14];
  205. unsigned int gps_alive_configuration;
  206. unsigned int gps_alive_status;
  207. unsigned int gps_alive_option;
  208. };
  209. struct exynos4412_power {
  210. unsigned char res1[0x0704];
  211. unsigned int usbhost_phy_control;
  212. unsigned int hsic1_phy_control;
  213. unsigned int hsic2_phy_control;
  214. };
  215. struct exynos5_power {
  216. unsigned int om_stat;
  217. unsigned char res1[0x18];
  218. unsigned int rtc_clko_sel;
  219. unsigned int gnss_rtc_out_ctrl;
  220. unsigned char res2[0x1dc];
  221. unsigned int central_seq_configuration;
  222. unsigned int central_seq_status;
  223. unsigned int central_seq_option;
  224. unsigned char res3[0x14];
  225. unsigned int seq_transition0;
  226. unsigned int seq_transition1;
  227. unsigned int seq_transition2;
  228. unsigned int seq_transition3;
  229. unsigned int seq_transition4;
  230. unsigned int seq_transition5;
  231. unsigned int seq_transition6;
  232. unsigned int seq_transition7;
  233. unsigned int central_seq_dmc_configuration;
  234. unsigned int central_seq_dmc_status;
  235. unsigned int central_seq_dmc_option;
  236. unsigned char res4[0x14];
  237. unsigned int seq_dmc_transition0;
  238. unsigned int seq_dmc_transition1;
  239. unsigned int seq_dmc_transition2;
  240. unsigned int seq_dmc_transition3;
  241. unsigned int seq_dmc_transition4;
  242. unsigned int seq_dmc_transition5;
  243. unsigned int seq_dmc_transition6;
  244. unsigned int seq_dmc_transition7;
  245. unsigned char res5[0x180];
  246. unsigned int swreset;
  247. unsigned int rst_stat;
  248. unsigned int automatic_wdt_reset_disable;
  249. unsigned int mask_wdt_reset_request;
  250. unsigned int mask_wreset_request;
  251. unsigned char res6[0xec];
  252. unsigned int reset_sequencer_configuration;
  253. unsigned int reset_sequencer_status;
  254. unsigned int reset_sequencer_option;
  255. unsigned char res7[0xf4];
  256. unsigned int wakeup_stat;
  257. unsigned int eint_wakeup_mask;
  258. unsigned int wakeup_mask;
  259. unsigned int wakeup_interrupt;
  260. unsigned char res8[0x10];
  261. unsigned int wakeup_stat_dmc;
  262. unsigned int eint_wakeup_mask_dmc;
  263. unsigned int wakeup_mask_dmc;
  264. unsigned int wakeup_interrupt_dmc;
  265. unsigned char res9[0xd0];
  266. unsigned int hdmi_phy_control;
  267. unsigned int usbdrd_phy_control;
  268. unsigned int usbhost_phy_control;
  269. unsigned int efnand_phy_control;
  270. unsigned int mipi_phy0_control;
  271. unsigned int mipi_phy1_control;
  272. unsigned int adc_phy_control;
  273. unsigned int mtcadc_phy_control;
  274. unsigned int dptx_phy_control;
  275. unsigned int sata_phy_control;
  276. unsigned char res10[0xd8];
  277. unsigned int inform0;
  278. unsigned int inform1;
  279. unsigned int inform2;
  280. unsigned int inform3;
  281. unsigned int sysip_dat0;
  282. unsigned int sysip_dat1;
  283. unsigned int sysip_dat2;
  284. unsigned int sysip_dat3;
  285. unsigned char res11[0xe0];
  286. unsigned int pmu_spare0;
  287. unsigned int pmu_spare1;
  288. unsigned int pmu_spare2;
  289. unsigned int pmu_spare3;
  290. unsigned char res12[0x70];
  291. unsigned int irom_data_reg0;
  292. unsigned int irom_data_reg1;
  293. unsigned int irom_data_reg2;
  294. unsigned int irom_data_reg3;
  295. unsigned char res13[0x70];
  296. unsigned int pmu_debug;
  297. unsigned char res14[0x5fc];
  298. unsigned int arm_core0_sys_pwr_reg;
  299. unsigned int dis_irq_arm_core0_local_sys_pwr_reg;
  300. unsigned int dis_irq_arm_core0_central_sys_pwr_reg;
  301. unsigned char res15[0x4];
  302. unsigned int arm_core1_sys_pwr_reg;
  303. unsigned int dis_irq_arm_core1_local_sys_pwr_reg;
  304. unsigned int dis_irq_arm_core1_central_sys_pwr_reg;
  305. unsigned char res16[0x24];
  306. unsigned int fsys_arm_sys_pwr_reg;
  307. unsigned int dis_irq_fsys_arm_local_sys_pwr_reg;
  308. unsigned int dis_irq_fsys_arm_central_sys_pwr_reg;
  309. unsigned char res17[0x4];
  310. unsigned int isp_arm_sys_pwr_reg;
  311. unsigned int dis_irq_isp_arm_local_sys_pwr_reg;
  312. unsigned int dis_irq_isp_arm_central_sys_pwr_reg;
  313. unsigned char res18[0x24];
  314. unsigned int arm_common_sys_pwr_reg;
  315. unsigned char res19[0x3c];
  316. unsigned int arm_l2_sys_pwr_reg;
  317. unsigned char res20[0x3c];
  318. unsigned int cmu_aclkstop_sys_pwr_reg;
  319. unsigned int cmu_sclkstop_sys_pwr_reg;
  320. unsigned char res21[0x4];
  321. unsigned int cmu_reset_sys_pwr_reg;
  322. unsigned char res22[0x10];
  323. unsigned int cmu_aclkstop_dmc_sys_pwr_reg;
  324. unsigned int cmu_sclkstop_dmc_sys_pwr_reg;
  325. unsigned char res23[0x4];
  326. unsigned int cmu_reset_dmc_sys_pwr_reg;
  327. unsigned char res24[0x8];
  328. unsigned int ddrphy_dlllock_sys_pwr_reg;
  329. unsigned char res25[0x4];
  330. unsigned int apll_sysclk_sys_pwr_reg;
  331. unsigned int mpll_sysclk_sys_pwr_reg;
  332. unsigned int vpll_sysclk_sys_pwr_reg;
  333. unsigned int epll_sysclk_sys_pwr_reg;
  334. unsigned int bpll_sysclk_sys_pwr_reg;
  335. unsigned int cpll_sysclk_sys_pwr_reg;
  336. unsigned int gpll_sysclk_sys_pwr_reg;
  337. unsigned char res26[0x8];
  338. unsigned int mplluser_sysclk_sys_pwr_reg;
  339. unsigned char res27[0x8];
  340. unsigned int bplluser_sysclk_sys_pwr_reg;
  341. unsigned char res28[0xc];
  342. unsigned int top_bus_sys_pwr_reg;
  343. unsigned int top_retention_sys_pwr_reg;
  344. unsigned int top_pwr_sys_pwr_reg;
  345. unsigned char res29[0x4];
  346. unsigned int top_bus_dmc_sys_pwr_reg;
  347. unsigned int top_retention_dmc_sys_pwr_reg;
  348. unsigned int top_pwr_dmc_sys_pwr_reg;
  349. unsigned char res30[0x4];
  350. unsigned int logic_reset_sys_pwr_reg;
  351. unsigned int oscclk_gate_sys_pwr_reg;
  352. unsigned char res31[0x8];
  353. unsigned int logic_reset_dmc_sys_pwr_reg;
  354. unsigned int oscclk_gate_dmc_sys_pwr_reg;
  355. unsigned char res32[0x8];
  356. unsigned int usbotg_mem_sys_pwr_reg;
  357. unsigned char res33[0x4];
  358. unsigned int g2d_mem_sys_pwr_reg;
  359. unsigned int usbdrd_mem_sys_pwr_reg;
  360. unsigned int efnand_mem_sys_pwr_reg;
  361. unsigned int cssys_mem_sys_pwr_reg;
  362. unsigned int secss_mem_sys_pwr_reg;
  363. unsigned int rotator_mem_sys_pwr_reg;
  364. unsigned int intram_mem_sys_pwr_reg;
  365. unsigned int introm_mem_sys_pwr_reg;
  366. unsigned int jpeg_mem_sys_pwr_reg;
  367. unsigned int hsi_mem_sys_pwr_reg;
  368. unsigned char res34[0x4];
  369. unsigned int mcuiop_mem_sys_pwr_reg;
  370. unsigned char res35[0x4];
  371. unsigned int sata_mem_sys_pwr_reg;
  372. unsigned int pad_retention_dram_sys_pwr_reg;
  373. unsigned int pad_retention_mau_sys_pwr_reg;
  374. unsigned int pad_retention_jtag_sys_pwr_reg;
  375. unsigned char res36[0xc];
  376. unsigned int pad_retention_mmc2_sys_pwr_reg;
  377. unsigned int pad_retention_mmc3_sys_pwr_reg;
  378. unsigned int pad_retention_gpio_sys_pwr_reg;
  379. unsigned int pad_retention_uart_sys_pwr_reg;
  380. unsigned int pad_retention_mmc0_sys_pwr_reg;
  381. unsigned int pad_retention_mmc1_sys_pwr_reg;
  382. unsigned int pad_retention_ebia_sys_pwr_reg;
  383. unsigned int pad_retention_ebib_sys_pwr_reg;
  384. unsigned int pad_retention_spi_sys_pwr_reg;
  385. unsigned int pad_retention_gpio_dmc_sys_pwr_reg;
  386. unsigned int pad_isolation_sys_pwr_reg;
  387. unsigned char res37[0xc];
  388. unsigned int pad_isolation_dmc_sys_pwr_reg;
  389. unsigned char res38[0xc];
  390. unsigned int pad_alv_sel_sys_pwr_reg;
  391. unsigned char res39[0x20];
  392. unsigned int xxti_sys_pwr_reg;
  393. unsigned char res40[0x38];
  394. unsigned int ext_regulator_sys_pwr_reg;
  395. unsigned char res41[0x3c];
  396. unsigned int gpio_mode_sys_pwr_reg;
  397. unsigned char res42[0x1c];
  398. unsigned int gpio_mode_dmc_sys_pwr_reg;
  399. unsigned char res43[0x1c];
  400. unsigned int gpio_mode_mau_sys_pwr_reg;
  401. unsigned int top_asb_reset_sys_pwr_reg;
  402. unsigned int top_asb_isolation_sys_pwr_reg;
  403. unsigned char res44[0xb4];
  404. unsigned int gscl_sys_pwr_reg;
  405. unsigned int isp_sys_pwr_reg;
  406. unsigned int mfc_sys_pwr_reg;
  407. unsigned int g3d_sys_pwr_reg;
  408. unsigned char res45[0x4];
  409. unsigned int disp1_sys_pwr_reg;
  410. unsigned int mau_sys_pwr_reg;
  411. unsigned char res46[0x64];
  412. unsigned int cmu_clkstop_gscl_sys_pwr_reg;
  413. unsigned int cmu_clkstop_isp_sys_pwr_reg;
  414. unsigned int cmu_clkstop_mfc_sys_pwr_reg;
  415. unsigned int cmu_clkstop_g3d_sys_pwr_reg;
  416. unsigned char res47[0x4];
  417. unsigned int cmu_clkstop_disp1_sys_pwr_reg;
  418. unsigned int cmu_clkstop_mau_sys_pwr_reg;
  419. unsigned char res48[0x24];
  420. unsigned int cmu_sysclk_gscl_sys_pwr_reg;
  421. unsigned int cmu_sysclk_isp_sys_pwr_reg;
  422. unsigned int cmu_sysclk_mfc_sys_pwr_reg;
  423. unsigned int cmu_sysclk_g3d_sys_pwr_reg;
  424. unsigned char res49[0x4];
  425. unsigned int cmu_sysclk_disp1_sys_pwr_reg;
  426. unsigned int cmu_sysclk_mau_sys_pwr_reg;
  427. unsigned char res50[0xa4];
  428. unsigned int cmu_reset_gscl_sys_pwr_reg;
  429. unsigned int cmu_reset_isp_sys_pwr_reg;
  430. unsigned int cmu_reset_mfc_sys_pwr_reg;
  431. unsigned int cmu_reset_g3d_sys_pwr_reg;
  432. unsigned char res51[0x4];
  433. unsigned int cmu_reset_disp1_sys_pwr_reg;
  434. unsigned int cmu_reset_mau_sys_pwr_reg;
  435. unsigned char res52[0xa64];
  436. unsigned int arm_core0_configuration;
  437. unsigned int arm_core0_status;
  438. unsigned int arm_core0_option;
  439. unsigned char res53[0x14];
  440. unsigned int dis_irq_arm_core0_local_configuration;
  441. unsigned int dis_irq_arm_core0_local_status;
  442. unsigned int dis_irq_arm_core0_local_option;
  443. unsigned char res54[0x14];
  444. unsigned int dis_irq_arm_core0_central_configuration;
  445. unsigned int dis_irq_arm_core0_central_status;
  446. unsigned int dis_irq_arm_core0_central_option;
  447. unsigned char res55[0x34];
  448. unsigned int arm_core1_configuration;
  449. unsigned int arm_core1_status;
  450. unsigned int arm_core1_option;
  451. unsigned char res56[0x14];
  452. unsigned int dis_irq_arm_core1_local_configuration;
  453. unsigned int dis_irq_arm_core1_local_status;
  454. unsigned int dis_irq_arm_core1_local_option;
  455. unsigned char res57[0x14];
  456. unsigned int dis_irq_arm_core1_central_configuration;
  457. unsigned int dis_irq_arm_core1_central_status;
  458. unsigned int dis_irq_arm_core1_central_option;
  459. unsigned char res58[0x134];
  460. unsigned int fsys_arm_configuration;
  461. unsigned int fsys_arm_status;
  462. unsigned int fsys_arm_option;
  463. unsigned char res59[0x14];
  464. unsigned int dis_irq_fsys_arm_local_configuration;
  465. unsigned int dis_irq_fsys_arm_local_status;
  466. unsigned int dis_irq_fsys_arm_local_option;
  467. unsigned char res60[0x14];
  468. unsigned int dis_irq_fsys_arm_central_configuration;
  469. unsigned int dis_irq_fsys_arm_central_status;
  470. unsigned int dis_irq_fsys_arm_central_option;
  471. unsigned char res61[0x34];
  472. unsigned int isp_arm_configuration;
  473. unsigned int isp_arm_status;
  474. unsigned int isp_arm_option;
  475. unsigned char res62[0x14];
  476. unsigned int dis_irq_isp_arm_local_configuration;
  477. unsigned int dis_irq_isp_arm_local_status;
  478. unsigned int dis_irq_isp_arm_local_option;
  479. unsigned char res63[0x14];
  480. unsigned int dis_irq_isp_arm_central_configuration;
  481. unsigned int dis_irq_isp_arm_central_status;
  482. unsigned int dis_irq_isp_arm_central_option;
  483. unsigned char res64[0x134];
  484. unsigned int arm_common_configuration;
  485. unsigned int arm_common_status;
  486. unsigned int arm_common_option;
  487. unsigned char res65[0x1f4];
  488. unsigned int arm_l2_configuration;
  489. unsigned int arm_l2_status;
  490. unsigned int arm_l2_option;
  491. unsigned char res66[0x1f4];
  492. unsigned int cmu_aclkstop_configuration;
  493. unsigned int cmu_aclkstop_status;
  494. unsigned int cmu_aclkstop_option;
  495. unsigned char res67[0x14];
  496. unsigned int cmu_sclkstop_configuration;
  497. unsigned int cmu_sclkstop_status;
  498. unsigned int cmu_sclkstop_option;
  499. unsigned char res68[0x34];
  500. unsigned int cmu_reset_configuration;
  501. unsigned int cmu_reset_status;
  502. unsigned int cmu_reset_option;
  503. unsigned char res69[0x94];
  504. unsigned int cmu_aclkstop_dmc_configuration;
  505. unsigned int cmu_aclkstop_dmc_status;
  506. unsigned int cmu_aclkstop_dmc_option;
  507. unsigned char res70[0x14];
  508. unsigned int cmu_sclkstop_dmc_configuration;
  509. unsigned int cmu_sclkstop_dmc_status;
  510. unsigned int cmu_sclkstop_dmc_option;
  511. unsigned char res71[0x34];
  512. unsigned int cmu_reset_dmc_configuration;
  513. unsigned int cmu_reset_dmc_status;
  514. unsigned int cmu_reset_dmc_option;
  515. unsigned char res72[0x54];
  516. unsigned int ddrphy_dlllock_configuration;
  517. unsigned int ddrphy_dlllock_status;
  518. unsigned int ddrphy_dlllock_option;
  519. unsigned char res73[0x34];
  520. unsigned int apll_sysclk_configuration;
  521. unsigned int apll_sysclk_status;
  522. unsigned int apll_sysclk_option;
  523. unsigned char res74[0x18];
  524. unsigned int mpll_sysclk_status;
  525. unsigned int mpll_sysclk_option;
  526. unsigned char res75[0x14];
  527. unsigned int vpll_sysclk_configuration;
  528. unsigned int vpll_sysclk_status;
  529. unsigned int vpll_sysclk_option;
  530. unsigned char res76[0x14];
  531. unsigned int epll_sysclk_configuration;
  532. unsigned int epll_sysclk_status;
  533. unsigned int epll_sysclk_option;
  534. unsigned char res77[0x14];
  535. unsigned int bpll_sysclk_configuration;
  536. unsigned int bpll_sysclk_status;
  537. unsigned int bpll_sysclk_option;
  538. unsigned char res78[0x14];
  539. unsigned int cpll_sysclk_configuration;
  540. unsigned int cpll_sysclk_status;
  541. unsigned int cpll_sysclk_option;
  542. unsigned char res79[0x14];
  543. unsigned int gpll_sysclk_configuration;
  544. unsigned int gpll_sysclk_status;
  545. unsigned int gpll_sysclk_option;
  546. unsigned char res80[0x54];
  547. unsigned int mplluser_sysclk_configuration;
  548. unsigned int mplluser_sysclk_status;
  549. unsigned int mplluser_sysclk_option;
  550. unsigned char res81[0x54];
  551. unsigned int bplluser_sysclk_configuration;
  552. unsigned int bplluser_sysclk_status;
  553. unsigned int bplluser_sysclk_option;
  554. unsigned char res82[0x74];
  555. unsigned int top_bus_configuration;
  556. unsigned int top_bus_status;
  557. unsigned int top_bus_option;
  558. unsigned char res83[0x14];
  559. unsigned int top_retention_configuration;
  560. unsigned int top_retention_status;
  561. unsigned int top_retention_option;
  562. unsigned char res84[0x14];
  563. unsigned int top_pwr_configuration;
  564. unsigned int top_pwr_status;
  565. unsigned int top_pwr_option;
  566. unsigned char res85[0x34];
  567. unsigned int top_bus_dmc_configuration;
  568. unsigned int top_bus_dmc_status;
  569. unsigned int top_bus_dmc_option;
  570. unsigned char res86[0x14];
  571. unsigned int top_retention_dmc_configuration;
  572. unsigned int top_retention_dmc_status;
  573. unsigned int top_retention_dmc_option;
  574. unsigned char res87[0x14];
  575. unsigned int top_pwr_dmc_configuration;
  576. unsigned int top_pwr_dmc_status;
  577. unsigned int top_pwr_dmc_option;
  578. unsigned char res88[0x34];
  579. unsigned int logic_reset_configuration;
  580. unsigned int logic_reset_status;
  581. unsigned int logic_reset_option;
  582. unsigned char res89[0x14];
  583. unsigned int oscclk_gate_configuration;
  584. unsigned int oscclk_gate_status;
  585. unsigned int oscclk_gate_option;
  586. unsigned char res90[0x54];
  587. unsigned int logic_reset_dmc_configuration;
  588. unsigned int logic_reset_dmc_status;
  589. unsigned int logic_reset_dmc_option;
  590. unsigned char res91[0x14];
  591. unsigned int oscclk_gate_dmc_configuration;
  592. unsigned int oscclk_gate_dmc_status;
  593. unsigned int oscclk_gate_dmc_option;
  594. unsigned char res92[0x54];
  595. unsigned int usbotg_mem_configuration;
  596. unsigned int usbotg_mem_status;
  597. unsigned int usbotg_mem_option;
  598. unsigned char res93[0x34];
  599. unsigned int g2d_mem_configuration;
  600. unsigned int g2d_mem_status;
  601. unsigned int g2d_mem_option;
  602. unsigned char res94[0x14];
  603. unsigned int usbdrd_mem_configuration;
  604. unsigned int usbdrd_mem_status;
  605. unsigned int usbdrd_mem_option;
  606. unsigned char res95[0x14];
  607. unsigned int efnand_mem_configuration;
  608. unsigned int efnand_mem_status;
  609. unsigned int efnand_mem_option;
  610. unsigned char res96[0x14];
  611. unsigned int cssys_mem_configuration;
  612. unsigned int cssys_mem_status;
  613. unsigned int cssys_mem_option;
  614. unsigned char res97[0x14];
  615. unsigned int secss_mem_configuration;
  616. unsigned int secss_mem_status;
  617. unsigned int secss_mem_option;
  618. unsigned char res98[0x14];
  619. unsigned int rotator_mem_configuration;
  620. unsigned int rotator_mem_status;
  621. unsigned int rotator_mem_option;
  622. unsigned char res99[0x14];
  623. unsigned int intram_mem_configuration;
  624. unsigned int intram_mem_status;
  625. unsigned int intram_mem_option;
  626. unsigned char res100[0x14];
  627. unsigned int introm_mem_configuration;
  628. unsigned int introm_mem_status;
  629. unsigned int introm_mem_option;
  630. unsigned char res101[0x14];
  631. unsigned int jpeg_mem_configuration;
  632. unsigned int jpeg_mem_status;
  633. unsigned int jpeg_mem_option;
  634. unsigned char res102[0x14];
  635. unsigned int hsi_mem_configuration;
  636. unsigned int hsi_mem_status;
  637. unsigned int hsi_mem_option;
  638. unsigned char res103[0x34];
  639. unsigned int mcuiop_mem_configuration;
  640. unsigned int mcuiop_mem_status;
  641. unsigned int mcuiop_mem_option;
  642. unsigned char res104[0x14];
  643. unsigned int sata_mem_configuration;
  644. unsigned int sata_mem_status;
  645. unsigned int sata_mem_option;
  646. unsigned char res105[0x34];
  647. unsigned int pad_retention_dram_configuration;
  648. unsigned int pad_retention_dram_status;
  649. unsigned int pad_retention_dram_option;
  650. unsigned char res106[0x14];
  651. unsigned int pad_retention_mau_configuration;
  652. unsigned int pad_retention_mau_status;
  653. unsigned int pad_retention_mau_option;
  654. unsigned char res107[0x14];
  655. unsigned int pad_retention_jtag_configuration;
  656. unsigned int pad_retention_jtag_status;
  657. unsigned int pad_retention_jtag_option;
  658. unsigned char res108[0x74];
  659. unsigned int pad_retention_mmc2_configuration;
  660. unsigned int pad_retention_mmc2_status;
  661. unsigned int pad_retention_mmc2_option;
  662. unsigned char res109[0x14];
  663. unsigned int pad_retention_mmc3_configuration;
  664. unsigned int pad_retention_mmc3_status;
  665. unsigned int pad_retention_mmc3_option;
  666. unsigned char res110[0x14];
  667. unsigned int pad_retention_gpio_configuration;
  668. unsigned int pad_retention_gpio_status;
  669. unsigned int pad_retention_gpio_option;
  670. unsigned char res111[0x14];
  671. unsigned int pad_retention_uart_configuration;
  672. unsigned int pad_retention_uart_status;
  673. unsigned int pad_retention_uart_option;
  674. unsigned char res112[0x14];
  675. unsigned int pad_retention_mmc0_configuration;
  676. unsigned int pad_retention_mmc0_status;
  677. unsigned int pad_retention_mmc0_option;
  678. unsigned char res113[0x14];
  679. unsigned int pad_retention_mmc1_configuration;
  680. unsigned int pad_retention_mmc1_status;
  681. unsigned int pad_retention_mmc1_option;
  682. unsigned char res114[0x14];
  683. unsigned int pad_retention_ebia_configuration;
  684. unsigned int pad_retention_ebia_status;
  685. unsigned int pad_retention_ebia_option;
  686. unsigned char res115[0x14];
  687. unsigned int pad_retention_ebib_configuration;
  688. unsigned int pad_retention_ebib_status;
  689. unsigned int pad_retention_ebib_option;
  690. unsigned char res116[0x14];
  691. unsigned int pad_retention_spi_configuration;
  692. unsigned int pad_retention_spi_status;
  693. unsigned int pad_retention_spi_option;
  694. unsigned char res117[0x14];
  695. unsigned int pad_retention_gpio_dmc_configuration;
  696. unsigned int pad_retention_gpio_dmc_status;
  697. unsigned int pad_retention_gpio_dmc_option;
  698. unsigned char res118[0x14];
  699. unsigned int pad_isolation_configuration;
  700. unsigned int pad_isolation_status;
  701. unsigned int pad_isolation_option;
  702. unsigned char res119[0x74];
  703. unsigned int pad_isolation_dmc_configuration;
  704. unsigned int pad_isolation_dmc_status;
  705. unsigned int pad_isolation_dmc_option;
  706. unsigned char res120[0x74];
  707. unsigned int pad_alv_sel_configuration;
  708. unsigned int pad_alv_sel_status;
  709. unsigned int pad_alv_sel_option0;
  710. unsigned int ps_hold_control;
  711. unsigned char res130[0x110];
  712. unsigned int xxti_configuration;
  713. unsigned int xxti_status;
  714. unsigned int xxti_option;
  715. unsigned char res131[0x10];
  716. unsigned int xxti_duration3;
  717. unsigned char res132[0x1c0];
  718. unsigned int ext_regulator_configuration;
  719. unsigned int ext_regulator_status;
  720. unsigned int ext_regulator_option;
  721. unsigned char res133[0x10];
  722. unsigned int ext_regulator_duration3;
  723. unsigned char res134[0x1e0];
  724. unsigned int gpio_mode_configuration;
  725. unsigned int gpio_mode_status;
  726. unsigned int gpio_mode_option;
  727. unsigned char res135[0xf4];
  728. unsigned int gpio_mode_dmc_configuration;
  729. unsigned int gpio_mode_dmc_status;
  730. unsigned int gpio_mode_dmc_option;
  731. unsigned char res136[0xd4];
  732. unsigned int gpio_mode_mau_configuration;
  733. unsigned int gpio_mode_mau_status;
  734. unsigned int gpio_mode_mau_option;
  735. unsigned char res137[0x14];
  736. unsigned int top_asb_reset_configuration;
  737. unsigned int top_asb_reset_status;
  738. unsigned int top_asb_reset_option;
  739. unsigned char res138[0x14];
  740. unsigned int top_asb_isolation_configuration;
  741. unsigned int top_asb_isolation_status;
  742. unsigned int top_asb_isolation_option;
  743. unsigned char res139[0x5d4];
  744. unsigned int gscl_configuration;
  745. unsigned int gscl_status;
  746. unsigned int gscl_option;
  747. unsigned char res140[0x14];
  748. unsigned int isp_configuration;
  749. unsigned int isp_status;
  750. unsigned int isp_option;
  751. unsigned char res141[0x14];
  752. unsigned int mfc_configuration;
  753. unsigned int mfc_status;
  754. unsigned int mfc_option;
  755. unsigned char res142[0x14];
  756. unsigned int g3d_configuration;
  757. unsigned int g3d_status;
  758. unsigned int g3d_option;
  759. unsigned char res143[0x34];
  760. unsigned int disp1_configuration;
  761. unsigned int disp1_status;
  762. unsigned int disp1_option;
  763. unsigned char res144[0x14];
  764. unsigned int mau_configuration;
  765. unsigned int mau_status;
  766. unsigned int mau_option;
  767. unsigned char res145[0x334];
  768. unsigned int cmu_clkstop_gscl_configuration;
  769. unsigned int cmu_clkstop_gscl_status;
  770. unsigned int cmu_clkstop_gscl_option;
  771. unsigned char res146[0x14];
  772. unsigned int cmu_clkstop_isp_configuration;
  773. unsigned int cmu_clkstop_isp_status;
  774. unsigned int cmu_clkstop_isp_option;
  775. unsigned char res147[0x14];
  776. unsigned int cmu_clkstop_mfc_configuration;
  777. unsigned int cmu_clkstop_mfc_status;
  778. unsigned int cmu_clkstop_mfc_option;
  779. unsigned char res148[0x14];
  780. unsigned int cmu_clkstop_g3d_configuration;
  781. unsigned int cmu_clkstop_g3d_status;
  782. unsigned int cmu_clkstop_g3d_option;
  783. unsigned char res149[0x34];
  784. unsigned int cmu_clkstop_disp1_configuration;
  785. unsigned int cmu_clkstop_disp1_status;
  786. unsigned int cmu_clkstop_disp1_option;
  787. unsigned char res150[0x14];
  788. unsigned int cmu_clkstop_mau_configuration;
  789. unsigned int cmu_clkstop_mau_status;
  790. unsigned int cmu_clkstop_mau_option;
  791. unsigned char res151[0x134];
  792. unsigned int cmu_sysclk_gscl_configuration;
  793. unsigned int cmu_sysclk_gscl_status;
  794. unsigned int cmu_sysclk_gscl_option;
  795. unsigned char res152[0x18];
  796. unsigned int cmu_sysclk_isp_status;
  797. unsigned int cmu_sysclk_isp_option;
  798. unsigned char res153[0x18];
  799. unsigned int cmu_sysclk_mfc_status;
  800. unsigned int cmu_sysclk_mfc_option;
  801. unsigned char res154[0x18];
  802. unsigned int cmu_sysclk_g3d_status;
  803. unsigned int cmu_sysclk_g3d_option;
  804. unsigned char res155[0x38];
  805. unsigned int cmu_sysclk_disp1_status;
  806. unsigned int cmu_sysclk_disp1_option;
  807. unsigned char res156[0x18];
  808. unsigned int cmu_sysclk_mau_status;
  809. unsigned int cmu_sysclk_mau_option;
  810. unsigned char res157[0x534];
  811. unsigned int cmu_reset_gscl_configuration;
  812. unsigned int cmu_reset_gscl_status;
  813. unsigned int cmu_reset_gscl_option;
  814. unsigned char res158[0x14];
  815. unsigned int cmu_reset_isp_configuration;
  816. unsigned int cmu_reset_isp_status;
  817. unsigned int cmu_reset_isp_option;
  818. unsigned char res159[0x14];
  819. unsigned int cmu_reset_mfc_configuration;
  820. unsigned int cmu_reset_mfc_status;
  821. unsigned int cmu_reset_mfc_option;
  822. unsigned char res160[0x14];
  823. unsigned int cmu_reset_g3d_configuration;
  824. unsigned int cmu_reset_g3d_status;
  825. unsigned int cmu_reset_g3d_option;
  826. unsigned char res161[0x34];
  827. unsigned int cmu_reset_disp1_configuration;
  828. unsigned int cmu_reset_disp1_status;
  829. unsigned int cmu_reset_disp1_option;
  830. unsigned char res162[0x14];
  831. unsigned int cmu_reset_mau_configuration;
  832. unsigned int cmu_reset_mau_status;
  833. unsigned int cmu_reset_mau_option;
  834. unsigned char res163[0x24];
  835. };
  836. struct exynos5420_power {
  837. unsigned int om_stat;
  838. unsigned int lpi_mask0;
  839. unsigned int lpi_mask1;
  840. unsigned char res1[0x10];
  841. unsigned int rtc_clko_sel;
  842. unsigned char res2[0x1e0];
  843. unsigned int central_seq_configuration;
  844. unsigned int central_seq_status;
  845. unsigned int central_seq_option;
  846. unsigned char res3[0x14];
  847. unsigned int seq_transition0;
  848. unsigned int seq_transition1;
  849. unsigned int seq_transition2;
  850. unsigned int seq_transition3;
  851. unsigned int seq_transition4;
  852. unsigned int seq_transition5;
  853. unsigned int seq_transition6;
  854. unsigned int seq_transition7;
  855. unsigned int central_seq_coreblk_configuration;
  856. unsigned int central_seq_coreblk_status;
  857. unsigned int central_seq_coreblk_option;
  858. unsigned char res4[0x14];
  859. unsigned int seq_coreblk_transition0;
  860. unsigned int seq_coreblk_transition1;
  861. unsigned int seq_coreblk_transition2;
  862. unsigned int seq_coreblk_transition3;
  863. unsigned int seq_coreblk_transition4;
  864. unsigned int seq_coreblk_transition5;
  865. unsigned int seq_coreblk_transition6;
  866. unsigned int seq_coreblk_transition7;
  867. unsigned char res5[0x180];
  868. unsigned int swreset;
  869. unsigned int rst_stat;
  870. unsigned int automatic_wdt_reset_disable;
  871. unsigned int mask_wdt_reset_request;
  872. unsigned int mask_wreset_request;
  873. unsigned char res6[0xec];
  874. unsigned int reset_sequencer_configuration;
  875. unsigned int reset_sequencer_status;
  876. unsigned int reset_sequencer_option;
  877. unsigned char res7[0xf4];
  878. unsigned int wakeup_stat;
  879. unsigned int eint_wakeup_mask;
  880. unsigned int wakeup_mask;
  881. unsigned int wakeup_interrupt;
  882. unsigned char res8[0x10];
  883. unsigned int wakeup_stat_coreblk;
  884. unsigned int eint_wakeup_mask_coreblk;
  885. unsigned int wakeup_mask_coreblk;
  886. unsigned int wakeup_interrupt_coreblk;
  887. unsigned char res9[0xd0];
  888. unsigned int hdmi_phy_control;
  889. unsigned int usbdev_phy_control;
  890. unsigned int usbdev1_phy_control;
  891. unsigned int usbhost_phy_control;
  892. unsigned char res104[0x4];
  893. unsigned int mipi_phy0_control;
  894. unsigned int mipi_phy1_control;
  895. unsigned int mipi_phy2_control;
  896. unsigned int adc_phy_control;
  897. unsigned int mtcadc_phy_control;
  898. unsigned int dptx_phy_control;
  899. unsigned char res10[0xd4];
  900. unsigned int inform0;
  901. unsigned int inform1;
  902. unsigned int inform2;
  903. unsigned int inform3;
  904. unsigned int sysip_dat0;
  905. unsigned int sysip_dat1;
  906. unsigned int sysip_dat2;
  907. unsigned int sysip_dat3;
  908. unsigned char res11[0xe0];
  909. unsigned int pmu_spare0;
  910. unsigned int pmu_spare1; /* Store PHY0_CON4 for read leveling */
  911. unsigned int pmu_spare2; /* Store PHY1_CON4 for read leveling */
  912. unsigned int pmu_spare3;
  913. unsigned char res12[0x4];
  914. unsigned int cg_status0;
  915. unsigned int cg_status1;
  916. unsigned int cg_status2;
  917. unsigned int cg_status3;
  918. unsigned int cg_status4;
  919. unsigned char res200[0x58];
  920. unsigned int irom_data_reg0;
  921. unsigned int irom_data_reg1;
  922. unsigned int irom_data_reg2;
  923. unsigned int irom_data_reg3;
  924. unsigned char res13[0x70];
  925. unsigned int pmu_debug;
  926. unsigned char res14[0x5fc];
  927. unsigned int arm_core0_sys_pwr_reg;
  928. unsigned char res500[0xc];
  929. unsigned int arm_core1_sys_pwr_reg;
  930. unsigned char res501[0xc];
  931. unsigned int arm_core2_sys_pwr_reg;
  932. unsigned char res502[0xc];
  933. unsigned int arm_core3_sys_pwr_reg;
  934. unsigned char res503[0xc];
  935. unsigned int kfc_core0_sys_pwr_reg;
  936. unsigned char res504[0xc];
  937. unsigned int kfc_core1_sys_pwr_reg;
  938. unsigned char res505[0xc];
  939. unsigned int kfc_core2_sys_pwr_reg;
  940. unsigned char res506[0xc];
  941. unsigned int kfc_core3_sys_pwr_reg;
  942. unsigned char res507[0x1c];
  943. unsigned int isp_arm_sys_pwr_reg;
  944. unsigned char res18[0xc];
  945. unsigned int arm_common_sys_pwr_reg;
  946. unsigned char res508[0xc];
  947. unsigned int kfc_common_sys_pwr_reg;
  948. unsigned char res19[0xc];
  949. unsigned int arm_l2_sys_pwr_reg;
  950. unsigned char res509[0xc];
  951. unsigned int kfc_l2_sys_pwr_reg;
  952. unsigned char res20[0xc];
  953. unsigned int cmu_cpu_aclkstop_sys_pwr_reg;
  954. unsigned int cmu_cpu_sclkstop_sys_pwr_reg;
  955. unsigned char res510[0x8];
  956. unsigned int cmu_kfc_aclkstop_sys_pwr_reg;
  957. unsigned char res511[0xc];
  958. unsigned int cmu_aclkstop_sys_pwr_reg;
  959. unsigned int cmu_sclkstop_sys_pwr_reg;
  960. unsigned char res21[0x4];
  961. unsigned int cmu_reset_sys_pwr_reg;
  962. unsigned char res22[0x10];
  963. unsigned int cmu_aclkstop_coreblk_sys_pwr_reg;
  964. unsigned int cmu_sclkstop_coreblk_sys_pwr_reg;
  965. unsigned char res23[0x4];
  966. unsigned int cmu_reset_coreblk_sys_pwr_reg;
  967. unsigned int dram_freq_down_sys_pwr_reg;
  968. unsigned int ddrphy_dlloff_sys_pwr_reg;
  969. unsigned int ddrphy_dlllock_sys_pwr_reg;
  970. unsigned char res25[0x4];
  971. unsigned int apll_sysclk_sys_pwr_reg;
  972. unsigned int mpll_sysclk_sys_pwr_reg;
  973. unsigned int vpll_sysclk_sys_pwr_reg;
  974. unsigned int epll_sysclk_sys_pwr_reg;
  975. unsigned int bpll_sysclk_sys_pwr_reg;
  976. unsigned int cpll_sysclk_sys_pwr_reg;
  977. unsigned int dpll_sysclk_sys_pwr_reg;
  978. unsigned int ipll_sysclk_sys_pwr_reg;
  979. unsigned int kpll_sysclk_sys_pwr_reg;
  980. unsigned int mplluser_sysclk_sys_pwr_reg;
  981. unsigned char res512[0x8];
  982. unsigned int bplluser_sysclk_sys_pwr_reg;
  983. unsigned int rpll_sysclk_sys_pwr_reg;
  984. unsigned int spll_sysclk_sys_pwr_reg;
  985. unsigned char res26[0x4];
  986. unsigned int top_bus_sys_pwr_reg;
  987. unsigned int top_retention_sys_pwr_reg;
  988. unsigned int top_pwr_sys_pwr_reg;
  989. unsigned char res29[0x4];
  990. unsigned int top_bus_coreblk_sys_pwr_reg;
  991. unsigned int top_retention_coreblk_sys_pwr_reg;
  992. unsigned int top_pwr_coreblk_sys_pwr_reg;
  993. unsigned char res30[0x4];
  994. unsigned int logic_reset_sys_pwr_reg;
  995. unsigned int oscclk_gate_sys_pwr_reg;
  996. unsigned char res31[0x8];
  997. unsigned int logic_reset_coreblk_sys_pwr_reg;
  998. unsigned int oscclk_gate_coreblk_sys_pwr_reg;
  999. unsigned int intram_mem_sys_pwr_reg;
  1000. unsigned int introm_mem_sys_pwr_reg;
  1001. unsigned char res32[0x44];
  1002. unsigned int pad_retention_mau_sys_pwr_reg;
  1003. unsigned int pad_retention_jtag_sys_pwr_reg;
  1004. unsigned char res36[0x4];
  1005. unsigned int pad_retention_dram_sys_pwr_reg;
  1006. unsigned int pad_retention_uart_sys_pwr_reg;
  1007. unsigned int pad_retention_mmca_sys_pwr_reg;
  1008. unsigned int pad_retention_mmcb_sys_pwr_reg;
  1009. unsigned int pad_retention_mmcc_sys_pwr_reg;
  1010. unsigned int pad_retention_hsi_sys_pwr_reg;
  1011. unsigned int pad_retention_ebia_sys_pwr_reg;
  1012. unsigned int pad_retention_ebib_sys_pwr_reg;
  1013. unsigned int pad_retention_spi_sys_pwr_reg;
  1014. unsigned int pad_retention_dram_coreblk_sys_pwr_reg;
  1015. unsigned char res28[0x8];
  1016. unsigned int pad_isolation_sys_pwr_reg;
  1017. unsigned char res37[0xc];
  1018. unsigned int pad_isolation_coreblk_sys_pwr_reg;
  1019. unsigned char res38[0xc];
  1020. unsigned int pad_alv_sel_sys_pwr_reg;
  1021. unsigned char res39[0x1c];
  1022. unsigned int xusbxti_sys_pwr_reg;
  1023. unsigned int xxti_sys_pwr_reg;
  1024. unsigned char res40[0x38];
  1025. unsigned int ext_regulator_sys_pwr_reg;
  1026. unsigned char res41[0x3c];
  1027. unsigned int gpio_mode_sys_pwr_reg;
  1028. unsigned char res42[0x1c];
  1029. unsigned int gpio_mode_coreblk_sys_pwr_reg;
  1030. unsigned char res43[0x1c];
  1031. unsigned int gpio_mode_mau_sys_pwr_reg;
  1032. unsigned int top_asb_reset_sys_pwr_reg;
  1033. unsigned int top_asb_isolation_sys_pwr_reg;
  1034. unsigned char res44[0xb4];
  1035. unsigned int gscl_sys_pwr_reg;
  1036. unsigned int isp_sys_pwr_reg;
  1037. unsigned int mfc_sys_pwr_reg;
  1038. unsigned int g3d_sys_pwr_reg;
  1039. unsigned int disp1_sys_pwr_reg;
  1040. unsigned int mau_sys_pwr_reg;
  1041. unsigned int g2d_sys_pwr_reg;
  1042. unsigned int msc_sys_pwr_reg;
  1043. unsigned int fsys_sys_pwr_reg;
  1044. unsigned int fsys2_sys_pwr_reg;
  1045. unsigned int psgen_sys_pwr_reg;
  1046. unsigned int peric_sys_pwr_reg;
  1047. unsigned int wcore_sys_pwr_reg;
  1048. unsigned char res46[0x4c];
  1049. unsigned int cmu_clkstop_gscl_sys_pwr_reg;
  1050. unsigned int cmu_clkstop_isp_sys_pwr_reg;
  1051. unsigned int cmu_clkstop_mfc_sys_pwr_reg;
  1052. unsigned int cmu_clkstop_g3d_sys_pwr_reg;
  1053. unsigned int cmu_clkstop_disp1_sys_pwr_reg;
  1054. unsigned int cmu_clkstop_mau_sys_pwr_reg;
  1055. unsigned int cmu_clkstop_g2d_sys_pwr_reg;
  1056. unsigned int cmu_clkstop_msc_sys_pwr_reg;
  1057. unsigned int cmu_clkstop_fsys_sys_pwr_reg;
  1058. unsigned int cmu_clkstop_fsys2_sys_pwr_reg;
  1059. unsigned int cmu_clkstop_psgen_sys_pwr_reg;
  1060. unsigned int cmu_clkstop_peric_sys_pwr_reg;
  1061. unsigned int cmu_clkstop_wcore_sys_pwr_reg;
  1062. unsigned char res48[0x8];
  1063. unsigned int cmu_sysclk_toppwr_sys_pwr_reg;
  1064. unsigned int cmu_sysclk_gscl_sys_pwr_reg;
  1065. unsigned int cmu_sysclk_isp_sys_pwr_reg;
  1066. unsigned int cmu_sysclk_mfc_sys_pwr_reg;
  1067. unsigned int cmu_sysclk_g3d_sys_pwr_reg;
  1068. unsigned int cmu_sysclk_disp1_sys_pwr_reg;
  1069. unsigned int cmu_sysclk_mau_sys_pwr_reg;
  1070. unsigned int cmu_sysclk_g2d_sys_pwr_reg;
  1071. unsigned int cmu_sysclk_msc_sys_pwr_reg;
  1072. unsigned int cmu_sysclk_fsys_sys_pwr_reg;
  1073. unsigned int cmu_sysclk_fsys2_sys_pwr_reg;
  1074. unsigned int cmu_sysclk_psgen_sys_pwr_reg;
  1075. unsigned int cmu_sysclk_peric_sys_pwr_reg;
  1076. unsigned int cmu_sysclk_wcore_sys_pwr_reg;
  1077. unsigned int cmu_sysclk_coreblk_toppwr_sys_pwr_reg;
  1078. unsigned char res50[0x78];
  1079. unsigned int cmu_reset_fsys2_sys_pwr_reg;
  1080. unsigned int cmu_reset_psgen_sys_pwr_reg;
  1081. unsigned int cmu_reset_peric_sys_pwr_reg;
  1082. unsigned int cmu_reset_wcore_sys_pwr_reg;
  1083. unsigned int cmu_reset_gscl_sys_pwr_reg;
  1084. unsigned int cmu_reset_isp_sys_pwr_reg;
  1085. unsigned int cmu_reset_mfc_sys_pwr_reg;
  1086. unsigned int cmu_reset_g3d_sys_pwr_reg;
  1087. unsigned int cmu_reset_disp1_sys_pwr_reg;
  1088. unsigned int cmu_reset_mau_sys_pwr_reg;
  1089. unsigned int cmu_reset_g2d_sys_pwr_reg;
  1090. unsigned int cmu_reset_msc_sys_pwr_reg;
  1091. unsigned int cmu_reset_fsys_sys_pwr_reg;
  1092. unsigned char res52[0xa5c];
  1093. unsigned int arm_core0_configuration;
  1094. unsigned int arm_core0_status;
  1095. unsigned int arm_core0_option;
  1096. unsigned char res53[0x14];
  1097. unsigned int dis_irq_arm_core0_local_configuration;
  1098. unsigned int dis_irq_arm_core0_local_status;
  1099. unsigned int dis_irq_arm_core0_local_option;
  1100. unsigned char res54[0x14];
  1101. unsigned int dis_irq_arm_core0_central_configuration;
  1102. unsigned int dis_irq_arm_core0_central_status;
  1103. unsigned int dis_irq_arm_core0_central_option;
  1104. unsigned char res55[0x34];
  1105. unsigned int arm_core1_configuration;
  1106. unsigned int arm_core1_status;
  1107. unsigned int arm_core1_option;
  1108. unsigned char res56[0x14];
  1109. unsigned int dis_irq_arm_core1_local_configuration;
  1110. unsigned int dis_irq_arm_core1_local_status;
  1111. unsigned int dis_irq_arm_core1_local_option;
  1112. unsigned char res57[0x14];
  1113. unsigned int dis_irq_arm_core1_central_configuration;
  1114. unsigned int dis_irq_arm_core1_central_status;
  1115. unsigned int dis_irq_arm_core1_central_option;
  1116. unsigned char res600[0x34];
  1117. unsigned int arm_core2_configuration;
  1118. unsigned int arm_core2_status;
  1119. unsigned int arm_core2_option;
  1120. unsigned char res601[0x14];
  1121. unsigned int dis_irq_arm_core2_local_configuration;
  1122. unsigned int dis_irq_arm_core2_local_status;
  1123. unsigned int dis_irq_arm_core2_local_option;
  1124. unsigned char res602[0x14];
  1125. unsigned int dis_irq_arm_core2_central_configuration;
  1126. unsigned int dis_irq_arm_core2_central_status;
  1127. unsigned int dis_irq_arm_core2_central_option;
  1128. unsigned char res603[0x34];
  1129. unsigned int arm_core3_configuration;
  1130. unsigned int arm_core3_status;
  1131. unsigned int arm_core3_option;
  1132. unsigned char res900[0x14];
  1133. unsigned int dis_irq_arm_core3_local_configuration;
  1134. unsigned int dis_irq_arm_core3_local_status;
  1135. unsigned int dis_irq_arm_core3_local_option;
  1136. unsigned char res901[0x14];
  1137. unsigned int dis_irq_arm_core3_central_configuration;
  1138. unsigned int dis_irq_arm_core3_central_status;
  1139. unsigned int dis_irq_arm_core3_central_option;
  1140. unsigned char res604[0x34];
  1141. unsigned int kfc_core0_configuration;
  1142. unsigned int kfc_core0_status;
  1143. unsigned int kfc_core0_option;
  1144. unsigned char res605[0x14];
  1145. unsigned int dis_irq_kfc_core0_local_configuration;
  1146. unsigned int dis_irq_kfc_core0_local_status;
  1147. unsigned int dis_irq_kfc_core0_local_option;
  1148. unsigned char res606[0x14];
  1149. unsigned int dis_irq_kfc_core0_central_configuration;
  1150. unsigned int dis_irq_kfc_core0_central_status;
  1151. unsigned int dis_irq_kfc_core0_central_option;
  1152. unsigned char res607[0x34];
  1153. unsigned int kfc_core1_configuration;
  1154. unsigned int kfc_core1_status;
  1155. unsigned int kfc_core1_option;
  1156. unsigned char res608[0x14];
  1157. unsigned int dis_irq_kfc_core1_local_configuration;
  1158. unsigned int dis_irq_kfc_core1_local_status;
  1159. unsigned int dis_irq_kfc_core1_local_option;
  1160. unsigned char res609[0x14];
  1161. unsigned int dis_irq_kfc_core1_central_configuration;
  1162. unsigned int dis_irq_kfc_core1_central_status;
  1163. unsigned int dis_irq_kfc_core1_central_option;
  1164. unsigned char res610[0x34];
  1165. unsigned int kfc_core2_configuration;
  1166. unsigned int kfc_core2_status;
  1167. unsigned int kfc_core2_option;
  1168. unsigned char res611[0x14];
  1169. unsigned int dis_irq_kfc_core2_local_configuration;
  1170. unsigned int dis_irq_kfc_core2_local_status;
  1171. unsigned int dis_irq_kfc_core2_local_option;
  1172. unsigned char res612[0x14];
  1173. unsigned int dis_irq_kfc_core2_central_configuration;
  1174. unsigned int dis_irq_kfc_core2_central_status;
  1175. unsigned int dis_irq_kfc_core2_central_option;
  1176. unsigned char res613[0x34];
  1177. unsigned int kfc_core3_configuration;
  1178. unsigned int kfc_core3_status;
  1179. unsigned int kfc_core3_option;
  1180. unsigned char res614[0x14];
  1181. unsigned int dis_irq_kfc_core3_local_configuration;
  1182. unsigned int dis_irq_kfc_core3_local_status;
  1183. unsigned int dis_irq_kfc_core3_local_option;
  1184. unsigned char res615[0x14];
  1185. unsigned int dis_irq_kfc_core3_central_configuration;
  1186. unsigned int dis_irq_kfc_core3_central_status;
  1187. unsigned int dis_irq_kfc_core3_central_option;
  1188. unsigned char res61[0xb4];
  1189. unsigned int isp_arm_configuration;
  1190. unsigned int isp_arm_status;
  1191. unsigned int isp_arm_option;
  1192. unsigned char res62[0x14];
  1193. unsigned int dis_irq_isp_arm_local_configuration;
  1194. unsigned int dis_irq_isp_arm_local_status;
  1195. unsigned int dis_irq_isp_arm_local_option;
  1196. unsigned char res63[0x14];
  1197. unsigned int dis_irq_isp_arm_central_configuration;
  1198. unsigned int dis_irq_isp_arm_central_status;
  1199. unsigned int dis_irq_isp_arm_central_option;
  1200. unsigned char res64[0x34];
  1201. unsigned int arm_common_configuration;
  1202. unsigned int arm_common_status;
  1203. unsigned int arm_common_option;
  1204. unsigned char res616[0x74];
  1205. unsigned int kfc_common_configuration;
  1206. unsigned int kfc_common_status;
  1207. unsigned int kfc_common_option;
  1208. unsigned char res65[0x74];
  1209. unsigned int arm_l2_configuration;
  1210. unsigned int arm_l2_status;
  1211. unsigned int arm_l2_option;
  1212. unsigned char res617[0x74];
  1213. unsigned int kfc_l2_configuration;
  1214. unsigned int kfc_l2_status;
  1215. unsigned int kfc_l2_option;
  1216. unsigned char res66[0x74];
  1217. unsigned int cmu_cpu_aclkstop_configuration;
  1218. unsigned int cmu_cpu_aclkstop_status;
  1219. unsigned int cmu_cpu_aclkstop_option;
  1220. unsigned char res67[0x14];
  1221. unsigned int cmu_cpu_sclkstop_configuration;
  1222. unsigned int cmu_cpu_sclkstop_status;
  1223. unsigned int cmu_cpu_sclkstop_option;
  1224. unsigned char res618[0x4];
  1225. unsigned int cmu_kfc_aclkstop_configuration;
  1226. unsigned int cmu_kfc_aclkstop_status;
  1227. unsigned int cmu_kfc_aclkstop_option;
  1228. unsigned char res619[0xc4];
  1229. unsigned int cmu_aclkstop_configuration;
  1230. unsigned int cmu_aclkstop_status;
  1231. unsigned int cmu_aclkstop_option;
  1232. unsigned char res620[0x14];
  1233. unsigned int cmu_sclkstop_configuration;
  1234. unsigned int cmu_sclkstop_status;
  1235. unsigned int cmu_sclkstop_option;
  1236. unsigned char res68[0x34];
  1237. unsigned int cmu_reset_configuration;
  1238. unsigned int cmu_reset_status;
  1239. unsigned int cmu_reset_option;
  1240. unsigned char res69[0x94];
  1241. unsigned int cmu_aclkstop_coreblk_configuration;
  1242. unsigned int cmu_aclkstop_coreblk_status;
  1243. unsigned int cmu_aclkstop_coreblk_option;
  1244. unsigned char res70[0x14];
  1245. unsigned int cmu_sclkstop_coreblk_configuration;
  1246. unsigned int cmu_sclkstop_coreblk_status;
  1247. unsigned int cmu_sclkstop_coreblk_option;
  1248. unsigned char res71[0x34];
  1249. unsigned int cmu_reset_coreblk_configuration;
  1250. unsigned int cmu_reset_coreblk_status;
  1251. unsigned int cmu_reset_coreblk_option;
  1252. unsigned char res621[0x14];
  1253. unsigned int dram_freq_down_configuration;
  1254. unsigned int dram_freq_down_status;
  1255. unsigned int dram_freq_down_option;
  1256. unsigned char res622[0x14];
  1257. unsigned int ddrphy_dlloff_configuration;
  1258. unsigned int ddrphy_dlloff_status;
  1259. unsigned int ddrphy_dlloff_option;
  1260. unsigned char res72[0x14];
  1261. unsigned int ddrphy_dlllock_configuration;
  1262. unsigned int ddrphy_dlllock_status;
  1263. unsigned int ddrphy_dlllock_option;
  1264. unsigned char res73[0x34];
  1265. unsigned int apll_sysclk_configuration;
  1266. unsigned int apll_sysclk_status;
  1267. unsigned int apll_sysclk_option;
  1268. unsigned char res74[0x18];
  1269. unsigned int mpll_sysclk_status;
  1270. unsigned int mpll_sysclk_option;
  1271. unsigned char res75[0x14];
  1272. unsigned int vpll_sysclk_configuration;
  1273. unsigned int vpll_sysclk_status;
  1274. unsigned int vpll_sysclk_option;
  1275. unsigned char res76[0x14];
  1276. unsigned int epll_sysclk_configuration;
  1277. unsigned int epll_sysclk_status;
  1278. unsigned int epll_sysclk_option;
  1279. unsigned char res77[0x14];
  1280. unsigned int bpll_sysclk_configuration;
  1281. unsigned int bpll_sysclk_status;
  1282. unsigned int bpll_sysclk_option;
  1283. unsigned char res78[0x14];
  1284. unsigned int cpll_sysclk_configuration;
  1285. unsigned int cpll_sysclk_status;
  1286. unsigned int cpll_sysclk_option;
  1287. unsigned char res79[0x14];
  1288. unsigned int dpll_sysclk_configuration;
  1289. unsigned int dpll_sysclk_status;
  1290. unsigned int dpll_sysclk_option;
  1291. unsigned char res700[0x14];
  1292. unsigned int ipll_sysclk_configuration;
  1293. unsigned int ipll_sysclk_status;
  1294. unsigned int ipll_sysclk_option;
  1295. unsigned char res903[0x14];
  1296. unsigned int kpll_sysclk_configuration;
  1297. unsigned int kpll_sysclk_status;
  1298. unsigned int kpll_sysclk_option;
  1299. unsigned char res80[0x14];
  1300. unsigned int mplluser_sysclk_configuration;
  1301. unsigned int mplluser_sysclk_status;
  1302. unsigned int mplluser_sysclk_option;
  1303. unsigned char res81[0x54];
  1304. unsigned int bplluser_sysclk_configuration;
  1305. unsigned int bplluser_sysclk_status;
  1306. unsigned int bplluser_sysclk_option;
  1307. unsigned char res701[0x14];
  1308. unsigned int rplluser_sysclk_configuration;
  1309. unsigned int rplluser_sysclk_status;
  1310. unsigned int rplluser_sysclk_option;
  1311. unsigned char res702[0x14];
  1312. unsigned int splluser_sysclk_configuration;
  1313. unsigned int splluser_sysclk_status;
  1314. unsigned int splluser_sysclk_option;
  1315. unsigned char res82[0x34];
  1316. unsigned int top_bus_configuration;
  1317. unsigned int top_bus_status;
  1318. unsigned int top_bus_option;
  1319. unsigned char res83[0x14];
  1320. unsigned int top_retention_configuration;
  1321. unsigned int top_retention_status;
  1322. unsigned int top_retention_option;
  1323. unsigned char res84[0x14];
  1324. unsigned int top_pwr_configuration;
  1325. unsigned int top_pwr_status;
  1326. unsigned int top_pwr_option;
  1327. unsigned char res85[0x34];
  1328. unsigned int top_bus_coreblk_configuration;
  1329. unsigned int top_bus_coreblk_status;
  1330. unsigned int top_bus_coreblk_option;
  1331. unsigned char res86[0x14];
  1332. unsigned int top_retention_coreblk_configuration;
  1333. unsigned int top_retention_coreblk_status;
  1334. unsigned int top_retention_coreblk_option;
  1335. unsigned char res87[0x14];
  1336. unsigned int top_pwr_coreblk_configuration;
  1337. unsigned int top_pwr_coreblk_status;
  1338. unsigned int top_pwr_coreblk_option;
  1339. unsigned char res88[0x34];
  1340. unsigned int logic_reset_configuration;
  1341. unsigned int logic_reset_status;
  1342. unsigned int logic_reset_option;
  1343. unsigned char res89[0x14];
  1344. unsigned int oscclk_gate_configuration;
  1345. unsigned int oscclk_gate_status;
  1346. unsigned int oscclk_gate_option;
  1347. unsigned char res90[0x54];
  1348. unsigned int logic_reset_coreblk_configuration;
  1349. unsigned int logic_reset_coreblk_status;
  1350. unsigned int logic_reset_coreblk_option;
  1351. unsigned char res91[0x14];
  1352. unsigned int oscclk_gate_coreblk_configuration;
  1353. unsigned int oscclk_gate_coreblk_status;
  1354. unsigned int oscclk_gate_coreblk_option;
  1355. unsigned char res99[0x174];
  1356. unsigned int intram_mem_configuration;
  1357. unsigned int intram_mem_status;
  1358. unsigned int intram_mem_option;
  1359. unsigned char res100[0x14];
  1360. unsigned int introm_mem_configuration;
  1361. unsigned int introm_mem_status;
  1362. unsigned int introm_mem_option;
  1363. unsigned char res101[0xb4];
  1364. unsigned int pad_retention_dram_configuration;
  1365. unsigned int pad_retention_dram_status;
  1366. unsigned int pad_retention_dram_option;
  1367. unsigned char res106[0x14];
  1368. unsigned int pad_retention_mau_configuration;
  1369. unsigned int pad_retention_mau_status;
  1370. unsigned int pad_retention_mau_option;
  1371. unsigned char res107[0x14];
  1372. unsigned int pad_retention_jtag_configuration;
  1373. unsigned int pad_retention_jtag_status;
  1374. unsigned int pad_retention_jtag_option;
  1375. unsigned char res92[0x74];
  1376. unsigned int pad_retention_dram_configuration_2;
  1377. unsigned int pad_retention_dram_status_2;
  1378. unsigned int pad_retention_dram_option_2;
  1379. unsigned char res111[0x14];
  1380. unsigned int pad_retention_uart_configuration;
  1381. unsigned int pad_retention_uart_status;
  1382. unsigned int pad_retention_uart_option;
  1383. unsigned char res112[0x14];
  1384. unsigned int pad_retention_mmca_configuration;
  1385. unsigned int pad_retention_mmca_status;
  1386. unsigned int pad_retention_mmca_option;
  1387. unsigned char res113[0x14];
  1388. unsigned int pad_retention_mmcb_configuration;
  1389. unsigned int pad_retention_mmcb_status;
  1390. unsigned int pad_retention_mmcb_option;
  1391. unsigned char res93[0x14];
  1392. unsigned int pad_retention_mmcc_configuration;
  1393. unsigned int pad_retention_mmcc_status;
  1394. unsigned int pad_retention_mmcc_option;
  1395. unsigned char res94[0x14];
  1396. unsigned int pad_retention_hsi_configuration;
  1397. unsigned int pad_retention_hsi_status;
  1398. unsigned int pad_retention_hsi_option;
  1399. unsigned char res114[0x14];
  1400. unsigned int pad_retention_ebia_configuration;
  1401. unsigned int pad_retention_ebia_status;
  1402. unsigned int pad_retention_ebia_option;
  1403. unsigned char res115[0x14];
  1404. unsigned int pad_retention_ebib_configuration;
  1405. unsigned int pad_retention_ebib_status;
  1406. unsigned int pad_retention_ebib_option;
  1407. unsigned char res116[0x14];
  1408. unsigned int pad_retention_spi_configuration;
  1409. unsigned int pad_retention_spi_status;
  1410. unsigned int pad_retention_spi_option;
  1411. unsigned char res117[0x14];
  1412. unsigned int pad_retention_dram_coreblk_configuration;
  1413. unsigned int pad_retention_dram_coreblk_status;
  1414. unsigned int pad_retention_dram_coreblk_option;
  1415. unsigned char res118[0x14];
  1416. unsigned int pad_isolation_configuration;
  1417. unsigned int pad_isolation_status;
  1418. unsigned int pad_isolation_option;
  1419. unsigned char res119[0x74];
  1420. unsigned int pad_isolation_coreblk_configuration;
  1421. unsigned int pad_isolation_coreblk_status;
  1422. unsigned int pad_isolation_coreblk_option;
  1423. unsigned char res120[0x74];
  1424. unsigned int pad_alv_sel_configuration;
  1425. unsigned int pad_alv_sel_status;
  1426. unsigned int pad_alv_sel_option0;
  1427. unsigned int ps_hold_control;
  1428. unsigned char res130[0xf0];
  1429. unsigned int xusbxti_configuration;
  1430. unsigned int xusbxti_status;
  1431. unsigned int xusbxti_option;
  1432. unsigned char res910[0x10];
  1433. unsigned int xusbxti_duration3;
  1434. unsigned int xxti_configuration;
  1435. unsigned int xxti_status;
  1436. unsigned int xxti_option;
  1437. unsigned char res131[0x10];
  1438. unsigned int xxti_duration3;
  1439. unsigned char res132[0x1c0];
  1440. unsigned int ext_regulator_configuration;
  1441. unsigned int ext_regulator_status;
  1442. unsigned int ext_regulator_option;
  1443. unsigned char res133[0x10];
  1444. unsigned int ext_regulator_duration3;
  1445. unsigned char res134[0x1e0];
  1446. unsigned int gpio_mode_configuration;
  1447. unsigned int gpio_mode_status;
  1448. unsigned int gpio_mode_option;
  1449. unsigned char res135[0xf4];
  1450. unsigned int gpio_mode_coreblk_configuration;
  1451. unsigned int gpio_mode_coreblk_status;
  1452. unsigned int gpio_mode_coreblk_option;
  1453. unsigned char res136[0xd4];
  1454. unsigned int gpio_mode_mau_configuration;
  1455. unsigned int gpio_mode_mau_status;
  1456. unsigned int gpio_mode_mau_option;
  1457. unsigned char res137[0x14];
  1458. unsigned int top_asb_reset_configuration;
  1459. unsigned int top_asb_reset_status;
  1460. unsigned int top_asb_reset_option;
  1461. unsigned char res138[0x14];
  1462. unsigned int top_asb_isolation_configuration;
  1463. unsigned int top_asb_isolation_status;
  1464. unsigned int top_asb_isolation_option;
  1465. unsigned char res139[0x5d4];
  1466. unsigned int gscl_configuration;
  1467. unsigned int gscl_status;
  1468. unsigned int gscl_option;
  1469. unsigned char res140[0x14];
  1470. unsigned int isp_configuration;
  1471. unsigned int isp_status;
  1472. unsigned int isp_option;
  1473. unsigned char res141[0x34];
  1474. unsigned int mfc_configuration;
  1475. unsigned int mfc_status;
  1476. unsigned int mfc_option;
  1477. unsigned char res142[0x14];
  1478. unsigned int g3d_configuration;
  1479. unsigned int g3d_status;
  1480. unsigned int g3d_option;
  1481. unsigned char res143[0x34];
  1482. unsigned int disp1_configuration;
  1483. unsigned int disp1_status;
  1484. unsigned int disp1_option;
  1485. unsigned char res144[0x14];
  1486. unsigned int mau_configuration;
  1487. unsigned int mau_status;
  1488. unsigned int mau_option;
  1489. unsigned char res800[0x14];
  1490. unsigned int g2d_configuration;
  1491. unsigned int g2d_status;
  1492. unsigned int g2d_option;
  1493. unsigned char res801[0x14];
  1494. unsigned int msc_configuration;
  1495. unsigned int msc_status;
  1496. unsigned int msc_option;
  1497. unsigned char res802[0x14];
  1498. unsigned int fsys_configuration;
  1499. unsigned int fsys_status;
  1500. unsigned int fsys_option;
  1501. unsigned char res803[0x14];
  1502. unsigned int fsys2_configuration;
  1503. unsigned int fsys2_status;
  1504. unsigned int fsys2_option;
  1505. unsigned char res804[0x14];
  1506. unsigned int psgen_configuration;
  1507. unsigned int psgen_status;
  1508. unsigned int psgen_option;
  1509. unsigned char res805[0x14];
  1510. unsigned int peric_configuration;
  1511. unsigned int peric_status;
  1512. unsigned int peric_option;
  1513. unsigned char res806[0x14];
  1514. unsigned int wcore_configuration;
  1515. unsigned int wcore_status;
  1516. unsigned int wcore_option;
  1517. unsigned char res145[0x234];
  1518. unsigned int cmu_clkstop_gscl_configuration;
  1519. unsigned int cmu_clkstop_gscl_status;
  1520. unsigned int cmu_clkstop_gscl_option;
  1521. unsigned char res146[0x14];
  1522. unsigned int cmu_clkstop_isp_configuration;
  1523. unsigned int cmu_clkstop_isp_status;
  1524. unsigned int cmu_clkstop_isp_option;
  1525. unsigned char res147[0x34];
  1526. unsigned int cmu_clkstop_mfc_configuration;
  1527. unsigned int cmu_clkstop_mfc_status;
  1528. unsigned int cmu_clkstop_mfc_option;
  1529. unsigned char res148[0x14];
  1530. unsigned int cmu_clkstop_g3d_configuration;
  1531. unsigned int cmu_clkstop_g3d_status;
  1532. unsigned int cmu_clkstop_g3d_option;
  1533. unsigned char res149[0x34];
  1534. unsigned int cmu_clkstop_disp1_configuration;
  1535. unsigned int cmu_clkstop_disp1_status;
  1536. unsigned int cmu_clkstop_disp1_option;
  1537. unsigned char res150[0x14];
  1538. unsigned int cmu_clkstop_mau_configuration;
  1539. unsigned int cmu_clkstop_mau_status;
  1540. unsigned int cmu_clkstop_mau_option;
  1541. unsigned char res807[0x14];
  1542. unsigned int cmu_clkstop_g2d_configuration;
  1543. unsigned int cmu_clkstop_g2d_status;
  1544. unsigned int cmu_clkstop_g2d_option;
  1545. unsigned char res808[0x14];
  1546. unsigned int cmu_clkstop_msc_configuration;
  1547. unsigned int cmu_clkstop_msc_status;
  1548. unsigned int cmu_clkstop_msc_option;
  1549. unsigned char res809[0x14];
  1550. unsigned int cmu_clkstop_fsys_configuration;
  1551. unsigned int cmu_clkstop_fsys_status;
  1552. unsigned int cmu_clkstop_fsys_option;
  1553. unsigned char res810[0x14];
  1554. unsigned int cmu_clkstop_fsys2_configuration;
  1555. unsigned int cmu_clkstop_fsys2_status;
  1556. unsigned int cmu_clkstop_fsys2_option;
  1557. unsigned char res811[0x14];
  1558. unsigned int cmu_clkstop_psgen_configuration;
  1559. unsigned int cmu_clkstop_psgen_status;
  1560. unsigned int cmu_clkstop_psgen_option;
  1561. unsigned char res812[0x14];
  1562. unsigned int cmu_clkstop_peric_configuration;
  1563. unsigned int cmu_clkstop_peric_status;
  1564. unsigned int cmu_clkstop_peric_option;
  1565. unsigned char res813[0x14];
  1566. unsigned int cmu_clkstop_wcore_configuration;
  1567. unsigned int cmu_clkstop_wcore_status;
  1568. unsigned int cmu_clkstop_wcore_option;
  1569. unsigned char res151[0x14];
  1570. unsigned int cmu_sysclk_toppwr_configuration;
  1571. unsigned int cmu_sysclk_toppwr_status;
  1572. unsigned int cmu_sysclk_toppwr_option;
  1573. unsigned char res920[0x18];
  1574. unsigned int cmu_sysclk_gscl_status;
  1575. unsigned int cmu_sysclk_gscl_option;
  1576. unsigned char res152[0x18];
  1577. unsigned int cmu_sysclk_isp_status;
  1578. unsigned int cmu_sysclk_isp_option;
  1579. unsigned char res153[0x38];
  1580. unsigned int cmu_sysclk_mfc_status;
  1581. unsigned int cmu_sysclk_mfc_option;
  1582. unsigned char res154[0x18];
  1583. unsigned int cmu_sysclk_g3d_status;
  1584. unsigned int cmu_sysclk_g3d_option;
  1585. unsigned char res155[0x38];
  1586. unsigned int cmu_sysclk_disp1_status;
  1587. unsigned int cmu_sysclk_disp1_option;
  1588. unsigned char res156[0x18];
  1589. unsigned int cmu_sysclk_mau_status;
  1590. unsigned int cmu_sysclk_mau_option;
  1591. unsigned char res814[0x18];
  1592. unsigned int cmu_sysclk_g2d_status;
  1593. unsigned int cmu_sysclk_g2d_option;
  1594. unsigned char res815[0x18];
  1595. unsigned int cmu_sysclk_msc_status;
  1596. unsigned int cmu_sysclk_msc_option;
  1597. unsigned char res922[0x18];
  1598. unsigned int cmu_sysclk_fsys_status;
  1599. unsigned int cmu_sysclk_fsys_option;
  1600. unsigned char res816[0x18];
  1601. unsigned int cmu_sysclk_fsys2_status;
  1602. unsigned int cmu_sysclk_fsys2_option;
  1603. unsigned char res817[0x18];
  1604. unsigned int cmu_sysclk_psgen_status;
  1605. unsigned int cmu_sysclk_psgen_option;
  1606. unsigned char res950[0x18];
  1607. unsigned int cmu_sysclk_peric_status;
  1608. unsigned int cmu_sysclk_peric_option;
  1609. unsigned char res818[0x18];
  1610. unsigned int cmu_sysclk_wcore_status;
  1611. unsigned int cmu_sysclk_wcore_option;
  1612. unsigned char res819[0x18];
  1613. unsigned int cmu_sysclk_coreblk_toppwr_status;
  1614. unsigned int cmu_sysclk_coreblk_toppwr_option;
  1615. unsigned char res157[0x414];
  1616. unsigned int cmu_reset_gscl_configuration;
  1617. unsigned int cmu_reset_gscl_status;
  1618. unsigned int cmu_reset_gscl_option;
  1619. unsigned char res158[0x14];
  1620. unsigned int cmu_reset_isp_configuration;
  1621. unsigned int cmu_reset_isp_status;
  1622. unsigned int cmu_reset_isp_option;
  1623. unsigned char res159[0x34];
  1624. unsigned int cmu_reset_mfc_configuration;
  1625. unsigned int cmu_reset_mfc_status;
  1626. unsigned int cmu_reset_mfc_option;
  1627. unsigned char res160[0x14];
  1628. unsigned int cmu_reset_g3d_configuration;
  1629. unsigned int cmu_reset_g3d_status;
  1630. unsigned int cmu_reset_g3d_option;
  1631. unsigned char res161[0x34];
  1632. unsigned int cmu_reset_disp1_configuration;
  1633. unsigned int cmu_reset_disp1_status;
  1634. unsigned int cmu_reset_disp1_option;
  1635. unsigned char res162[0x14];
  1636. unsigned int cmu_reset_mau_configuration;
  1637. unsigned int cmu_reset_mau_status;
  1638. unsigned int cmu_reset_mau_option;
  1639. unsigned char res163[0x14];
  1640. unsigned int version_info;
  1641. unsigned int i2s_bypass;
  1642. unsigned int kfc_swreset_mask_from_eagle;
  1643. unsigned char res164[0xf4];
  1644. unsigned int cmu_reset_g2d_configuration;
  1645. unsigned int cmu_reset_g2d_status;
  1646. unsigned int cmu_reset_g2d_option;
  1647. unsigned char res165[0x14];
  1648. unsigned int cmu_reset_msc_configuration;
  1649. unsigned int cmu_reset_msc_status;
  1650. unsigned int cmu_reset_msc_option;
  1651. unsigned char res166[0x14];
  1652. unsigned int cmu_reset_fsys_configuration;
  1653. unsigned int cmu_reset_fsys_status;
  1654. unsigned int cmu_reset_fsys_option;
  1655. unsigned char res167[0x14];
  1656. unsigned int cmu_reset_fsys2_configuration;
  1657. unsigned int cmu_reset_fsys2_status;
  1658. unsigned int cmu_reset_fsys2_option;
  1659. unsigned char res168[0x14];
  1660. unsigned int cmu_reset_psgen_configuration;
  1661. unsigned int cmu_reset_psgen_status;
  1662. unsigned int cmu_reset_psgen_option;
  1663. unsigned char res169[0x14];
  1664. unsigned int cmu_reset_peric_configuration;
  1665. unsigned int cmu_reset_peric_status;
  1666. unsigned int cmu_reset_peric_option;
  1667. unsigned char res170[0x14];
  1668. unsigned int cmu_reset_wcore_configuration;
  1669. unsigned int cmu_reset_wcore_status;
  1670. unsigned int cmu_reset_wcore_option;
  1671. };
  1672. #endif /* __ASSEMBLY__ */
  1673. #define OM_PIN_BITS 0x1f
  1674. #define OM_PIN_SHIFT 0x1
  1675. #define OM_PIN_MASK (OM_PIN_BITS << OM_PIN_SHIFT)
  1676. enum {
  1677. /*
  1678. * Assign the OM pin values for respective boot modes.
  1679. * Exynos4 does not support spi boot and the mmc boot OM
  1680. * pin values are the same across Exynos4 and Exynos5.
  1681. */
  1682. BOOT_MODE_SD = 4, /* SD_CH2 | USB */
  1683. BOOT_MODE_EMMC = 8, /* EMMC4.4 | USB */
  1684. BOOT_MODE_EMMC_SD = 40, /* EMMC4.4 | SD_CH2 */
  1685. BOOT_MODE_SERIAL = 20,
  1686. /* Boot based on Operating Mode pin settings */
  1687. BOOT_MODE_OM = 32,
  1688. BOOT_MODE_USB, /* Boot using USB download */
  1689. };
  1690. unsigned int get_boot_mode(void);
  1691. void set_mipi_phy_ctrl(unsigned int dev_index, unsigned int enable);
  1692. #define EXYNOS_MIPI_PHY_ENABLE (1 << 0)
  1693. #define EXYNOS_MIPI_PHY_SRESETN (1 << 1)
  1694. #define EXYNOS_MIPI_PHY_MRESETN (1 << 2)
  1695. void set_usbhost_phy_ctrl(unsigned int enable);
  1696. /* Enables hardware tripping to power off the system when TMU fails */
  1697. void set_hw_thermal_trip(void);
  1698. #define POWER_USB_HOST_PHY_CTRL_EN (1 << 0)
  1699. #define POWER_USB_HOST_PHY_CTRL_DISABLE (0 << 0)
  1700. void set_usbdrd_phy_ctrl(unsigned int enable);
  1701. #define POWER_USB_DRD_PHY_CTRL_EN (1 << 0)
  1702. #define POWER_USB_DRD_PHY_CTRL_DISABLE (0 << 0)
  1703. void exynos_dp_phy_ctrl(unsigned int enable);
  1704. #define EXYNOS_DP_PHY_ENABLE (1 << 0)
  1705. #define EXYNOS_PS_HOLD_CONTROL_DATA_HIGH (1 << 8)
  1706. #define POWER_ENABLE_HW_TRIP (1UL << 31)
  1707. /*
  1708. * Set ps_hold data driving value high
  1709. * This enables the machine to stay powered on
  1710. * after the initial power-on condition goes away
  1711. * (e.g. power button).
  1712. */
  1713. void set_ps_hold_ctrl(void);
  1714. /* PMU_DEBUG bits [12:8] = 0x1000 selects XXTI clock source */
  1715. #define PMU_DEBUG_XXTI 0x1000
  1716. /* Mask bit[12:8] for xxti clock selection */
  1717. #define PMU_DEBUG_CLKOUT_SEL_MASK 0x1f00
  1718. /*
  1719. * Pmu debug is used for xclkout, enable xclkout with
  1720. * source as XXTI
  1721. */
  1722. void set_xclkout(void);
  1723. /*
  1724. * Read inform1 to get the reset status.
  1725. * @return: the value can be either S5P_CHECK_SLEEP or
  1726. * S5P_CHECK_DIDLE or S5P_CHECK_LPA as stored in inform1
  1727. * if none of these then its normal booting.
  1728. */
  1729. uint32_t get_reset_status(void);
  1730. /* Read the resume function and call it */
  1731. void power_exit_wakeup(void);
  1732. #endif