1270866Simp/*
2270866Simp * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
3270866Simp *
4270866Simp * This program is free software; you can redistribute it and/or modify
5270866Simp * it under the terms of the GNU General Public License version 2 as
6270866Simp * published by the Free Software Foundation.
7270866Simp *
8270866Simp * Device Tree binding constants clock controllers of Samsung S3C2410 and later.
9270866Simp */
10270866Simp
11270866Simp#ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2410_CLOCK_H
12270866Simp#define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2410_CLOCK_H
13270866Simp
14270866Simp/*
15270866Simp * Let each exported clock get a unique index, which is used on DT-enabled
16270866Simp * platforms to lookup the clock from a clock specifier. These indices are
17270866Simp * therefore considered an ABI and so must not be changed. This implies
18270866Simp * that new clocks should be added either in free spaces between clock groups
19270866Simp * or at the end.
20270866Simp */
21270866Simp
22270866Simp/* Core clocks. */
23270866Simp
24270866Simp/* id 1 is reserved */
25270866Simp#define MPLL			2
26270866Simp#define UPLL			3
27270866Simp#define FCLK			4
28270866Simp#define HCLK			5
29270866Simp#define PCLK			6
30270866Simp#define UCLK			7
31270866Simp#define ARMCLK			8
32270866Simp
33270866Simp/* pclk-gates */
34270866Simp#define PCLK_UART0		16
35270866Simp#define PCLK_UART1		17
36270866Simp#define PCLK_UART2		18
37270866Simp#define PCLK_I2C		19
38270866Simp#define PCLK_SDI		20
39270866Simp#define PCLK_SPI		21
40270866Simp#define PCLK_ADC		22
41270866Simp#define PCLK_AC97		23
42270866Simp#define PCLK_I2S		24
43270866Simp#define PCLK_PWM		25
44270866Simp#define PCLK_RTC		26
45270866Simp#define PCLK_GPIO		27
46270866Simp
47270866Simp
48270866Simp/* hclk-gates */
49270866Simp#define HCLK_LCD		32
50270866Simp#define HCLK_USBH		33
51270866Simp#define HCLK_USBD		34
52270866Simp#define HCLK_NAND		35
53270866Simp#define HCLK_CAM		36
54270866Simp
55270866Simp
56270866Simp#define CAMIF			40
57270866Simp
58270866Simp
59270866Simp/* Total number of clocks. */
60270866Simp#define NR_CLKS			(CAMIF + 1)
61270866Simp
62270866Simp#endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H */
63