s3c2412.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 S3C2412.
  9. */
  10. #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H
  11. #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_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. /* id 1 is reserved */
  21. #define MPLL 2
  22. #define UPLL 3
  23. #define MDIVCLK 4
  24. #define MSYSCLK 5
  25. #define USYSCLK 6
  26. #define HCLK 7
  27. #define PCLK 8
  28. #define ARMDIV 9
  29. #define ARMCLK 10
  30. /* Special clocks */
  31. #define SCLK_CAM 16
  32. #define SCLK_UART 17
  33. #define SCLK_I2S 18
  34. #define SCLK_USBD 19
  35. #define SCLK_USBH 20
  36. /* pclk-gates */
  37. #define PCLK_WDT 32
  38. #define PCLK_SPI 33
  39. #define PCLK_I2S 34
  40. #define PCLK_I2C 35
  41. #define PCLK_ADC 36
  42. #define PCLK_RTC 37
  43. #define PCLK_GPIO 38
  44. #define PCLK_UART2 39
  45. #define PCLK_UART1 40
  46. #define PCLK_UART0 41
  47. #define PCLK_SDI 42
  48. #define PCLK_PWM 43
  49. #define PCLK_USBD 44
  50. /* hclk-gates */
  51. #define HCLK_HALF 48
  52. #define HCLK_X2 49
  53. #define HCLK_SDRAM 50
  54. #define HCLK_USBH 51
  55. #define HCLK_LCD 52
  56. #define HCLK_NAND 53
  57. #define HCLK_DMA3 54
  58. #define HCLK_DMA2 55
  59. #define HCLK_DMA1 56
  60. #define HCLK_DMA0 57
  61. /* Total number of clocks. */
  62. #define NR_CLKS (HCLK_DMA0 + 1)
  63. #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2412_CLOCK_H */