blob: c585b82b9c056d489f8f383d8da9cf40bfb6948f [file] [log] [blame]
Georgi Djakov00f64b52016-11-02 17:56:56 +02001/*
2 * Copyright 2015 Linaro Limited
3 *
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#ifndef _DT_BINDINGS_CLK_MSM_RPMCC_H
15#define _DT_BINDINGS_CLK_MSM_RPMCC_H
16
Bjorn Andersson685dc942016-11-18 08:33:25 -080017/* RPM clocks */
Georgi Djakov872f91b52016-11-02 17:56:57 +020018#define RPM_PXO_CLK 0
19#define RPM_PXO_A_CLK 1
20#define RPM_CXO_CLK 2
21#define RPM_CXO_A_CLK 3
22#define RPM_APPS_FABRIC_CLK 4
23#define RPM_APPS_FABRIC_A_CLK 5
24#define RPM_CFPB_CLK 6
25#define RPM_CFPB_A_CLK 7
26#define RPM_QDSS_CLK 8
27#define RPM_QDSS_A_CLK 9
28#define RPM_DAYTONA_FABRIC_CLK 10
29#define RPM_DAYTONA_FABRIC_A_CLK 11
30#define RPM_EBI1_CLK 12
31#define RPM_EBI1_A_CLK 13
32#define RPM_MM_FABRIC_CLK 14
33#define RPM_MM_FABRIC_A_CLK 15
34#define RPM_MMFPB_CLK 16
35#define RPM_MMFPB_A_CLK 17
36#define RPM_SYS_FABRIC_CLK 18
37#define RPM_SYS_FABRIC_A_CLK 19
38#define RPM_SFPB_CLK 20
39#define RPM_SFPB_A_CLK 21
Linus Walleij856e6bb2017-10-13 13:59:16 +020040#define RPM_SMI_CLK 22
41#define RPM_SMI_A_CLK 23
42#define RPM_PLL4_CLK 24
Srinivas Kandagatla8bcde652018-03-18 14:44:01 +000043#define RPM_XO_D0 25
44#define RPM_XO_D1 26
45#define RPM_XO_A0 27
46#define RPM_XO_A1 28
47#define RPM_XO_A2 29
Georgi Djakov872f91b52016-11-02 17:56:57 +020048
Bjorn Andersson685dc942016-11-18 08:33:25 -080049/* SMD RPM clocks */
Georgi Djakov00f64b52016-11-02 17:56:56 +020050#define RPM_SMD_XO_CLK_SRC 0
51#define RPM_SMD_XO_A_CLK_SRC 1
52#define RPM_SMD_PCNOC_CLK 2
53#define RPM_SMD_PCNOC_A_CLK 3
54#define RPM_SMD_SNOC_CLK 4
55#define RPM_SMD_SNOC_A_CLK 5
56#define RPM_SMD_BIMC_CLK 6
57#define RPM_SMD_BIMC_A_CLK 7
58#define RPM_SMD_QDSS_CLK 8
59#define RPM_SMD_QDSS_A_CLK 9
60#define RPM_SMD_BB_CLK1 10
61#define RPM_SMD_BB_CLK1_A 11
62#define RPM_SMD_BB_CLK2 12
63#define RPM_SMD_BB_CLK2_A 13
64#define RPM_SMD_RF_CLK1 14
65#define RPM_SMD_RF_CLK1_A 15
66#define RPM_SMD_RF_CLK2 16
67#define RPM_SMD_RF_CLK2_A 17
68#define RPM_SMD_BB_CLK1_PIN 18
69#define RPM_SMD_BB_CLK1_A_PIN 19
70#define RPM_SMD_BB_CLK2_PIN 20
71#define RPM_SMD_BB_CLK2_A_PIN 21
72#define RPM_SMD_RF_CLK1_PIN 22
73#define RPM_SMD_RF_CLK1_A_PIN 23
74#define RPM_SMD_RF_CLK2_PIN 24
75#define RPM_SMD_RF_CLK2_A_PIN 25
Bjorn Andersson685dc942016-11-18 08:33:25 -080076#define RPM_SMD_PNOC_CLK 26
77#define RPM_SMD_PNOC_A_CLK 27
78#define RPM_SMD_CNOC_CLK 28
79#define RPM_SMD_CNOC_A_CLK 29
80#define RPM_SMD_MMSSNOC_AHB_CLK 30
81#define RPM_SMD_MMSSNOC_AHB_A_CLK 31
82#define RPM_SMD_GFX3D_CLK_SRC 32
83#define RPM_SMD_GFX3D_A_CLK_SRC 33
84#define RPM_SMD_OCMEMGX_CLK 34
85#define RPM_SMD_OCMEMGX_A_CLK 35
86#define RPM_SMD_CXO_D0 36
87#define RPM_SMD_CXO_D0_A 37
88#define RPM_SMD_CXO_D1 38
89#define RPM_SMD_CXO_D1_A 39
90#define RPM_SMD_CXO_A0 40
91#define RPM_SMD_CXO_A0_A 41
92#define RPM_SMD_CXO_A1 42
93#define RPM_SMD_CXO_A1_A 43
94#define RPM_SMD_CXO_A2 44
95#define RPM_SMD_CXO_A2_A 45
96#define RPM_SMD_DIV_CLK1 46
97#define RPM_SMD_DIV_A_CLK1 47
98#define RPM_SMD_DIV_CLK2 48
99#define RPM_SMD_DIV_A_CLK2 49
100#define RPM_SMD_DIFF_CLK 50
101#define RPM_SMD_DIFF_A_CLK 51
102#define RPM_SMD_CXO_D0_PIN 52
103#define RPM_SMD_CXO_D0_A_PIN 53
104#define RPM_SMD_CXO_D1_PIN 54
105#define RPM_SMD_CXO_D1_A_PIN 55
106#define RPM_SMD_CXO_A0_PIN 56
107#define RPM_SMD_CXO_A0_A_PIN 57
108#define RPM_SMD_CXO_A1_PIN 58
109#define RPM_SMD_CXO_A1_A_PIN 59
110#define RPM_SMD_CXO_A2_PIN 60
111#define RPM_SMD_CXO_A2_A_PIN 61
Rajendra Nayak7066fdd2017-10-10 14:27:13 +0530112#define RPM_SMD_AGGR1_NOC_CLK 62
113#define RPM_SMD_AGGR1_NOC_A_CLK 63
114#define RPM_SMD_AGGR2_NOC_CLK 64
115#define RPM_SMD_AGGR2_NOC_A_CLK 65
116#define RPM_SMD_MMAXI_CLK 66
117#define RPM_SMD_MMAXI_A_CLK 67
118#define RPM_SMD_IPA_CLK 68
119#define RPM_SMD_IPA_A_CLK 69
120#define RPM_SMD_CE1_CLK 70
121#define RPM_SMD_CE1_A_CLK 71
122#define RPM_SMD_DIV_CLK3 72
123#define RPM_SMD_DIV_A_CLK3 73
124#define RPM_SMD_LN_BB_CLK 74
125#define RPM_SMD_LN_BB_A_CLK 75
Georgi Djakov00f64b52016-11-02 17:56:56 +0200126
127#endif