| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * Copyright (c) 2016 MediaTek Inc. |
|---|
| 3 | | - * Author: Chen Zhong <chen.zhong@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 | | - */ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +// |
|---|
| 3 | +// Copyright (c) 2016 MediaTek Inc. |
|---|
| 4 | +// Author: Chen Zhong <chen.zhong@mediatek.com> |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | #include <linux/module.h> |
|---|
| 11 | 7 | #include <linux/of.h> |
|---|
| .. | .. |
|---|
| 106 | 102 | .modeset_mask = _modeset_mask, \ |
|---|
| 107 | 103 | } |
|---|
| 108 | 104 | |
|---|
| 109 | | -static const struct regulator_linear_range buck_volt_range1[] = { |
|---|
| 105 | +static const struct linear_range buck_volt_range1[] = { |
|---|
| 110 | 106 | REGULATOR_LINEAR_RANGE(700000, 0, 0x7f, 6250), |
|---|
| 111 | 107 | }; |
|---|
| 112 | 108 | |
|---|
| 113 | | -static const struct regulator_linear_range buck_volt_range2[] = { |
|---|
| 109 | +static const struct linear_range buck_volt_range2[] = { |
|---|
| 114 | 110 | REGULATOR_LINEAR_RANGE(1400000, 0, 0x7f, 12500), |
|---|
| 115 | 111 | }; |
|---|
| 116 | 112 | |
|---|
| 117 | | -static const struct regulator_linear_range buck_volt_range3[] = { |
|---|
| 113 | +static const struct linear_range buck_volt_range3[] = { |
|---|
| 118 | 114 | REGULATOR_LINEAR_RANGE(500000, 0, 0x3f, 50000), |
|---|
| 119 | 115 | }; |
|---|
| 120 | 116 | |
|---|
| 121 | | -static const u32 ldo_volt_table1[] = { |
|---|
| 117 | +static const unsigned int ldo_volt_table1[] = { |
|---|
| 122 | 118 | 3300000, 3400000, 3500000, 3600000, |
|---|
| 123 | 119 | }; |
|---|
| 124 | 120 | |
|---|
| 125 | | -static const u32 ldo_volt_table2[] = { |
|---|
| 121 | +static const unsigned int ldo_volt_table2[] = { |
|---|
| 126 | 122 | 1500000, 1800000, 2500000, 2800000, |
|---|
| 127 | 123 | }; |
|---|
| 128 | 124 | |
|---|
| 129 | | -static const u32 ldo_volt_table3[] = { |
|---|
| 125 | +static const unsigned int ldo_volt_table3[] = { |
|---|
| 130 | 126 | 1800000, 3300000, |
|---|
| 131 | 127 | }; |
|---|
| 132 | 128 | |
|---|
| 133 | | -static const u32 ldo_volt_table4[] = { |
|---|
| 129 | +static const unsigned int ldo_volt_table4[] = { |
|---|
| 134 | 130 | 3000000, 3300000, |
|---|
| 135 | 131 | }; |
|---|
| 136 | 132 | |
|---|
| 137 | | -static const u32 ldo_volt_table5[] = { |
|---|
| 133 | +static const unsigned int ldo_volt_table5[] = { |
|---|
| 138 | 134 | 1200000, 1300000, 1500000, 1800000, 2000000, 2800000, 3000000, 3300000, |
|---|
| 139 | 135 | }; |
|---|
| 140 | 136 | |
|---|
| 141 | | -static const u32 ldo_volt_table6[] = { |
|---|
| 137 | +static const unsigned int ldo_volt_table6[] = { |
|---|
| 142 | 138 | 1200000, 1300000, 1500000, 1800000, 2500000, 2800000, 3000000, 2000000, |
|---|
| 143 | 139 | }; |
|---|
| 144 | 140 | |
|---|
| 145 | | -static const u32 ldo_volt_table7[] = { |
|---|
| 141 | +static const unsigned int ldo_volt_table7[] = { |
|---|
| 146 | 142 | 1200000, 1300000, 1500000, 1800000, |
|---|
| 147 | 143 | }; |
|---|
| 148 | 144 | |
|---|
| 149 | | -static const u32 ldo_volt_table8[] = { |
|---|
| 145 | +static const unsigned int ldo_volt_table8[] = { |
|---|
| 150 | 146 | 1800000, 3000000, |
|---|
| 151 | 147 | }; |
|---|
| 152 | 148 | |
|---|
| 153 | | -static const u32 ldo_volt_table9[] = { |
|---|
| 149 | +static const unsigned int ldo_volt_table9[] = { |
|---|
| 154 | 150 | 1200000, 1350000, 1500000, 1800000, |
|---|
| 155 | 151 | }; |
|---|
| 156 | 152 | |
|---|
| 157 | | -static const u32 ldo_volt_table10[] = { |
|---|
| 153 | +static const unsigned int ldo_volt_table10[] = { |
|---|
| 158 | 154 | 1200000, 1300000, 1500000, 1800000, |
|---|
| 159 | 155 | }; |
|---|
| 160 | 156 | |
|---|