sc64-regs.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * UniPhier SC (System Control) block registers for ARMv8 SoCs
  3. *
  4. * Copyright (C) 2016 Socionext Inc.
  5. * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef SC64_REGS_H
  10. #define SC64_REGS_H
  11. #define SC_BASE_ADDR 0x61840000
  12. /* PLL type: SSC */
  13. #define SC_CPLLCTRL (SC_BASE_ADDR | 0x1400) /* LD20: CPU/ARM */
  14. #define SC_SPLLCTRL (SC_BASE_ADDR | 0x1410) /* LD20: misc */
  15. #define SC_SPLL2CTRL (SC_BASE_ADDR | 0x1420) /* LD20: IPP */
  16. #define SC_MPLLCTRL (SC_BASE_ADDR | 0x1430) /* LD20: Video codec */
  17. #define SC_VPPLLCTRL (SC_BASE_ADDR | 0x1440) /* LD20: VPE etc. */
  18. #define SC_GPPLLCTRL (SC_BASE_ADDR | 0x1450) /* LD20: GPU/Mali */
  19. #define SC_DPLL0CTRL (SC_BASE_ADDR | 0x1460) /* LD20: DDR memory 0 */
  20. #define SC_DPLL1CTRL (SC_BASE_ADDR | 0x1470) /* LD20: DDR memory 1 */
  21. #define SC_DPLL2CTRL (SC_BASE_ADDR | 0x1480) /* LD20: DDR memory 2 */
  22. /* PLL type: VPLL27 */
  23. #define SC_VPLL27FCTRL (SC_BASE_ADDR | 0x1500)
  24. #define SC_VPLL27ACTRL (SC_BASE_ADDR | 0x1520)
  25. /* PLL type: DSPLL */
  26. #define SC_VPLL8KCTRL (SC_BASE_ADDR | 0x1540)
  27. #define SC_A2PLLCTRL (SC_BASE_ADDR | 0x15C0)
  28. #define SC_RSTCTRL (SC_BASE_ADDR | 0x2000)
  29. #define SC_RSTCTRL3 (SC_BASE_ADDR | 0x2008)
  30. #define SC_RSTCTRL4 (SC_BASE_ADDR | 0x200c)
  31. #define SC_RSTCTRL4_ETHER (1 << 6)
  32. #define SC_RSTCTRL4_NAND (1 << 0)
  33. #define SC_RSTCTRL5 (SC_BASE_ADDR | 0x2010)
  34. #define SC_RSTCTRL6 (SC_BASE_ADDR | 0x2014)
  35. #define SC_RSTCTRL7 (SC_BASE_ADDR | 0x2018)
  36. #define SC_RSTCTRL7_UMCSB (1 << 16)
  37. #define SC_RSTCTRL7_UMCA2 (1 << 10)
  38. #define SC_RSTCTRL7_UMCA1 (1 << 9)
  39. #define SC_RSTCTRL7_UMCA0 (1 << 8)
  40. #define SC_RSTCTRL7_UMC32 (1 << 2)
  41. #define SC_RSTCTRL7_UMC31 (1 << 1)
  42. #define SC_RSTCTRL7_UMC30 (1 << 0)
  43. #define SC_CLKCTRL (SC_BASE_ADDR | 0x2100)
  44. #define SC_CLKCTRL3 (SC_BASE_ADDR | 0x2108)
  45. #define SC_CLKCTRL4 (SC_BASE_ADDR | 0x210c)
  46. #define SC_CLKCTRL4_PERI (1 << 7)
  47. #define SC_CLKCTRL4_ETHER (1 << 6)
  48. #define SC_CLKCTRL4_NAND (1 << 0)
  49. #define SC_CLKCTRL5 (SC_BASE_ADDR | 0x2110)
  50. #define SC_CLKCTRL6 (SC_BASE_ADDR | 0x2114)
  51. #define SC_CLKCTRL7 (SC_BASE_ADDR | 0x2118)
  52. #define SC_CLKCTRL7_UMCSB (1 << 16)
  53. #define SC_CLKCTRL7_UMC32 (1 << 2)
  54. #define SC_CLKCTRL7_UMC31 (1 << 1)
  55. #define SC_CLKCTRL7_UMC30 (1 << 0)
  56. #endif /* SC64_REGS_H */