blob: 75c5888068b24b037ac443d8597f1c6c9e7659db [file] [log] [blame]
Naveen Krishna Ch532abc32014-09-22 10:17:04 +05301/*
2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 * Author: Naveen Krishna Ch <naveenkrishna.ch@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8*/
9
10#ifndef _DT_BINDINGS_CLOCK_EXYNOS7_H
11#define _DT_BINDINGS_CLOCK_EXYNOS7_H
12
13/* TOPC */
14#define DOUT_ACLK_PERIS 1
15#define DOUT_SCLK_BUS0_PLL 2
16#define DOUT_SCLK_BUS1_PLL 3
17#define DOUT_SCLK_CC_PLL 4
18#define DOUT_SCLK_MFC_PLL 5
Naveen Krishna Chf5e127c2014-10-28 16:48:53 +053019#define DOUT_ACLK_CCORE_133 6
Tony K Nadackal49cab822014-12-17 13:03:37 +053020#define DOUT_ACLK_MSCL_532 7
21#define ACLK_MSCL_532 8
22#define TOPC_NR_CLK 9
Naveen Krishna Ch532abc32014-09-22 10:17:04 +053023
24/* TOP0 */
25#define DOUT_ACLK_PERIC1 1
26#define DOUT_ACLK_PERIC0 2
27#define CLK_SCLK_UART0 3
28#define CLK_SCLK_UART1 4
29#define CLK_SCLK_UART2 5
30#define CLK_SCLK_UART3 6
Padmavathi Vennaee74b562015-01-13 16:57:41 +053031#define CLK_SCLK_SPI0 7
32#define CLK_SCLK_SPI1 8
33#define CLK_SCLK_SPI2 9
34#define CLK_SCLK_SPI3 10
35#define CLK_SCLK_SPI4 11
36#define TOP0_NR_CLK 12
Naveen Krishna Ch532abc32014-09-22 10:17:04 +053037
Naveen Krishna Ch6d0c8c72014-10-21 11:13:52 +053038/* TOP1 */
39#define DOUT_ACLK_FSYS1_200 1
40#define DOUT_ACLK_FSYS0_200 2
41#define DOUT_SCLK_MMC2 3
42#define DOUT_SCLK_MMC1 4
43#define DOUT_SCLK_MMC0 5
44#define CLK_SCLK_MMC2 6
45#define CLK_SCLK_MMC1 7
46#define CLK_SCLK_MMC0 8
47#define TOP1_NR_CLK 9
48
Naveen Krishna Chf5e127c2014-10-28 16:48:53 +053049/* CCORE */
50#define PCLK_RTC 1
51#define CCORE_NR_CLK 2
52
Naveen Krishna Ch532abc32014-09-22 10:17:04 +053053/* PERIC0 */
54#define PCLK_UART0 1
55#define SCLK_UART0 2
Naveen Krishna Ch57a2b482014-10-21 11:13:51 +053056#define PCLK_HSI2C0 3
57#define PCLK_HSI2C1 4
58#define PCLK_HSI2C4 5
59#define PCLK_HSI2C5 6
60#define PCLK_HSI2C9 7
61#define PCLK_HSI2C10 8
62#define PCLK_HSI2C11 9
Naveen Krishna Ch2ab2dfe2014-10-28 16:48:54 +053063#define PCLK_PWM 10
64#define SCLK_PWM 11
Abhilash Kesavan932e9822014-10-28 16:48:55 +053065#define PCLK_ADCIF 12
66#define PERIC0_NR_CLK 13
Naveen Krishna Ch532abc32014-09-22 10:17:04 +053067
68/* PERIC1 */
69#define PCLK_UART1 1
70#define PCLK_UART2 2
71#define PCLK_UART3 3
72#define SCLK_UART1 4
73#define SCLK_UART2 5
74#define SCLK_UART3 6
Naveen Krishna Ch57a2b482014-10-21 11:13:51 +053075#define PCLK_HSI2C2 7
76#define PCLK_HSI2C3 8
77#define PCLK_HSI2C6 9
78#define PCLK_HSI2C7 10
79#define PCLK_HSI2C8 11
Padmavathi Vennaee74b562015-01-13 16:57:41 +053080#define PCLK_SPI0 12
81#define PCLK_SPI1 13
82#define PCLK_SPI2 14
83#define PCLK_SPI3 15
84#define PCLK_SPI4 16
85#define SCLK_SPI0 17
86#define SCLK_SPI1 18
87#define SCLK_SPI2 19
88#define SCLK_SPI3 20
89#define SCLK_SPI4 21
90#define PERIC1_NR_CLK 22
Naveen Krishna Ch532abc32014-09-22 10:17:04 +053091
92/* PERIS */
93#define PCLK_CHIPID 1
94#define SCLK_CHIPID 2
Naveen Krishna Ch2ab2dfe2014-10-28 16:48:54 +053095#define PCLK_WDT 3
96#define PCLK_TMU 4
97#define SCLK_TMU 5
98#define PERIS_NR_CLK 6
Naveen Krishna Ch532abc32014-09-22 10:17:04 +053099
Naveen Krishna Ch6d0c8c72014-10-21 11:13:52 +0530100/* FSYS0 */
101#define ACLK_MMC2 1
Vivek Gautam83f191a2014-11-21 19:05:51 +0530102#define ACLK_AXIUS_USBDRD30X_FSYS0X 2
103#define ACLK_USBDRD300 3
104#define SCLK_USBDRD300_SUSPENDCLK 4
105#define SCLK_USBDRD300_REFCLK 5
106#define PHYCLK_USBDRD300_UDRD30_PIPE_PCLK_USER 6
107#define PHYCLK_USBDRD300_UDRD30_PHYCLK_USER 7
108#define OSCCLK_PHY_CLKOUT_USB30_PHY 8
Padmavathi Venna9cc2a0c92015-01-13 16:57:40 +0530109#define ACLK_PDMA0 9
110#define ACLK_PDMA1 10
111#define FSYS0_NR_CLK 11
Naveen Krishna Ch6d0c8c72014-10-21 11:13:52 +0530112
113/* FSYS1 */
114#define ACLK_MMC1 1
115#define ACLK_MMC0 2
116#define FSYS1_NR_CLK 3
117
Tony K Nadackal49cab822014-12-17 13:03:37 +0530118/* MSCL */
119#define USERMUX_ACLK_MSCL_532 1
120#define DOUT_PCLK_MSCL 2
121#define ACLK_MSCL_0 3
122#define ACLK_MSCL_1 4
123#define ACLK_JPEG 5
124#define ACLK_G2D 6
125#define ACLK_LH_ASYNC_SI_MSCL_0 7
126#define ACLK_LH_ASYNC_SI_MSCL_1 8
127#define ACLK_AXI2ACEL_BRIDGE 9
128#define ACLK_XIU_MSCLX_0 10
129#define ACLK_XIU_MSCLX_1 11
130#define ACLK_QE_MSCL_0 12
131#define ACLK_QE_MSCL_1 13
132#define ACLK_QE_JPEG 14
133#define ACLK_QE_G2D 15
134#define ACLK_PPMU_MSCL_0 16
135#define ACLK_PPMU_MSCL_1 17
136#define ACLK_MSCLNP_133 18
137#define ACLK_AHB2APB_MSCL0P 19
138#define ACLK_AHB2APB_MSCL1P 20
139
140#define PCLK_MSCL_0 21
141#define PCLK_MSCL_1 22
142#define PCLK_JPEG 23
143#define PCLK_G2D 24
144#define PCLK_QE_MSCL_0 25
145#define PCLK_QE_MSCL_1 26
146#define PCLK_QE_JPEG 27
147#define PCLK_QE_G2D 28
148#define PCLK_PPMU_MSCL_0 29
149#define PCLK_PPMU_MSCL_1 30
150#define PCLK_AXI2ACEL_BRIDGE 31
151#define PCLK_PMU_MSCL 32
152#define MSCL_NR_CLK 33
153
Naveen Krishna Ch532abc32014-09-22 10:17:04 +0530154#endif /* _DT_BINDINGS_CLOCK_EXYNOS7_H */