ccu-sun6i-a31.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright 2016 Chen-Yu Tsai
  4. *
  5. * Chen-Yu Tsai <[email protected]>
  6. */
  7. #ifndef _CCU_SUN6I_A31_H_
  8. #define _CCU_SUN6I_A31_H_
  9. #include <dt-bindings/clock/sun6i-a31-ccu.h>
  10. #include <dt-bindings/reset/sun6i-a31-ccu.h>
  11. #define CLK_PLL_CPU 0
  12. #define CLK_PLL_AUDIO_BASE 1
  13. #define CLK_PLL_AUDIO 2
  14. #define CLK_PLL_AUDIO_2X 3
  15. #define CLK_PLL_AUDIO_4X 4
  16. #define CLK_PLL_AUDIO_8X 5
  17. #define CLK_PLL_VIDEO0 6
  18. /* The PLL_VIDEO0_2X clock is exported */
  19. #define CLK_PLL_VE 8
  20. #define CLK_PLL_DDR 9
  21. /* The PLL_PERIPH clock is exported */
  22. #define CLK_PLL_PERIPH_2X 11
  23. #define CLK_PLL_VIDEO1 12
  24. /* The PLL_VIDEO1_2X clock is exported */
  25. #define CLK_PLL_GPU 14
  26. /* The PLL_VIDEO1_2X clock is exported */
  27. #define CLK_PLL9 16
  28. #define CLK_PLL10 17
  29. /* The CPUX clock is exported */
  30. #define CLK_AXI 19
  31. #define CLK_AHB1 20
  32. #define CLK_APB1 21
  33. #define CLK_APB2 22
  34. /* All the bus gates are exported */
  35. /* The first bunch of module clocks are exported */
  36. /* EMAC clock is not implemented */
  37. #define CLK_MDFS 107
  38. #define CLK_SDRAM0 108
  39. #define CLK_SDRAM1 109
  40. /* All the DRAM gates are exported */
  41. /* Some more module clocks are exported */
  42. #define CLK_MBUS0 141
  43. #define CLK_MBUS1 142
  44. /* Some more module clocks and external clock outputs are exported */
  45. #define CLK_NUMBER (CLK_OUT_C + 1)
  46. #endif /* _CCU_SUN6I_A31_H_ */