qcom,gpucc-sdm845.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
  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 version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _DT_BINDINGS_CLK_MSM_GPU_CC_SDM845_H
  14. #define _DT_BINDINGS_CLK_MSM_GPU_CC_SDM845_H
  15. /* GPUCC clock registers */
  16. #define GPU_CC_ACD_AHB_CLK 0
  17. #define GPU_CC_ACD_CXO_CLK 1
  18. #define GPU_CC_CRC_AHB_CLK 2
  19. #define GPU_CC_CX_APB_CLK 3
  20. #define GPU_CC_CX_GMU_CLK 4
  21. #define GPU_CC_CX_QDSS_AT_CLK 5
  22. #define GPU_CC_CX_QDSS_TRIG_CLK 6
  23. #define GPU_CC_CX_QDSS_TSCTR_CLK 7
  24. #define GPU_CC_CX_SNOC_DVM_CLK 8
  25. #define GPU_CC_CXO_AON_CLK 9
  26. #define GPU_CC_CXO_CLK 10
  27. #define GPU_CC_GX_GMU_CLK 11
  28. #define GPU_CC_GX_QDSS_TSCTR_CLK 12
  29. #define GPU_CC_GX_VSENSE_CLK 13
  30. #define GPU_CC_PLL0_OUT_MAIN 14
  31. #define GPU_CC_PLL0_OUT_ODD 15
  32. #define GPU_CC_PLL0_OUT_TEST 16
  33. #define GPU_CC_PLL1 17
  34. #define GPU_CC_PLL1_OUT_EVEN 18
  35. #define GPU_CC_PLL1_OUT_MAIN 19
  36. #define GPU_CC_PLL1_OUT_ODD 20
  37. #define GPU_CC_PLL1_OUT_TEST 21
  38. #define GPU_CC_PLL_TEST_CLK 22
  39. #define GPU_CC_SLEEP_CLK 23
  40. #define GPU_CC_GMU_CLK_SRC 24
  41. #define GPU_CC_CX_GFX3D_CLK 25
  42. #define GPU_CC_CX_GFX3D_SLV_CLK 26
  43. #define GPU_CC_PLL0 27
  44. /* GPUCC reset clock registers */
  45. #define GPUCC_GPU_CC_ACD_BCR 0
  46. #define GPUCC_GPU_CC_CX_BCR 1
  47. #define GPUCC_GPU_CC_GFX3D_AON_BCR 2
  48. #define GPUCC_GPU_CC_GMU_BCR 3
  49. #define GPUCC_GPU_CC_GX_BCR 4
  50. #define GPUCC_GPU_CC_SPDM_BCR 5
  51. #define GPUCC_GPU_CC_XO_BCR 6
  52. /* GFX3D clock registers */
  53. #define GPU_CC_PLL0_OUT_EVEN 1
  54. #define GPU_CC_GX_GFX3D_CLK_SRC 2
  55. #define GPU_CC_GX_GFX3D_CLK 3
  56. #endif