PageRenderTime 72ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/include/andestech/andes_pcu.h

https://bitbucket.org/kasimling/u-boot
C Header | 367 lines | 235 code | 31 blank | 101 comment | 0 complexity | 94866cba09cdca64642c964c396a2f78 MD5 | raw file
  1. /*
  2. * (C) Copyright 2011 Andes Technology Corp
  3. * Macpaul Lin <macpaul@andestech.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19. /*
  20. * Andes Power Control Unit
  21. */
  22. #ifndef __ANDES_PCU_H
  23. #define __ANDES_PCU_H
  24. #ifndef __ASSEMBLY__
  25. struct pcs {
  26. unsigned int cr; /* PCSx Configuration (clock scaling) */
  27. unsigned int parm; /* PCSx Parameter*/
  28. unsigned int stat1; /* PCSx Status 1 */
  29. unsigned int stat2; /* PCSx Stusts 2 */
  30. unsigned int pdd; /* PCSx PDD */
  31. };
  32. struct andes_pcu {
  33. unsigned int rev; /* 0x00 - PCU Revision */
  34. unsigned int spinfo; /* 0x04 - Scratch Pad Info */
  35. unsigned int rsvd1[2]; /* 0x08-0x0C: Reserved */
  36. unsigned int soc_id; /* 0x10 - SoC ID */
  37. unsigned int soc_ahb; /* 0x14 - SoC AHB configuration */
  38. unsigned int soc_apb; /* 0x18 - SoC APB configuration */
  39. unsigned int rsvd2; /* 0x1C */
  40. unsigned int dcsrcr0; /* 0x20 - Driving Capability
  41. and Slew Rate Control 0 */
  42. unsigned int dcsrcr1; /* 0x24 - Driving Capability
  43. and Slew Rate Control 1 */
  44. unsigned int dcsrcr2; /* 0x28 - Driving Capability
  45. and Slew Rate Control 2 */
  46. unsigned int rsvd3; /* 0x2C */
  47. unsigned int mfpsr0; /* 0x30 - Multi-Func Port Setting 0 */
  48. unsigned int mfpsr1; /* 0x34 - Multi-Func Port Setting 1 */
  49. unsigned int dmaes; /* 0x38 - DMA Engine Selection */
  50. unsigned int rsvd4; /* 0x3C */
  51. unsigned int oscc; /* 0x40 - OSC Control */
  52. unsigned int pwmcd; /* 0x44 - PWM Clock divider */
  53. unsigned int socmisc; /* 0x48 - SoC Misc. */
  54. unsigned int rsvd5[13]; /* 0x4C-0x7C: Reserved */
  55. unsigned int bsmcr; /* 0x80 - BSM Controrl */
  56. unsigned int bsmst; /* 0x84 - BSM Status */
  57. unsigned int wes; /* 0x88 - Wakeup Event Sensitivity*/
  58. unsigned int west; /* 0x8C - Wakeup Event Status */
  59. unsigned int rsttiming; /* 0x90 - Reset Timing */
  60. unsigned int intr_st; /* 0x94 - PCU Interrupt Status */
  61. unsigned int rsvd6[2]; /* 0x98-0x9C: Reserved */
  62. struct pcs pcs1; /* 0xA0-0xB0: PCS1 (clock scaling) */
  63. unsigned int pcsrsvd1[3]; /* 0xB4-0xBC: Reserved */
  64. struct pcs pcs2; /* 0xC0-0xD0: PCS2 (AHB clock gating) */
  65. unsigned int pcsrsvd2[3]; /* 0xD4-0xDC: Reserved */
  66. struct pcs pcs3; /* 0xE0-0xF0: PCS3 (APB clock gating) */
  67. unsigned int pcsrsvd3[3]; /* 0xF4-0xFC: Reserved */
  68. struct pcs pcs4; /* 0x100-0x110: PCS4 main PLL scaling */
  69. unsigned int pcsrsvd4[3]; /* 0x114-0x11C: Reserved */
  70. struct pcs pcs5; /* 0x120-0x130: PCS5 PCI PLL scaling */
  71. unsigned int pcsrsvd5[3]; /* 0x134-0x13C: Reserved */
  72. struct pcs pcs6; /* 0x140-0x150: PCS6 AC97 PLL scaling */
  73. unsigned int pcsrsvd6[3]; /* 0x154-0x15C: Reserved */
  74. struct pcs pcs7; /* 0x160-0x170: PCS7 GMAC PLL scaling */
  75. unsigned int pcsrsvd7[3]; /* 0x174-0x17C: Reserved */
  76. struct pcs pcs8; /* 0x180-0x190: PCS8 voltage scaling */
  77. unsigned int pcsrsvd8[3]; /* 0x194-0x19C: Reserved */
  78. struct pcs pcs9; /* 0x1A0-0x1B0: PCS9 power control */
  79. unsigned int pcsrsvd9[93]; /* 0x1B4-0x3FC: Reserved */
  80. unsigned int pmspdm[40]; /* 0x400-0x4fC: Power Manager
  81. Scratch Pad Memory 0 */
  82. };
  83. #endif /* __ASSEMBLY__ */
  84. /*
  85. * PCU Revision Register (ro)
  86. */
  87. #define ANDES_PCU_REV_NUMBER_PCS(x) (((x) >> 0) & 0xff)
  88. #define ANDES_PCU_REV_VER(x) (((x) >> 16) & 0xffff)
  89. /*
  90. * Scratch Pad Info Register (ro)
  91. */
  92. #define ANDES_PCU_SPINFO_SIZE(x) (((x) >> 0) & 0xff)
  93. #define ANDES_PCU_SPINFO_OFFSET(x) (((x) >> 8) & 0xf)
  94. /*
  95. * SoC ID Register (ro)
  96. */
  97. #define ANDES_PCU_SOC_ID_VER_MINOR(x) (((x) >> 0) & 0xf)
  98. #define ANDES_PCU_SOC_ID_VER_MAJOR(x) (((x) >> 4) & 0xfff)
  99. #define ANDES_PCU_SOC_ID_DEVICEID(x) (((x) >> 16) & 0xffff)
  100. /*
  101. * SoC AHB Configuration Register (ro)
  102. */
  103. #define ANDES_PCU_SOC_AHB_AHBC(x) ((x) << 0)
  104. #define ANDES_PCU_SOC_AHB_APBREG(x) ((x) << 1)
  105. #define ANDES_PCU_SOC_AHB_APB(x) ((x) << 2)
  106. #define ANDES_PCU_SOC_AHB_DLM1(x) ((x) << 3)
  107. #define ANDES_PCU_SOC_AHB_SPIROM(x) ((x) << 4)
  108. #define ANDES_PCU_SOC_AHB_DDR2C(x) ((x) << 5)
  109. #define ANDES_PCU_SOC_AHB_DDR2MEM(x) ((x) << 6)
  110. #define ANDES_PCU_SOC_AHB_DMAC(x) ((x) << 7)
  111. #define ANDES_PCU_SOC_AHB_DLM2(x) ((x) << 8)
  112. #define ANDES_PCU_SOC_AHB_GPU(x) ((x) << 9)
  113. #define ANDES_PCU_SOC_AHB_GMAC(x) ((x) << 12)
  114. #define ANDES_PCU_SOC_AHB_IDE(x) ((x) << 13)
  115. #define ANDES_PCU_SOC_AHB_USBOTG(x) ((x) << 14)
  116. #define ANDES_PCU_SOC_AHB_INTC(x) ((x) << 15)
  117. #define ANDES_PCU_SOC_AHB_LPCIO(x) ((x) << 16)
  118. #define ANDES_PCU_SOC_AHB_LPCREG(x) ((x) << 17)
  119. #define ANDES_PCU_SOC_AHB_PCIIO(x) ((x) << 18)
  120. #define ANDES_PCU_SOC_AHB_PCIMEM(x) ((x) << 19)
  121. #define ANDES_PCU_SOC_AHB_L2CC(x) ((x) << 20)
  122. #define ANDES_PCU_SOC_AHB_AHB2AHBREG(x) ((x) << 27)
  123. #define ANDES_PCU_SOC_AHB_AHB2AHBMEM0(x) ((x) << 28)
  124. #define ANDES_PCU_SOC_AHB_AHB2AHBMEM1(x) ((x) << 29)
  125. #define ANDES_PCU_SOC_AHB_AHB2AHBMEM2(x) ((x) << 30)
  126. #define ANDES_PCU_SOC_AHB_AHB2AHBMEM3(x) ((x) << 31)
  127. /*
  128. * SoC APB Configuration Register (ro)
  129. */
  130. #define ANDES_PCU_SOC_APB_CFC(x) ((x) << 1)
  131. #define ANDES_PCU_SOC_APB_SSP(x) ((x) << 2)
  132. #define ANDES_PCU_SOC_APB_UART1(x) ((x) << 3)
  133. #define ANDES_PCU_SOC_APB_SDC(x) ((x) << 5)
  134. #define ANDES_PCU_SOC_APB_AC97I2S(x) ((x) << 6)
  135. #define ANDES_PCU_SOC_APB_UART2(x) ((x) << 8)
  136. #define ANDES_PCU_SOC_APB_PCU(x) ((x) << 16)
  137. #define ANDES_PCU_SOC_APB_TMR(x) ((x) << 17)
  138. #define ANDES_PCU_SOC_APB_WDT(x) ((x) << 18)
  139. #define ANDES_PCU_SOC_APB_RTC(x) ((x) << 19)
  140. #define ANDES_PCU_SOC_APB_GPIO(x) ((x) << 20)
  141. #define ANDES_PCU_SOC_APB_I2C(x) ((x) << 22)
  142. #define ANDES_PCU_SOC_APB_PWM(x) ((x) << 23)
  143. /*
  144. * Driving Capability and Slew Rate Control Register 0 (rw)
  145. */
  146. #define ANDES_PCU_DCSRCR0_TRIAHB(x) (((x) & 0x1f) << 0)
  147. #define ANDES_PCU_DCSRCR0_LPC(x) (((x) & 0xf) << 8)
  148. #define ANDES_PCU_DCSRCR0_ULPI(x) (((x) & 0xf) << 12)
  149. #define ANDES_PCU_DCSRCR0_GMAC(x) (((x) & 0xf) << 16)
  150. #define ANDES_PCU_DCSRCR0_GPU(x) (((x) & 0xf) << 20)
  151. /*
  152. * Driving Capability and Slew Rate Control Register 1 (rw)
  153. */
  154. #define ANDES_PCU_DCSRCR1_I2C(x) (((x) & 0xf) << 0)
  155. /*
  156. * Driving Capability and Slew Rate Control Register 2 (rw)
  157. */
  158. #define ANDES_PCU_DCSRCR2_UART1(x) (((x) & 0xf) << 0)
  159. #define ANDES_PCU_DCSRCR2_UART2(x) (((x) & 0xf) << 4)
  160. #define ANDES_PCU_DCSRCR2_AC97(x) (((x) & 0xf) << 8)
  161. #define ANDES_PCU_DCSRCR2_SPI(x) (((x) & 0xf) << 12)
  162. #define ANDES_PCU_DCSRCR2_SD(x) (((x) & 0xf) << 16)
  163. #define ANDES_PCU_DCSRCR2_CFC(x) (((x) & 0xf) << 20)
  164. #define ANDES_PCU_DCSRCR2_GPIO(x) (((x) & 0xf) << 24)
  165. #define ANDES_PCU_DCSRCR2_PCU(x) (((x) & 0xf) << 28)
  166. /*
  167. * Multi-function Port Setting Register 0 (rw)
  168. */
  169. #define ANDES_PCU_MFPSR0_PCIMODE(x) ((x) << 0)
  170. #define ANDES_PCU_MFPSR0_IDEMODE(x) ((x) << 1)
  171. #define ANDES_PCU_MFPSR0_MINI_TC01(x) ((x) << 2)
  172. #define ANDES_PCU_MFPSR0_AHB_DEBUG(x) ((x) << 3)
  173. #define ANDES_PCU_MFPSR0_AHB_TARGET(x) ((x) << 4)
  174. #define ANDES_PCU_MFPSR0_DEFAULT_IVB(x) (((x) & 0x7) << 28)
  175. #define ANDES_PCU_MFPSR0_DEFAULT_ENDIAN(x) ((x) << 31)
  176. /*
  177. * Multi-function Port Setting Register 1 (rw)
  178. */
  179. #define ANDES_PCU_MFPSR1_SUSPEND(x) ((x) << 0)
  180. #define ANDES_PCU_MFPSR1_PWM0(x) ((x) << 1)
  181. #define ANDES_PCU_MFPSR1_PWM1(x) ((x) << 2)
  182. #define ANDES_PCU_MFPSR1_AC97CLKOUT(x) ((x) << 3)
  183. #define ANDES_PCU_MFPSR1_PWREN(x) ((x) << 4)
  184. #define ANDES_PCU_MFPSR1_PME(x) ((x) << 5)
  185. #define ANDES_PCU_MFPSR1_I2C(x) ((x) << 6)
  186. #define ANDES_PCU_MFPSR1_UART1(x) ((x) << 7)
  187. #define ANDES_PCU_MFPSR1_UART2(x) ((x) << 8)
  188. #define ANDES_PCU_MFPSR1_SPI(x) ((x) << 9)
  189. #define ANDES_PCU_MFPSR1_SD(x) ((x) << 10)
  190. #define ANDES_PCU_MFPSR1_GPUPLLSRC(x) ((x) << 27)
  191. #define ANDES_PCU_MFPSR1_DVOMODE(x) ((x) << 28)
  192. #define ANDES_PCU_MFPSR1_HSMP_FAST_REQ(x) ((x) << 29)
  193. #define ANDES_PCU_MFPSR1_AHB_FAST_REQ(x) ((x) << 30)
  194. #define ANDES_PCU_MFPSR1_PMUR_EXT_INT(x) ((x) << 31)
  195. /*
  196. * DMA Engine Selection Register (rw)
  197. */
  198. #define ANDES_PCU_DMAES_AC97RX(x) ((x) << 2)
  199. #define ANDES_PCU_DMAES_AC97TX(x) ((x) << 3)
  200. #define ANDES_PCU_DMAES_UART1RX(x) ((x) << 4)
  201. #define ANDES_PCU_DMAES_UART1TX(x) ((x) << 5)
  202. #define ANDES_PCU_DMAES_UART2RX(x) ((x) << 6)
  203. #define ANDES_PCU_DMAES_UART2TX(x) ((x) << 7)
  204. #define ANDES_PCU_DMAES_SDDMA(x) ((x) << 8)
  205. #define ANDES_PCU_DMAES_CFCDMA(x) ((x) << 9)
  206. /*
  207. * OSC Control Register (rw)
  208. */
  209. #define ANDES_PCU_OSCC_OSCH_OFF(x) ((x) << 0)
  210. #define ANDES_PCU_OSCC_OSCH_STABLE(x) ((x) << 1)
  211. #define ANDES_PCU_OSCC_OSCH_TRI(x) ((x) << 2)
  212. #define ANDES_PCU_OSCC_OSCH_RANGE(x) (((x) & 0x3) << 4)
  213. #define ANDES_PCU_OSCC_OSCH2_RANGE(x) (((x) & 0x3) << 6)
  214. #define ANDES_PCU_OSCC_OSCH3_RANGE(x) (((x) & 0x3) << 8)
  215. /*
  216. * PWM Clock Divider Register (rw)
  217. */
  218. #define ANDES_PCU_PWMCD_PWMDIV(x) (((x) & 0xf) << 0)
  219. /*
  220. * SoC Misc. Register (rw)
  221. */
  222. #define ANDES_PCU_SOCMISC_RSCPUA(x) ((x) << 0)
  223. #define ANDES_PCU_SOCMISC_RSCPUB(x) ((x) << 1)
  224. #define ANDES_PCU_SOCMISC_RSPCI(x) ((x) << 2)
  225. #define ANDES_PCU_SOCMISC_USBWAKE(x) ((x) << 3)
  226. #define ANDES_PCU_SOCMISC_EXLM_WAITA(x) (((x) & 0x3) << 4)
  227. #define ANDES_PCU_SOCMISC_EXLM_WAITB(x) (((x) & 0x3) << 6)
  228. #define ANDES_PCU_SOCMISC_DDRPLL_BYPASS(x) (((x) << 8)
  229. #define ANDES_PCU_SOCMISC_300MHZSEL(x) (((x) << 9)
  230. #define ANDES_PCU_SOCMISC_DDRDLL_SRST(x) (((x) << 10)
  231. #define ANDES_PCU_SOCMISC_DDRDDQ_TEST(x) (((x) << 11)
  232. #define ANDES_PCU_SOCMISC_DDRDLL_TEST(x) (((x) << 12)
  233. #define ANDES_PCU_SOCMISC_GPUPLL_BYPASS(x) (((x) << 13)
  234. #define ANDES_PCU_SOCMISC_ENCPUA(x) (((x) << 14)
  235. #define ANDES_PCU_SOCMISC_ENCPUB(x) (((x) << 15)
  236. #define ANDES_PCU_SOCMISC_PWON_PWBTN(x) (((x) << 16)
  237. #define ANDES_PCU_SOCMISC_PWON_GPIO1(x) (((x) << 17)
  238. #define ANDES_PCU_SOCMISC_PWON_GPIO2(x) (((x) << 18)
  239. #define ANDES_PCU_SOCMISC_PWON_GPIO3(x) (((x) << 19)
  240. #define ANDES_PCU_SOCMISC_PWON_GPIO4(x) (((x) << 20)
  241. #define ANDES_PCU_SOCMISC_PWON_GPIO5(x) (((x) << 21)
  242. #define ANDES_PCU_SOCMISC_PWON_WOL(x) (((x) << 22)
  243. #define ANDES_PCU_SOCMISC_PWON_RTC(x) (((x) << 23)
  244. #define ANDES_PCU_SOCMISC_PWON_RTCALM(x) (((x) << 24)
  245. #define ANDES_PCU_SOCMISC_PWON_XDBGIN(x) (((x) << 25)
  246. #define ANDES_PCU_SOCMISC_PWON_PME(x) (((x) << 26)
  247. #define ANDES_PCU_SOCMISC_PWON_PWFAIL(x) (((x) << 27)
  248. #define ANDES_PCU_SOCMISC_CPUA_SRSTED(x) (((x) << 28)
  249. #define ANDES_PCU_SOCMISC_CPUB_SRSTED(x) (((x) << 29)
  250. #define ANDES_PCU_SOCMISC_WD_RESET(x) (((x) << 30)
  251. #define ANDES_PCU_SOCMISC_HW_RESET(x) (((x) << 31)
  252. /*
  253. * BSM Control Register (rw)
  254. */
  255. #define ANDES_PCU_BSMCR_LINK0(x) (((x) & 0xf) << 0)
  256. #define ANDES_PCU_BSMCR_LINK1(x) (((x) & 0xf) << 4)
  257. #define ANDES_PCU_BSMCR_SYNCSRC(x) (((x) & 0xf) << 24)
  258. #define ANDES_PCU_BSMCR_CMD(x) (((x) & 0x7) << 28)
  259. #define ANDES_PCU_BSMCR_IE(x) ((x) << 31)
  260. /*
  261. * BSM Status Register
  262. */
  263. #define ANDES_PCU_BSMSR_CI0(x) (((x) & 0xf) << 0)
  264. #define ANDES_PCU_BSMSR_CI1(x) (((x) & 0xf) << 4)
  265. #define ANDES_PCU_BSMSR_SYNCSRC(x) (((x) & 0xf) << 24)
  266. #define ANDES_PCU_BSMSR_BSMST(x) (((x) & 0xf) << 28)
  267. /*
  268. * Wakeup Event Sensitivity Register (rw)
  269. */
  270. #define ANDES_PCU_WESR_POLOR(x) (((x) & 0xff) << 0)
  271. /*
  272. * Wakeup Event Status Register (ro)
  273. */
  274. #define ANDES_PCU_WEST_SIG(x) (((x) & 0xff) << 0)
  275. /*
  276. * Reset Timing Register
  277. */
  278. #define ANDES_PCU_RSTTIMING_RG0(x) (((x) & 0xff) << 0)
  279. #define ANDES_PCU_RSTTIMING_RG1(x) (((x) & 0xff) << 8)
  280. #define ANDES_PCU_RSTTIMING_RG2(x) (((x) & 0xff) << 16)
  281. #define ANDES_PCU_RSTTIMING_RG3(x) (((x) & 0xff) << 24)
  282. /*
  283. * PCU Interrupt Status Register
  284. */
  285. #define ANDES_PCU_INTR_ST_BSM(x) ((x) << 0)
  286. #define ANDES_PCU_INTR_ST_PCS1(x) ((x) << 1)
  287. #define ANDES_PCU_INTR_ST_PCS2(x) ((x) << 2)
  288. #define ANDES_PCU_INTR_ST_PCS3(x) ((x) << 3)
  289. #define ANDES_PCU_INTR_ST_PCS4(x) ((x) << 4)
  290. #define ANDES_PCU_INTR_ST_PCS5(x) ((x) << 5)
  291. #define ANDES_PCU_INTR_ST_PCS6(x) ((x) << 6)
  292. #define ANDES_PCU_INTR_ST_PCS7(x) ((x) << 7)
  293. #define ANDES_PCU_INTR_ST_PCS8(x) ((x) << 8)
  294. #define ANDES_PCU_INTR_ST_PCS9(x) ((x) << 9)
  295. /*
  296. * PCSx Configuration Register
  297. */
  298. #define ANDES_PCU_PCSX_CR_WAKEUP_EN(x) (((x) & 0xff) << 0)
  299. #define ANDES_PCU_PCSX_CR_LW(x) (((x) & 0xf) << 16)
  300. #define ANDES_PCU_PCSX_CR_LS(x) (((x) & 0xf) << 20)
  301. #define ANDES_PCU_PCSX_CR_TYPE(x) (((x) >> 28) & 0x7) /* (ro) */
  302. /*
  303. * PCSx Parameter Register (rw)
  304. */
  305. #define ANDES_PCU_PCSX_PARM_NEXT(x) (((x) & 0xffffff) << 0)
  306. #define ANDES_PCU_PCSX_PARM_SYNCSRC(x) (((x) & 0xf) << 24)
  307. #define ANDES_PCU_PCSX_PARM_PCSCMD(x) (((x) & 0x7) << 28)
  308. #define ANDES_PCU_PCSX_PARM_IE(x) (((x) << 31)
  309. /*
  310. * PCSx Status Register 1
  311. */
  312. #define ANDES_PCU_PCSX_STAT1_ERRNO(x) (((x) & 0xf) << 0)
  313. #define ANDES_PCU_PCSX_STAT1_ST(x) (((x) & 0x7) << 28)
  314. /*
  315. * PCSx Status Register 2
  316. */
  317. #define ANDES_PCU_PCSX_STAT2_CRNTPARM(x) (((x) & 0xffffff) << 0)
  318. #define ANDES_PCU_PCSX_STAT2_SYNCSRC(x) (((x) & 0xf) << 24)
  319. /*
  320. * PCSx PDD Register
  321. * This is reserved for PCS(1-7)
  322. */
  323. #define ANDES_PCU_PCS8_PDD_1BYTE(x) (((x) & 0xff) << 0)
  324. #define ANDES_PCU_PCS8_PDD_2BYTE(x) (((x) & 0xff) << 8)
  325. #define ANDES_PCU_PCS8_PDD_3BYTE(x) (((x) & 0xff) << 16)
  326. #define ANDES_PCU_PCS8_PDD_4BYTE(x) (((x) & 0xff) << 24)
  327. #define ANDES_PCU_PCS9_PDD_TIME1(x) (((x) & 0x3f) << 0)
  328. #define ANDES_PCU_PCS9_PDD_TIME2(x) (((x) & 0x3f) << 6)
  329. #define ANDES_PCU_PCS9_PDD_TIME3(x) (((x) & 0x3f) << 12)
  330. #define ANDES_PCU_PCS9_PDD_TIME4(x) (((x) & 0x3f) << 18)
  331. #define ANDES_PCU_PCS9_PDD_TICKTYPE(x) ((x) << 24)
  332. #define ANDES_PCU_PCS9_PDD_GPU_SRST(x) ((x) << 27)
  333. #define ANDES_PCU_PCS9_PDD_PWOFFTIME(x) (((x) & 0x3) << 28)
  334. #define ANDES_PCU_PCS9_PDD_SUS2DRAM(x) ((x) << 30)
  335. #define ANDES_PCU_PCS9_PDD_CLRPWOFF_FLAG(x) ((x) << 31)
  336. #endif /* __ANDES_PCU_H */