forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/tegra/cvb.h
....@@ -1,15 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Utility functions for parsing Tegra CVB voltage tables
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that 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
- *
134 */
145
156 #ifndef __DRIVERS_CLK_TEGRA_CVB_H
....@@ -41,6 +32,7 @@
4132 u32 tune0_low;
4233 u32 tune0_high;
4334 u32 tune1;
35
+ unsigned int tune_high_min_millivolts;
4436 };
4537
4638 struct cvb_table {
....@@ -49,7 +41,6 @@
4941
5042 int min_millivolts;
5143 int max_millivolts;
52
- struct rail_alignment alignment;
5344
5445 int speedo_scale;
5546 int voltage_scale;
....@@ -59,8 +50,9 @@
5950
6051 const struct cvb_table *
6152 tegra_cvb_add_opp_table(struct device *dev, const struct cvb_table *cvb_tables,
62
- size_t count, int process_id, int speedo_id,
63
- int speedo_value, unsigned long max_freq);
53
+ size_t count, struct rail_alignment *align,
54
+ int process_id, int speedo_id, int speedo_value,
55
+ unsigned long max_freq);
6456 void tegra_cvb_remove_opp_table(struct device *dev,
6557 const struct cvb_table *table,
6658 unsigned long max_freq);