exynos4_bus.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  3. * http://www.samsung.com/
  4. *
  5. * EXYNOS4 BUS header
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __DEVFREQ_EXYNOS4_BUS_H
  12. #define __DEVFREQ_EXYNOS4_BUS_H __FILE__
  13. #include <mach/map.h>
  14. #define EXYNOS4_CLKDIV_LEFTBUS (S5P_VA_CMU + 0x04500)
  15. #define EXYNOS4_CLKDIV_STAT_LEFTBUS (S5P_VA_CMU + 0x04600)
  16. #define EXYNOS4_CLKDIV_RIGHTBUS (S5P_VA_CMU + 0x08500)
  17. #define EXYNOS4_CLKDIV_STAT_RIGHTBUS (S5P_VA_CMU + 0x08600)
  18. #define EXYNOS4_CLKDIV_TOP (S5P_VA_CMU + 0x0C510)
  19. #define EXYNOS4_CLKDIV_CAM (S5P_VA_CMU + 0x0C520)
  20. #define EXYNOS4_CLKDIV_MFC (S5P_VA_CMU + 0x0C528)
  21. #define EXYNOS4_CLKDIV_STAT_TOP (S5P_VA_CMU + 0x0C610)
  22. #define EXYNOS4_CLKDIV_STAT_MFC (S5P_VA_CMU + 0x0C628)
  23. #define EXYNOS4210_CLKGATE_IP_IMAGE (S5P_VA_CMU + 0x0C930)
  24. #define EXYNOS4212_CLKGATE_IP_IMAGE (S5P_VA_CMU + 0x04930)
  25. #define EXYNOS4_CLKDIV_DMC0 (S5P_VA_CMU + 0x10500)
  26. #define EXYNOS4_CLKDIV_DMC1 (S5P_VA_CMU + 0x10504)
  27. #define EXYNOS4_CLKDIV_STAT_DMC0 (S5P_VA_CMU + 0x10600)
  28. #define EXYNOS4_CLKDIV_STAT_DMC1 (S5P_VA_CMU + 0x10604)
  29. #define EXYNOS4_DMC_PAUSE_CTRL (S5P_VA_CMU + 0x11094)
  30. #define EXYNOS4_DMC_PAUSE_ENABLE (1 << 0)
  31. #define EXYNOS4_CLKDIV_DMC0_ACP_SHIFT (0)
  32. #define EXYNOS4_CLKDIV_DMC0_ACP_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_ACP_SHIFT)
  33. #define EXYNOS4_CLKDIV_DMC0_ACPPCLK_SHIFT (4)
  34. #define EXYNOS4_CLKDIV_DMC0_ACPPCLK_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_ACPPCLK_SHIFT)
  35. #define EXYNOS4_CLKDIV_DMC0_DPHY_SHIFT (8)
  36. #define EXYNOS4_CLKDIV_DMC0_DPHY_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_DPHY_SHIFT)
  37. #define EXYNOS4_CLKDIV_DMC0_DMC_SHIFT (12)
  38. #define EXYNOS4_CLKDIV_DMC0_DMC_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_DMC_SHIFT)
  39. #define EXYNOS4_CLKDIV_DMC0_DMCD_SHIFT (16)
  40. #define EXYNOS4_CLKDIV_DMC0_DMCD_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_DMCD_SHIFT)
  41. #define EXYNOS4_CLKDIV_DMC0_DMCP_SHIFT (20)
  42. #define EXYNOS4_CLKDIV_DMC0_DMCP_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_DMCP_SHIFT)
  43. #define EXYNOS4_CLKDIV_DMC0_COPY2_SHIFT (24)
  44. #define EXYNOS4_CLKDIV_DMC0_COPY2_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_COPY2_SHIFT)
  45. #define EXYNOS4_CLKDIV_DMC0_CORETI_SHIFT (28)
  46. #define EXYNOS4_CLKDIV_DMC0_CORETI_MASK (0x7 << EXYNOS4_CLKDIV_DMC0_CORETI_SHIFT)
  47. #define EXYNOS4_CLKDIV_DMC1_G2D_ACP_SHIFT (0)
  48. #define EXYNOS4_CLKDIV_DMC1_G2D_ACP_MASK (0xf << EXYNOS4_CLKDIV_DMC1_G2D_ACP_SHIFT)
  49. #define EXYNOS4_CLKDIV_DMC1_C2C_SHIFT (4)
  50. #define EXYNOS4_CLKDIV_DMC1_C2C_MASK (0x7 << EXYNOS4_CLKDIV_DMC1_C2C_SHIFT)
  51. #define EXYNOS4_CLKDIV_DMC1_PWI_SHIFT (8)
  52. #define EXYNOS4_CLKDIV_DMC1_PWI_MASK (0xf << EXYNOS4_CLKDIV_DMC1_PWI_SHIFT)
  53. #define EXYNOS4_CLKDIV_DMC1_C2CACLK_SHIFT (12)
  54. #define EXYNOS4_CLKDIV_DMC1_C2CACLK_MASK (0x7 << EXYNOS4_CLKDIV_DMC1_C2CACLK_SHIFT)
  55. #define EXYNOS4_CLKDIV_DMC1_DVSEM_SHIFT (16)
  56. #define EXYNOS4_CLKDIV_DMC1_DVSEM_MASK (0x7f << EXYNOS4_CLKDIV_DMC1_DVSEM_SHIFT)
  57. #define EXYNOS4_CLKDIV_DMC1_DPM_SHIFT (24)
  58. #define EXYNOS4_CLKDIV_DMC1_DPM_MASK (0x7f << EXYNOS4_CLKDIV_DMC1_DPM_SHIFT)
  59. #define EXYNOS4_CLKDIV_MFC_SHIFT (0)
  60. #define EXYNOS4_CLKDIV_MFC_MASK (0x7 << EXYNOS4_CLKDIV_MFC_SHIFT)
  61. #define EXYNOS4_CLKDIV_TOP_ACLK200_SHIFT (0)
  62. #define EXYNOS4_CLKDIV_TOP_ACLK200_MASK (0x7 << EXYNOS4_CLKDIV_TOP_ACLK200_SHIFT)
  63. #define EXYNOS4_CLKDIV_TOP_ACLK100_SHIFT (4)
  64. #define EXYNOS4_CLKDIV_TOP_ACLK100_MASK (0xF << EXYNOS4_CLKDIV_TOP_ACLK100_SHIFT)
  65. #define EXYNOS4_CLKDIV_TOP_ACLK160_SHIFT (8)
  66. #define EXYNOS4_CLKDIV_TOP_ACLK160_MASK (0x7 << EXYNOS4_CLKDIV_TOP_ACLK160_SHIFT)
  67. #define EXYNOS4_CLKDIV_TOP_ACLK133_SHIFT (12)
  68. #define EXYNOS4_CLKDIV_TOP_ACLK133_MASK (0x7 << EXYNOS4_CLKDIV_TOP_ACLK133_SHIFT)
  69. #define EXYNOS4_CLKDIV_TOP_ONENAND_SHIFT (16)
  70. #define EXYNOS4_CLKDIV_TOP_ONENAND_MASK (0x7 << EXYNOS4_CLKDIV_TOP_ONENAND_SHIFT)
  71. #define EXYNOS4_CLKDIV_TOP_ACLK266_GPS_SHIFT (20)
  72. #define EXYNOS4_CLKDIV_TOP_ACLK266_GPS_MASK (0x7 << EXYNOS4_CLKDIV_TOP_ACLK266_GPS_SHIFT)
  73. #define EXYNOS4_CLKDIV_TOP_ACLK400_MCUISP_SHIFT (24)
  74. #define EXYNOS4_CLKDIV_TOP_ACLK400_MCUISP_MASK (0x7 << EXYNOS4_CLKDIV_TOP_ACLK400_MCUISP_SHIFT)
  75. #define EXYNOS4_CLKDIV_BUS_GDLR_SHIFT (0)
  76. #define EXYNOS4_CLKDIV_BUS_GDLR_MASK (0x7 << EXYNOS4_CLKDIV_BUS_GDLR_SHIFT)
  77. #define EXYNOS4_CLKDIV_BUS_GPLR_SHIFT (4)
  78. #define EXYNOS4_CLKDIV_BUS_GPLR_MASK (0x7 << EXYNOS4_CLKDIV_BUS_GPLR_SHIFT)
  79. #define EXYNOS4_CLKDIV_CAM_FIMC0_SHIFT (0)
  80. #define EXYNOS4_CLKDIV_CAM_FIMC0_MASK (0xf << EXYNOS4_CLKDIV_CAM_FIMC0_SHIFT)
  81. #define EXYNOS4_CLKDIV_CAM_FIMC1_SHIFT (4)
  82. #define EXYNOS4_CLKDIV_CAM_FIMC1_MASK (0xf << EXYNOS4_CLKDIV_CAM_FIMC1_SHIFT)
  83. #define EXYNOS4_CLKDIV_CAM_FIMC2_SHIFT (8)
  84. #define EXYNOS4_CLKDIV_CAM_FIMC2_MASK (0xf << EXYNOS4_CLKDIV_CAM_FIMC2_SHIFT)
  85. #define EXYNOS4_CLKDIV_CAM_FIMC3_SHIFT (12)
  86. #define EXYNOS4_CLKDIV_CAM_FIMC3_MASK (0xf << EXYNOS4_CLKDIV_CAM_FIMC3_SHIFT)
  87. #define EXYNOS4_CLKDIV_CAM1 (S5P_VA_CMU + 0x0C568)
  88. #define EXYNOS4_CLKDIV_STAT_CAM1 (S5P_VA_CMU + 0x0C668)
  89. #define EXYNOS4_CLKDIV_CAM1_JPEG_SHIFT (0)
  90. #define EXYNOS4_CLKDIV_CAM1_JPEG_MASK (0xf << EXYNOS4_CLKDIV_CAM1_JPEG_SHIFT)
  91. #endif /* __DEVFREQ_EXYNOS4_BUS_H */