.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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 | | - * |
---|
13 | 4 | */ |
---|
14 | 5 | |
---|
15 | 6 | #ifndef __DRIVERS_CLK_TEGRA_CVB_H |
---|
.. | .. |
---|
41 | 32 | u32 tune0_low; |
---|
42 | 33 | u32 tune0_high; |
---|
43 | 34 | u32 tune1; |
---|
| 35 | + unsigned int tune_high_min_millivolts; |
---|
44 | 36 | }; |
---|
45 | 37 | |
---|
46 | 38 | struct cvb_table { |
---|
.. | .. |
---|
49 | 41 | |
---|
50 | 42 | int min_millivolts; |
---|
51 | 43 | int max_millivolts; |
---|
52 | | - struct rail_alignment alignment; |
---|
53 | 44 | |
---|
54 | 45 | int speedo_scale; |
---|
55 | 46 | int voltage_scale; |
---|
.. | .. |
---|
59 | 50 | |
---|
60 | 51 | const struct cvb_table * |
---|
61 | 52 | 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); |
---|
64 | 56 | void tegra_cvb_remove_opp_table(struct device *dev, |
---|
65 | 57 | const struct cvb_table *table, |
---|
66 | 58 | unsigned long max_freq); |
---|