hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/clk/tegra/clk-tegra-super-gen4.c
....@@ -1,17 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2012, 2013, NVIDIA CORPORATION. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
154 */
165
176 #include <linux/io.h>
....@@ -191,7 +180,7 @@
191180 gen_info->num_cclk_g_parents,
192181 CLK_SET_RATE_PARENT,
193182 clk_base + CCLKG_BURST_POLICY,
194
- 0, 4, 8, 0, NULL);
183
+ TEGRA210_CPU_CLK, 4, 8, 0, NULL);
195184 } else {
196185 clk = tegra_clk_register_super_mux("cclk_g",
197186 gen_info->cclk_g_parents,
....@@ -207,6 +196,11 @@
207196 dt_clk = tegra_lookup_dt_id(tegra_clk_cclk_lp, tegra_clks);
208197 if (dt_clk) {
209198 if (gen_info->gen == gen5) {
199
+ /*
200
+ * TEGRA210_CPU_CLK flag is not needed for cclk_lp as
201
+ * cluster switching is not currently supported on
202
+ * Tegra210 and also cpu_lp is not used.
203
+ */
210204 clk = tegra_clk_register_super_mux("cclk_lp",
211205 gen_info->cclk_lp_parents,
212206 gen_info->num_cclk_lp_parents,