summaryrefslogtreecommitdiffstats
path: root/src/vendorcode
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2022-07-20 10:22:53 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-07-21 10:30:57 +0000
commitd5dafb2c0a6bac5c9d87f0e07e339570e0fd3267 (patch)
tree9a1efa4a808f6f9c97343c2cd32e2b073d2ea96e /src/vendorcode
parent8ba3e34f18f041b231acfae10b6e4cc2533532da (diff)
downloadcoreboot-d5dafb2c0a6bac5c9d87f0e07e339570e0fd3267.tar.gz
coreboot-d5dafb2c0a6bac5c9d87f0e07e339570e0fd3267.tar.bz2
coreboot-d5dafb2c0a6bac5c9d87f0e07e339570e0fd3267.zip
mb/google: Replace some strings in regulator.c
From comments of CB:65875, we replace *_vol to *_voltage. s/mainboard_set_regulator_vol/mainboard_set_regulator_voltage/ s/mainboard_get_regulator_vol/mainboard_get_regulator_voltage/ TEST=build pass BUG=b:233720142 Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: Iadf0408e8914d6e32915464f93979978c4634eaf Reviewed-on: https://review.coreboot.org/c/coreboot/+/65994 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/mediatek/mt8192/dramc/dramc_top.c20
-rw-r--r--src/vendorcode/mediatek/mt8195/dramc/dramc_top.c20
2 files changed, 20 insertions, 20 deletions
diff --git a/src/vendorcode/mediatek/mt8192/dramc/dramc_top.c b/src/vendorcode/mediatek/mt8192/dramc/dramc_top.c
index 04fd62a27f76..aa4f2ef29755 100644
--- a/src/vendorcode/mediatek/mt8192/dramc/dramc_top.c
+++ b/src/vendorcode/mediatek/mt8192/dramc/dramc_top.c
@@ -176,7 +176,7 @@ unsigned int dramc_set_vcore_voltage(unsigned int vcore)
dramc_debug("%s set vcore to %d\n", __func__, vcore);
//mt6359p_buck_set_voltage(MT6359P_GPU11, vcore);
- mainboard_set_regulator_vol(MTK_REGULATOR_VCORE, vcore);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VCORE, vcore);
return 0;
}
@@ -186,7 +186,7 @@ unsigned int dramc_get_vcore_voltage(void)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vcore);
#else
- return mainboard_get_regulator_vol(MTK_REGULATOR_VCORE);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VCORE);
#endif
}
@@ -195,7 +195,7 @@ unsigned int dramc_set_vdram_voltage(unsigned int ddr_type, unsigned int vdram)
#ifdef MTK_PMIC_MT6359
mtk_regulator_set_voltage(&reg_vdram, vdram, MAX_VDRAM);
#endif
- mainboard_set_regulator_vol(MTK_REGULATOR_VDD2, vdram);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VDD2, vdram);
return 0;
}
@@ -204,7 +204,7 @@ unsigned int dramc_get_vdram_voltage(unsigned int ddr_type)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vdram);
#else
- return mainboard_get_regulator_vol(MTK_REGULATOR_VDD2);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VDD2);
#endif
}
@@ -213,7 +213,7 @@ unsigned int dramc_set_vddq_voltage(unsigned int ddr_type, unsigned int vddq)
#ifdef MTK_PMIC_MT6359
mtk_regulator_set_voltage(&reg_vddq, vddq, MAX_VDDQ);
#endif
- mainboard_set_regulator_vol(MTK_REGULATOR_VDDQ, vddq);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VDDQ, vddq);
return 0;
}
@@ -222,7 +222,7 @@ unsigned int dramc_get_vddq_voltage(unsigned int ddr_type)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vddq);
#else
- return mainboard_get_regulator_vol(MTK_REGULATOR_VDDQ);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VDDQ);
#endif
}
@@ -231,7 +231,7 @@ unsigned int dramc_set_vmddr_voltage(unsigned int vmddr)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_set_voltage(&reg_vmddr, vmddr, MAX_VMDDR);
#endif
- mainboard_set_regulator_vol(MTK_REGULATOR_VMDDR, vmddr);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VMDDR, vmddr);
return 0;
}
@@ -240,7 +240,7 @@ unsigned int dramc_get_vmddr_voltage(void)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vmddr);
#else
- return mainboard_get_regulator_vol(MTK_REGULATOR_VMDDR);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VMDDR);
#endif
}
@@ -252,7 +252,7 @@ unsigned int dramc_set_vio18_voltage(unsigned int vio18)
pmic_config_interface(PMIC_RG_VM18_VOCAL_ADDR, twist, PMIC_RG_VM18_VOCAL_MASK, PMIC_RG_VM18_VOCAL_SHIFT);
return mtk_regulator_set_voltage(&reg_vio18, vio18, MAX_VIO18);
#else
- mainboard_set_regulator_vol(MTK_REGULATOR_VDD1, vio18);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VDD1, vio18);
return 0;
#endif
}
@@ -265,7 +265,7 @@ unsigned int dramc_get_vio18_voltage(void)
pmic_read_interface(PMIC_RG_VM18_VOCAL_ADDR, &twist, PMIC_RG_VM18_VOCAL_MASK, PMIC_RG_VM18_VOCAL_SHIFT);
return mtk_regulator_get_voltage(&reg_vio18) + twist * UNIT_VIO18;
#else
- return mainboard_get_regulator_vol(MTK_REGULATOR_VDD1);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VDD1);
#endif
}
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c
index e5e3b19b0997..e6b93335a10b 100644
--- a/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c
+++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c
@@ -354,7 +354,7 @@ unsigned int dramc_set_vcore_voltage(unsigned int vcore)
return mtk_regulator_set_voltage(&reg_vcore, vcore, MAX_VCORE);
#elif defined(FOR_COREBOOT)
dramc_debug("%s set vcore to %u\n", __func__, vcore);
- mainboard_set_regulator_vol(MTK_REGULATOR_VCORE, vcore);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VCORE, vcore);
return 0;
#else
return 0;
@@ -366,7 +366,7 @@ unsigned int dramc_get_vcore_voltage(void)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vcore);
#elif defined(FOR_COREBOOT)
- return mainboard_get_regulator_vol(MTK_REGULATOR_VCORE);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VCORE);
#else
return 0;
#endif
@@ -377,7 +377,7 @@ unsigned int dramc_set_vmdd_voltage(unsigned int ddr_type, unsigned int vdram)
#ifdef MTK_PMIC_MT6359
mtk_regulator_set_voltage(&reg_vdram, vdram, MAX_VDRAM);
#elif defined(FOR_COREBOOT)
- mainboard_set_regulator_vol(MTK_REGULATOR_VDD2, vdram);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VDD2, vdram);
#endif
return 0;
}
@@ -387,7 +387,7 @@ unsigned int dramc_get_vmdd_voltage(unsigned int ddr_type)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vdram);
#elif defined(FOR_COREBOOT)
- return mainboard_get_regulator_vol(MTK_REGULATOR_VDD2);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VDD2);
#else
return 0;
#endif
@@ -398,7 +398,7 @@ unsigned int dramc_set_vmddq_voltage(unsigned int ddr_type, unsigned int vddq)
#ifdef MTK_PMIC_MT6359
mtk_regulator_set_voltage(&reg_vddq, vddq, MAX_VDDQ);
#elif defined(FOR_COREBOOT)
- mainboard_set_regulator_vol(MTK_REGULATOR_VDDQ, vddq);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VDDQ, vddq);
#endif
return 0;
}
@@ -408,7 +408,7 @@ unsigned int dramc_get_vmddq_voltage(unsigned int ddr_type)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vddq);
#elif defined(FOR_COREBOOT)
- return mainboard_get_regulator_vol(MTK_REGULATOR_VDDQ);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VDDQ);
#else
return 0;
#endif
@@ -419,7 +419,7 @@ unsigned int dramc_set_vmddr_voltage(unsigned int vmddr)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_set_voltage(&reg_vmddr, vmddr, MAX_VMDDR);
#elif defined(FOR_COREBOOT)
- mainboard_set_regulator_vol(MTK_REGULATOR_VMDDR, vmddr);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VMDDR, vmddr);
return 0;
#else
return 0;
@@ -431,7 +431,7 @@ unsigned int dramc_get_vmddr_voltage(void)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vmddr);
#elif defined(FOR_COREBOOT)
- return mainboard_get_regulator_vol(MTK_REGULATOR_VMDDR);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VMDDR);
#else
return 0;
#endif
@@ -442,7 +442,7 @@ unsigned int dramc_set_vio18_voltage(unsigned int vio18)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_set_voltage(&reg_vio18, vio18, MAX_VIO18);
#elif defined(FOR_COREBOOT)
- mainboard_set_regulator_vol(MTK_REGULATOR_VDD1, vio18);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VDD1, vio18);
return 0;
#else
return 0;
@@ -455,7 +455,7 @@ unsigned int dramc_get_vio18_voltage(void)
#ifdef MTK_PMIC_MT6359
return mtk_regulator_get_voltage(&reg_vio18);
#elif defined(FOR_COREBOOT)
- return mainboard_get_regulator_vol(MTK_REGULATOR_VDD1);
+ return mainboard_get_regulator_voltage(MTK_REGULATOR_VDD1);
#else
return 0;
#endif