ccu-sun4i-a10.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright 2017 Priit Laes
  4. *
  5. * Priit Laes <[email protected]>
  6. */
  7. #ifndef _CCU_SUN4I_A10_H_
  8. #define _CCU_SUN4I_A10_H_
  9. #include <dt-bindings/clock/sun4i-a10-ccu.h>
  10. #include <dt-bindings/clock/sun7i-a20-ccu.h>
  11. #include <dt-bindings/reset/sun4i-a10-ccu.h>
  12. /* The HOSC is exported */
  13. #define CLK_PLL_CORE 2
  14. #define CLK_PLL_AUDIO_BASE 3
  15. #define CLK_PLL_AUDIO 4
  16. #define CLK_PLL_AUDIO_2X 5
  17. #define CLK_PLL_AUDIO_4X 6
  18. #define CLK_PLL_AUDIO_8X 7
  19. #define CLK_PLL_VIDEO0 8
  20. /* The PLL_VIDEO0_2X clock is exported */
  21. #define CLK_PLL_VE 10
  22. #define CLK_PLL_DDR_BASE 11
  23. #define CLK_PLL_DDR 12
  24. #define CLK_PLL_DDR_OTHER 13
  25. #define CLK_PLL_PERIPH_BASE 14
  26. #define CLK_PLL_PERIPH 15
  27. #define CLK_PLL_PERIPH_SATA 16
  28. #define CLK_PLL_VIDEO1 17
  29. /* The PLL_VIDEO1_2X clock is exported */
  30. #define CLK_PLL_GPU 19
  31. /* The CPU clock is exported */
  32. #define CLK_AXI 21
  33. #define CLK_AXI_DRAM 22
  34. #define CLK_AHB 23
  35. #define CLK_APB0 24
  36. #define CLK_APB1 25
  37. /* AHB gates are exported (23..68) */
  38. /* APB0 gates are exported (69..78) */
  39. /* APB1 gates are exported (79..95) */
  40. /* IP module clocks are exported (96..128) */
  41. /* DRAM gates are exported (129..142)*/
  42. /* Media (display engine clocks & etc) are exported (143..169) */
  43. #define CLK_NUMBER_SUN4I (CLK_MBUS + 1)
  44. #define CLK_NUMBER_SUN7I (CLK_OUT_B + 1)
  45. #endif /* _CCU_SUN4I_A10_H_ */