@@ -108,42 +108,6 @@ static const struct clk_parent_data gcc_xo_gpll0_gpll4[] = {
108
108
{ .hw = & gpll4 .clkr .hw },
109
109
};
110
110
111
- static struct clk_rcg2 system_noc_clk_src = {
112
- .cmd_rcgr = 0x0120 ,
113
- .hid_width = 5 ,
114
- .parent_map = gcc_xo_gpll0_map ,
115
- .clkr .hw .init = & (struct clk_init_data ){
116
- .name = "system_noc_clk_src" ,
117
- .parent_data = gcc_xo_gpll0 ,
118
- .num_parents = ARRAY_SIZE (gcc_xo_gpll0 ),
119
- .ops = & clk_rcg2_ops ,
120
- },
121
- };
122
-
123
- static struct clk_rcg2 config_noc_clk_src = {
124
- .cmd_rcgr = 0x0150 ,
125
- .hid_width = 5 ,
126
- .parent_map = gcc_xo_gpll0_map ,
127
- .clkr .hw .init = & (struct clk_init_data ){
128
- .name = "config_noc_clk_src" ,
129
- .parent_data = gcc_xo_gpll0 ,
130
- .num_parents = ARRAY_SIZE (gcc_xo_gpll0 ),
131
- .ops = & clk_rcg2_ops ,
132
- },
133
- };
134
-
135
- static struct clk_rcg2 periph_noc_clk_src = {
136
- .cmd_rcgr = 0x0190 ,
137
- .hid_width = 5 ,
138
- .parent_map = gcc_xo_gpll0_map ,
139
- .clkr .hw .init = & (struct clk_init_data ){
140
- .name = "periph_noc_clk_src" ,
141
- .parent_data = gcc_xo_gpll0 ,
142
- .num_parents = ARRAY_SIZE (gcc_xo_gpll0 ),
143
- .ops = & clk_rcg2_ops ,
144
- },
145
- };
146
-
147
111
static struct freq_tbl ftbl_ufs_axi_clk_src [] = {
148
112
F (50000000 , P_GPLL0 , 12 , 0 , 0 ),
149
113
F (100000000 , P_GPLL0 , 6 , 0 , 0 ),
@@ -1150,8 +1114,6 @@ static struct clk_branch gcc_blsp1_ahb_clk = {
1150
1114
.enable_mask = BIT (17 ),
1151
1115
.hw .init = & (struct clk_init_data ){
1152
1116
.name = "gcc_blsp1_ahb_clk" ,
1153
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
1154
- .num_parents = 1 ,
1155
1117
.ops = & clk_branch2_ops ,
1156
1118
},
1157
1119
},
@@ -1435,8 +1397,6 @@ static struct clk_branch gcc_blsp2_ahb_clk = {
1435
1397
.enable_mask = BIT (15 ),
1436
1398
.hw .init = & (struct clk_init_data ){
1437
1399
.name = "gcc_blsp2_ahb_clk" ,
1438
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
1439
- .num_parents = 1 ,
1440
1400
.ops = & clk_branch2_ops ,
1441
1401
},
1442
1402
},
@@ -1764,8 +1724,6 @@ static struct clk_branch gcc_lpass_q6_axi_clk = {
1764
1724
.enable_mask = BIT (0 ),
1765
1725
.hw .init = & (struct clk_init_data ){
1766
1726
.name = "gcc_lpass_q6_axi_clk" ,
1767
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
1768
- .num_parents = 1 ,
1769
1727
.ops = & clk_branch2_ops ,
1770
1728
},
1771
1729
},
@@ -1778,8 +1736,6 @@ static struct clk_branch gcc_mss_q6_bimc_axi_clk = {
1778
1736
.enable_mask = BIT (0 ),
1779
1737
.hw .init = & (struct clk_init_data ){
1780
1738
.name = "gcc_mss_q6_bimc_axi_clk" ,
1781
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
1782
- .num_parents = 1 ,
1783
1739
.ops = & clk_branch2_ops ,
1784
1740
},
1785
1741
},
@@ -1807,9 +1763,6 @@ static struct clk_branch gcc_pcie_0_cfg_ahb_clk = {
1807
1763
.enable_mask = BIT (0 ),
1808
1764
.hw .init = & (struct clk_init_data ){
1809
1765
.name = "gcc_pcie_0_cfg_ahb_clk" ,
1810
- .parent_hws = (const struct clk_hw * []){ & config_noc_clk_src .clkr .hw },
1811
- .num_parents = 1 ,
1812
- .flags = CLK_SET_RATE_PARENT ,
1813
1766
.ops = & clk_branch2_ops ,
1814
1767
},
1815
1768
},
@@ -1822,9 +1775,6 @@ static struct clk_branch gcc_pcie_0_mstr_axi_clk = {
1822
1775
.enable_mask = BIT (0 ),
1823
1776
.hw .init = & (struct clk_init_data ){
1824
1777
.name = "gcc_pcie_0_mstr_axi_clk" ,
1825
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
1826
- .num_parents = 1 ,
1827
- .flags = CLK_SET_RATE_PARENT ,
1828
1778
.ops = & clk_branch2_ops ,
1829
1779
},
1830
1780
},
@@ -1854,9 +1804,6 @@ static struct clk_branch gcc_pcie_0_slv_axi_clk = {
1854
1804
.enable_mask = BIT (0 ),
1855
1805
.hw .init = & (struct clk_init_data ){
1856
1806
.name = "gcc_pcie_0_slv_axi_clk" ,
1857
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
1858
- .num_parents = 1 ,
1859
- .flags = CLK_SET_RATE_PARENT ,
1860
1807
.ops = & clk_branch2_ops ,
1861
1808
},
1862
1809
},
@@ -1884,9 +1831,6 @@ static struct clk_branch gcc_pcie_1_cfg_ahb_clk = {
1884
1831
.enable_mask = BIT (0 ),
1885
1832
.hw .init = & (struct clk_init_data ){
1886
1833
.name = "gcc_pcie_1_cfg_ahb_clk" ,
1887
- .parent_hws = (const struct clk_hw * []){ & config_noc_clk_src .clkr .hw },
1888
- .num_parents = 1 ,
1889
- .flags = CLK_SET_RATE_PARENT ,
1890
1834
.ops = & clk_branch2_ops ,
1891
1835
},
1892
1836
},
@@ -1899,9 +1843,6 @@ static struct clk_branch gcc_pcie_1_mstr_axi_clk = {
1899
1843
.enable_mask = BIT (0 ),
1900
1844
.hw .init = & (struct clk_init_data ){
1901
1845
.name = "gcc_pcie_1_mstr_axi_clk" ,
1902
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
1903
- .num_parents = 1 ,
1904
- .flags = CLK_SET_RATE_PARENT ,
1905
1846
.ops = & clk_branch2_ops ,
1906
1847
},
1907
1848
},
@@ -1930,9 +1871,6 @@ static struct clk_branch gcc_pcie_1_slv_axi_clk = {
1930
1871
.enable_mask = BIT (0 ),
1931
1872
.hw .init = & (struct clk_init_data ){
1932
1873
.name = "gcc_pcie_1_slv_axi_clk" ,
1933
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
1934
- .num_parents = 1 ,
1935
- .flags = CLK_SET_RATE_PARENT ,
1936
1874
.ops = & clk_branch2_ops ,
1937
1875
},
1938
1876
},
@@ -1960,8 +1898,6 @@ static struct clk_branch gcc_pdm_ahb_clk = {
1960
1898
.enable_mask = BIT (0 ),
1961
1899
.hw .init = & (struct clk_init_data ){
1962
1900
.name = "gcc_pdm_ahb_clk" ,
1963
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
1964
- .num_parents = 1 ,
1965
1901
.ops = & clk_branch2_ops ,
1966
1902
},
1967
1903
},
@@ -1989,9 +1925,6 @@ static struct clk_branch gcc_sdcc1_ahb_clk = {
1989
1925
.enable_mask = BIT (0 ),
1990
1926
.hw .init = & (struct clk_init_data ){
1991
1927
.name = "gcc_sdcc1_ahb_clk" ,
1992
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
1993
- .num_parents = 1 ,
1994
- .flags = CLK_SET_RATE_PARENT ,
1995
1928
.ops = & clk_branch2_ops ,
1996
1929
},
1997
1930
},
@@ -2004,9 +1937,6 @@ static struct clk_branch gcc_sdcc2_ahb_clk = {
2004
1937
.enable_mask = BIT (0 ),
2005
1938
.hw .init = & (struct clk_init_data ){
2006
1939
.name = "gcc_sdcc2_ahb_clk" ,
2007
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
2008
- .num_parents = 1 ,
2009
- .flags = CLK_SET_RATE_PARENT ,
2010
1940
.ops = & clk_branch2_ops ,
2011
1941
},
2012
1942
},
@@ -2034,9 +1964,6 @@ static struct clk_branch gcc_sdcc3_ahb_clk = {
2034
1964
.enable_mask = BIT (0 ),
2035
1965
.hw .init = & (struct clk_init_data ){
2036
1966
.name = "gcc_sdcc3_ahb_clk" ,
2037
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
2038
- .num_parents = 1 ,
2039
- .flags = CLK_SET_RATE_PARENT ,
2040
1967
.ops = & clk_branch2_ops ,
2041
1968
},
2042
1969
},
@@ -2064,9 +1991,6 @@ static struct clk_branch gcc_sdcc4_ahb_clk = {
2064
1991
.enable_mask = BIT (0 ),
2065
1992
.hw .init = & (struct clk_init_data ){
2066
1993
.name = "gcc_sdcc4_ahb_clk" ,
2067
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
2068
- .num_parents = 1 ,
2069
- .flags = CLK_SET_RATE_PARENT ,
2070
1994
.ops = & clk_branch2_ops ,
2071
1995
},
2072
1996
},
@@ -2124,8 +2048,6 @@ static struct clk_branch gcc_tsif_ahb_clk = {
2124
2048
.enable_mask = BIT (0 ),
2125
2049
.hw .init = & (struct clk_init_data ){
2126
2050
.name = "gcc_tsif_ahb_clk" ,
2127
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
2128
- .num_parents = 1 ,
2129
2051
.ops = & clk_branch2_ops ,
2130
2052
},
2131
2053
},
@@ -2153,8 +2075,6 @@ static struct clk_branch gcc_ufs_ahb_clk = {
2153
2075
.enable_mask = BIT (0 ),
2154
2076
.hw .init = & (struct clk_init_data ){
2155
2077
.name = "gcc_ufs_ahb_clk" ,
2156
- .parent_hws = (const struct clk_hw * []){ & config_noc_clk_src .clkr .hw },
2157
- .num_parents = 1 ,
2158
2078
.ops = & clk_branch2_ops ,
2159
2079
},
2160
2080
},
@@ -2198,8 +2118,6 @@ static struct clk_branch gcc_ufs_rx_symbol_0_clk = {
2198
2118
.enable_mask = BIT (0 ),
2199
2119
.hw .init = & (struct clk_init_data ){
2200
2120
.name = "gcc_ufs_rx_symbol_0_clk" ,
2201
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
2202
- .num_parents = 1 ,
2203
2121
.ops = & clk_branch2_ops ,
2204
2122
},
2205
2123
},
@@ -2213,8 +2131,6 @@ static struct clk_branch gcc_ufs_rx_symbol_1_clk = {
2213
2131
.enable_mask = BIT (0 ),
2214
2132
.hw .init = & (struct clk_init_data ){
2215
2133
.name = "gcc_ufs_rx_symbol_1_clk" ,
2216
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
2217
- .num_parents = 1 ,
2218
2134
.ops = & clk_branch2_ops ,
2219
2135
},
2220
2136
},
@@ -2243,8 +2159,6 @@ static struct clk_branch gcc_ufs_tx_symbol_0_clk = {
2243
2159
.enable_mask = BIT (0 ),
2244
2160
.hw .init = & (struct clk_init_data ){
2245
2161
.name = "gcc_ufs_tx_symbol_0_clk" ,
2246
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
2247
- .num_parents = 1 ,
2248
2162
.ops = & clk_branch2_ops ,
2249
2163
},
2250
2164
},
@@ -2258,8 +2172,6 @@ static struct clk_branch gcc_ufs_tx_symbol_1_clk = {
2258
2172
.enable_mask = BIT (0 ),
2259
2173
.hw .init = & (struct clk_init_data ){
2260
2174
.name = "gcc_ufs_tx_symbol_1_clk" ,
2261
- .parent_hws = (const struct clk_hw * []){ & system_noc_clk_src .clkr .hw },
2262
- .num_parents = 1 ,
2263
2175
.ops = & clk_branch2_ops ,
2264
2176
},
2265
2177
},
@@ -2364,8 +2276,6 @@ static struct clk_branch gcc_usb_hs_ahb_clk = {
2364
2276
.enable_mask = BIT (0 ),
2365
2277
.hw .init = & (struct clk_init_data ){
2366
2278
.name = "gcc_usb_hs_ahb_clk" ,
2367
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
2368
- .num_parents = 1 ,
2369
2279
.ops = & clk_branch2_ops ,
2370
2280
},
2371
2281
},
@@ -2488,8 +2398,6 @@ static struct clk_branch gcc_boot_rom_ahb_clk = {
2488
2398
.enable_mask = BIT (10 ),
2489
2399
.hw .init = & (struct clk_init_data ){
2490
2400
.name = "gcc_boot_rom_ahb_clk" ,
2491
- .parent_hws = (const struct clk_hw * []){ & config_noc_clk_src .clkr .hw },
2492
- .num_parents = 1 ,
2493
2401
.ops = & clk_branch2_ops ,
2494
2402
},
2495
2403
},
@@ -2503,8 +2411,6 @@ static struct clk_branch gcc_prng_ahb_clk = {
2503
2411
.enable_mask = BIT (13 ),
2504
2412
.hw .init = & (struct clk_init_data ){
2505
2413
.name = "gcc_prng_ahb_clk" ,
2506
- .parent_hws = (const struct clk_hw * []){ & periph_noc_clk_src .clkr .hw },
2507
- .num_parents = 1 ,
2508
2414
.ops = & clk_branch2_ops ,
2509
2415
},
2510
2416
},
@@ -2547,9 +2453,6 @@ static struct clk_regmap *gcc_msm8994_clocks[] = {
2547
2453
[GPLL0 ] = & gpll0 .clkr ,
2548
2454
[GPLL4_EARLY ] = & gpll4_early .clkr ,
2549
2455
[GPLL4 ] = & gpll4 .clkr ,
2550
- [CONFIG_NOC_CLK_SRC ] = & config_noc_clk_src .clkr ,
2551
- [PERIPH_NOC_CLK_SRC ] = & periph_noc_clk_src .clkr ,
2552
- [SYSTEM_NOC_CLK_SRC ] = & system_noc_clk_src .clkr ,
2553
2456
[UFS_AXI_CLK_SRC ] = & ufs_axi_clk_src .clkr ,
2554
2457
[USB30_MASTER_CLK_SRC ] = & usb30_master_clk_src .clkr ,
2555
2458
[BLSP1_QUP1_I2C_APPS_CLK_SRC ] = & blsp1_qup1_i2c_apps_clk_src .clkr ,
@@ -2696,6 +2599,15 @@ static struct clk_regmap *gcc_msm8994_clocks[] = {
2696
2599
[USB_SS_PHY_LDO ] = & usb_ss_phy_ldo .clkr ,
2697
2600
[GCC_BOOT_ROM_AHB_CLK ] = & gcc_boot_rom_ahb_clk .clkr ,
2698
2601
[GCC_PRNG_AHB_CLK ] = & gcc_prng_ahb_clk .clkr ,
2602
+
2603
+ /*
2604
+ * The following clocks should NOT be managed by this driver, but they once were
2605
+ * mistakengly added. Now they are only here to indicate that they are not defined
2606
+ * on purpose, even though the names will stay in the header file (for ABI sanity).
2607
+ */
2608
+ [CONFIG_NOC_CLK_SRC ] = NULL ,
2609
+ [PERIPH_NOC_CLK_SRC ] = NULL ,
2610
+ [SYSTEM_NOC_CLK_SRC ] = NULL ,
2699
2611
};
2700
2612
2701
2613
static struct gdsc * gcc_msm8994_gdscs [] = {
0 commit comments