ccu-sun8i-r40.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright 2017 Icenowy Zheng <icenowy@aosc.io>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef _CCU_SUN8I_R40_H_
  15. #define _CCU_SUN8I_R40_H_
  16. #include <dt-bindings/clock/sun8i-r40-ccu.h>
  17. #include <dt-bindings/reset/sun8i-r40-ccu.h>
  18. #define CLK_OSC_12M 0
  19. #define CLK_PLL_CPU 1
  20. #define CLK_PLL_AUDIO_BASE 2
  21. #define CLK_PLL_AUDIO 3
  22. #define CLK_PLL_AUDIO_2X 4
  23. #define CLK_PLL_AUDIO_4X 5
  24. #define CLK_PLL_AUDIO_8X 6
  25. /* PLL_VIDEO0 is exported */
  26. #define CLK_PLL_VIDEO0_2X 8
  27. #define CLK_PLL_VE 9
  28. #define CLK_PLL_DDR0 10
  29. #define CLK_PLL_PERIPH0 11
  30. #define CLK_PLL_PERIPH0_SATA 12
  31. #define CLK_PLL_PERIPH0_2X 13
  32. #define CLK_PLL_PERIPH1 14
  33. #define CLK_PLL_PERIPH1_2X 15
  34. /* PLL_VIDEO1 is exported */
  35. #define CLK_PLL_VIDEO1_2X 17
  36. #define CLK_PLL_SATA 18
  37. #define CLK_PLL_SATA_OUT 19
  38. #define CLK_PLL_GPU 20
  39. #define CLK_PLL_MIPI 21
  40. #define CLK_PLL_DE 22
  41. #define CLK_PLL_DDR1 23
  42. /* The CPU clock is exported */
  43. #define CLK_AXI 25
  44. #define CLK_AHB1 26
  45. #define CLK_APB1 27
  46. #define CLK_APB2 28
  47. /* All the bus gates are exported */
  48. /* The first bunch of module clocks are exported */
  49. #define CLK_DRAM 132
  50. /* All the DRAM gates are exported */
  51. /* Some more module clocks are exported */
  52. #define CLK_MBUS 155
  53. /* Another bunch of module clocks are exported */
  54. #define CLK_NUMBER (CLK_OUTB + 1)
  55. #endif /* _CCU_SUN8I_R40_H_ */