@@ -166,6 +166,24 @@ static const struct dvfsrc_regulator_pdata mt8195_data = {
166
166
.size = ARRAY_SIZE (mt8195_regulators ),
167
167
};
168
168
169
+ static const unsigned int mt8196_voltages [] = {
170
+ 575000 ,
171
+ 600000 ,
172
+ 650000 ,
173
+ 725000 ,
174
+ 825000 ,
175
+ 875000 ,
176
+ };
177
+
178
+ static const struct regulator_desc mt8196_regulators [] = {
179
+ MTK_DVFSRC_VREG ("dvfsrc-vcore" , VCORE , mt8196_voltages ),
180
+ };
181
+
182
+ static const struct dvfsrc_regulator_pdata mt8196_data = {
183
+ .descs = mt8196_regulators ,
184
+ .size = ARRAY_SIZE (mt8196_regulators ),
185
+ };
186
+
169
187
static int dvfsrc_vcore_regulator_probe (struct platform_device * pdev )
170
188
{
171
189
struct regulator_config config = { .dev = & pdev -> dev };
@@ -195,6 +213,7 @@ static const struct of_device_id mtk_dvfsrc_regulator_match[] = {
195
213
{ .compatible = "mediatek,mt8183-dvfsrc-regulator" , .data = & mt8183_data },
196
214
{ .compatible = "mediatek,mt8192-dvfsrc-regulator" , .data = & mt6873_data },
197
215
{ .compatible = "mediatek,mt8195-dvfsrc-regulator" , .data = & mt8195_data },
216
+ { .compatible = "mediatek,mt8196-dvfsrc-regulator" , .data = & mt8196_data },
198
217
{ /* sentinel */ }
199
218
};
200
219
MODULE_DEVICE_TABLE (of , mtk_dvfsrc_regulator_match );
0 commit comments