.. | .. |
---|
1 | | -/* |
---|
2 | | - * Copyright (c) 2017 MediaTek Inc. |
---|
3 | | - * Author: Chenglin Xu <chenglin.xu@mediatek.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | | - */ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
| 2 | +// |
---|
| 3 | +// Copyright (c) 2017 MediaTek Inc. |
---|
| 4 | +// Author: Chenglin Xu <chenglin.xu@mediatek.com> |
---|
14 | 5 | |
---|
15 | 6 | #include <linux/module.h> |
---|
16 | 7 | #include <linux/of.h> |
---|
.. | .. |
---|
161 | 152 | .modeset_mask = _modeset_mask, \ |
---|
162 | 153 | } |
---|
163 | 154 | |
---|
164 | | -static const struct regulator_linear_range buck_volt_range1[] = { |
---|
| 155 | +static const struct linear_range buck_volt_range1[] = { |
---|
165 | 156 | REGULATOR_LINEAR_RANGE(600000, 0, 0xfe, 6250), |
---|
166 | 157 | }; |
---|
167 | 158 | |
---|
168 | | -static const struct regulator_linear_range buck_volt_range2[] = { |
---|
| 159 | +static const struct linear_range buck_volt_range2[] = { |
---|
169 | 160 | REGULATOR_LINEAR_RANGE(600000, 0, 0xfe, 6250), |
---|
170 | 161 | }; |
---|
171 | 162 | |
---|
172 | | -static const struct regulator_linear_range buck_volt_range3[] = { |
---|
| 163 | +static const struct linear_range buck_volt_range3[] = { |
---|
173 | 164 | REGULATOR_LINEAR_RANGE(1200000, 0, 0x3c, 25000), |
---|
174 | 165 | }; |
---|
175 | 166 | |
---|
176 | | -static const u32 ldo_volt_table1[] = { |
---|
| 167 | +static const unsigned int ldo_volt_table1[] = { |
---|
177 | 168 | 1400000, 1350000, 1300000, 1250000, 1200000, 1150000, 1100000, 1050000, |
---|
178 | 169 | }; |
---|
179 | 170 | |
---|
180 | | -static const u32 ldo_volt_table2[] = { |
---|
| 171 | +static const unsigned int ldo_volt_table2[] = { |
---|
181 | 172 | 2200000, 3300000, |
---|
182 | 173 | }; |
---|
183 | 174 | |
---|
184 | | -static const u32 ldo_volt_table3[] = { |
---|
| 175 | +static const unsigned int ldo_volt_table3[] = { |
---|
185 | 176 | 1240000, 1390000, 1540000, 1840000, |
---|
186 | 177 | }; |
---|
187 | 178 | |
---|
188 | | -static const u32 ldo_volt_table4[] = { |
---|
| 179 | +static const unsigned int ldo_volt_table4[] = { |
---|
189 | 180 | 2200000, 3300000, |
---|
190 | 181 | }; |
---|
191 | 182 | |
---|