s3c2443.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. /* Special clocks */
  27. #define SCLK_HSSPI0 16
  28. #define SCLK_FIMD 17
  29. #define SCLK_I2S0 18
  30. #define SCLK_I2S1 19
  31. #define SCLK_HSMMC1 20
  32. #define SCLK_HSMMC_EXT 21
  33. #define SCLK_CAM 22
  34. #define SCLK_UART 23
  35. #define SCLK_USBH 24
  36. /* Muxes */
  37. #define MUX_HSSPI0 32
  38. #define MUX_HSSPI1 33
  39. #define MUX_HSMMC0 34
  40. #define MUX_HSMMC1 35
  41. /* hclk-gates */
  42. #define HCLK_DMA0 48
  43. #define HCLK_DMA1 49
  44. #define HCLK_DMA2 50
  45. #define HCLK_DMA3 51
  46. #define HCLK_DMA4 52
  47. #define HCLK_DMA5 53
  48. #define HCLK_DMA6 54
  49. #define HCLK_DMA7 55
  50. #define HCLK_CAM 56
  51. #define HCLK_LCD 57
  52. #define HCLK_USBH 58
  53. #define HCLK_USBD 59
  54. #define HCLK_IROM 60
  55. #define HCLK_HSMMC0 61
  56. #define HCLK_HSMMC1 62
  57. #define HCLK_CFC 63
  58. #define HCLK_SSMC 64
  59. #define HCLK_DRAM 65
  60. #define HCLK_2D 66
  61. /* pclk-gates */
  62. #define PCLK_UART0 72
  63. #define PCLK_UART1 73
  64. #define PCLK_UART2 74
  65. #define PCLK_UART3 75
  66. #define PCLK_I2C0 76
  67. #define PCLK_SDI 77
  68. #define PCLK_SPI0 78
  69. #define PCLK_ADC 79
  70. #define PCLK_AC97 80
  71. #define PCLK_I2S0 81
  72. #define PCLK_PWM 82
  73. #define PCLK_WDT 83
  74. #define PCLK_RTC 84
  75. #define PCLK_GPIO 85
  76. #define PCLK_SPI1 86
  77. #define PCLK_CHIPID 87
  78. #define PCLK_I2C1 88
  79. #define PCLK_I2S1 89
  80. #define PCLK_PCM 90
  81. /* Total number of clocks. */
  82. #define NR_CLKS (PCLK_PCM + 1)
  83. #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H */