s3c2443.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
  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 as
  6. * published by the Free Software Foundation.
  7. *
  8. * Device Tree binding constants clock controllers of Samsung S3C2443 and later.
  9. */
  10. #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H
  11. #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H
  12. /*
  13. * Let each exported clock get a unique index, which is used on DT-enabled
  14. * platforms to lookup the clock from a clock specifier. These indices are
  15. * therefore considered an ABI and so must not be changed. This implies
  16. * that new clocks should be added either in free spaces between clock groups
  17. * or at the end.
  18. */
  19. /* Core clocks. */
  20. #define MSYSCLK 1
  21. #define ESYSCLK 2
  22. #define ARMDIV 3
  23. #define ARMCLK 4
  24. #define HCLK 5
  25. #define PCLK 6
  26. #define MPLL 7
  27. #define EPLL 8
  28. /* Special clocks */
  29. #define SCLK_HSSPI0 16
  30. #define SCLK_FIMD 17
  31. #define SCLK_I2S0 18
  32. #define SCLK_I2S1 19
  33. #define SCLK_HSMMC1 20
  34. #define SCLK_HSMMC_EXT 21
  35. #define SCLK_CAM 22
  36. #define SCLK_UART 23
  37. #define SCLK_USBH 24
  38. /* Muxes */
  39. #define MUX_HSSPI0 32
  40. #define MUX_HSSPI1 33
  41. #define MUX_HSMMC0 34
  42. #define MUX_HSMMC1 35
  43. /* hclk-gates */
  44. #define HCLK_DMA0 48
  45. #define HCLK_DMA1 49
  46. #define HCLK_DMA2 50
  47. #define HCLK_DMA3 51
  48. #define HCLK_DMA4 52
  49. #define HCLK_DMA5 53
  50. #define HCLK_DMA6 54
  51. #define HCLK_DMA7 55
  52. #define HCLK_CAM 56
  53. #define HCLK_LCD 57
  54. #define HCLK_USBH 58
  55. #define HCLK_USBD 59
  56. #define HCLK_IROM 60
  57. #define HCLK_HSMMC0 61
  58. #define HCLK_HSMMC1 62
  59. #define HCLK_CFC 63
  60. #define HCLK_SSMC 64
  61. #define HCLK_DRAM 65
  62. #define HCLK_2D 66
  63. /* pclk-gates */
  64. #define PCLK_UART0 72
  65. #define PCLK_UART1 73
  66. #define PCLK_UART2 74
  67. #define PCLK_UART3 75
  68. #define PCLK_I2C0 76
  69. #define PCLK_SDI 77
  70. #define PCLK_SPI0 78
  71. #define PCLK_ADC 79
  72. #define PCLK_AC97 80
  73. #define PCLK_I2S0 81
  74. #define PCLK_PWM 82
  75. #define PCLK_WDT 83
  76. #define PCLK_RTC 84
  77. #define PCLK_GPIO 85
  78. #define PCLK_SPI1 86
  79. #define PCLK_CHIPID 87
  80. #define PCLK_I2C1 88
  81. #define PCLK_I2S1 89
  82. #define PCLK_PCM 90
  83. /* Total number of clocks. */
  84. #define NR_CLKS (PCLK_PCM + 1)
  85. #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H */