ccu-sun4i-a10.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2017 Priit Laes
  3. *
  4. * Priit Laes <plaes@plaes.org>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef _CCU_SUN4I_A10_H_
  17. #define _CCU_SUN4I_A10_H_
  18. #include <dt-bindings/clock/sun4i-a10-ccu.h>
  19. #include <dt-bindings/clock/sun7i-a20-ccu.h>
  20. #include <dt-bindings/reset/sun4i-a10-ccu.h>
  21. /* The HOSC is exported */
  22. #define CLK_PLL_CORE 2
  23. #define CLK_PLL_AUDIO_BASE 3
  24. #define CLK_PLL_AUDIO 4
  25. #define CLK_PLL_AUDIO_2X 5
  26. #define CLK_PLL_AUDIO_4X 6
  27. #define CLK_PLL_AUDIO_8X 7
  28. #define CLK_PLL_VIDEO0 8
  29. /* The PLL_VIDEO0_2X clock is exported */
  30. #define CLK_PLL_VE 10
  31. #define CLK_PLL_DDR_BASE 11
  32. #define CLK_PLL_DDR 12
  33. #define CLK_PLL_DDR_OTHER 13
  34. #define CLK_PLL_PERIPH_BASE 14
  35. #define CLK_PLL_PERIPH 15
  36. #define CLK_PLL_PERIPH_SATA 16
  37. #define CLK_PLL_VIDEO1 17
  38. /* The PLL_VIDEO1_2X clock is exported */
  39. #define CLK_PLL_GPU 19
  40. /* The CPU clock is exported */
  41. #define CLK_AXI 21
  42. #define CLK_AXI_DRAM 22
  43. #define CLK_AHB 23
  44. #define CLK_APB0 24
  45. #define CLK_APB1 25
  46. /* AHB gates are exported (23..68) */
  47. /* APB0 gates are exported (69..78) */
  48. /* APB1 gates are exported (79..95) */
  49. /* IP module clocks are exported (96..128) */
  50. /* DRAM gates are exported (129..142)*/
  51. /* Media (display engine clocks & etc) are exported (143..169) */
  52. #define CLK_NUMBER_SUN4I (CLK_MBUS + 1)
  53. #define CLK_NUMBER_SUN7I (CLK_OUT_B + 1)
  54. #endif /* _CCU_SUN4I_A10_H_ */