summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/asurada/regulator.c5
-rw-r--r--src/mainboard/google/cherry/regulator.c5
-rw-r--r--src/mainboard/google/corsola/display.c4
-rw-r--r--src/mainboard/google/corsola/regulator.c5
-rw-r--r--src/mainboard/google/corsola/romstage.c4
5 files changed, 10 insertions, 13 deletions
diff --git a/src/mainboard/google/asurada/regulator.c b/src/mainboard/google/asurada/regulator.c
index d57df0126d..5fd5d4b8d7 100644
--- a/src/mainboard/google/asurada/regulator.c
+++ b/src/mainboard/google/asurada/regulator.c
@@ -38,8 +38,7 @@ static int get_mt6359p_regulator_id(enum mtk_regulator regulator)
return -1;
}
-void mainboard_set_regulator_vol(enum mtk_regulator regulator,
- uint32_t voltage_uv)
+void mainboard_set_regulator_voltage(enum mtk_regulator regulator, uint32_t voltage_uv)
{
/*
* Handle the regulator that does not have a regulator ID
@@ -68,7 +67,7 @@ void mainboard_set_regulator_vol(enum mtk_regulator regulator,
printk(BIOS_WARNING, "Invalid regulator ID: %d\n", regulator);
}
-uint32_t mainboard_get_regulator_vol(enum mtk_regulator regulator)
+uint32_t mainboard_get_regulator_voltage(enum mtk_regulator regulator)
{
/*
* Handle the regulator that does not have a regulator ID
diff --git a/src/mainboard/google/cherry/regulator.c b/src/mainboard/google/cherry/regulator.c
index f157ae61dc..12de049e98 100644
--- a/src/mainboard/google/cherry/regulator.c
+++ b/src/mainboard/google/cherry/regulator.c
@@ -51,8 +51,7 @@ static int check_regulator_control(enum mtk_regulator regulator)
return 0;
}
-void mainboard_set_regulator_vol(enum mtk_regulator regulator,
- uint32_t voltage_uv)
+void mainboard_set_regulator_voltage(enum mtk_regulator regulator, uint32_t voltage_uv)
{
if (check_regulator_control(regulator) < 0)
return;
@@ -89,7 +88,7 @@ void mainboard_set_regulator_vol(enum mtk_regulator regulator,
printk(BIOS_ERR, "Invalid regulator ID: %d\n", regulator);
}
-uint32_t mainboard_get_regulator_vol(enum mtk_regulator regulator)
+uint32_t mainboard_get_regulator_voltage(enum mtk_regulator regulator)
{
if (check_regulator_control(regulator) < 0)
return 0;
diff --git a/src/mainboard/google/corsola/display.c b/src/mainboard/google/corsola/display.c
index 5a88cad7b9..2f52175355 100644
--- a/src/mainboard/google/corsola/display.c
+++ b/src/mainboard/google/corsola/display.c
@@ -35,9 +35,9 @@ static void bridge_ps8640_power_on(void)
*/
/* Set VRF12 to 1.2V and VCN33 to 3.3V */
- mainboard_set_regulator_vol(MTK_REGULATOR_VRF12, 1200000);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VRF12, 1200000);
udelay(100);
- mainboard_set_regulator_vol(MTK_REGULATOR_VCN33, 3300000);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VCN33, 3300000);
udelay(200);
/* Turn on bridge */
diff --git a/src/mainboard/google/corsola/regulator.c b/src/mainboard/google/corsola/regulator.c
index d607497a4f..4f03c181e2 100644
--- a/src/mainboard/google/corsola/regulator.c
+++ b/src/mainboard/google/corsola/regulator.c
@@ -26,8 +26,7 @@ static const int regulator_id[] = {
_Static_assert(ARRAY_SIZE(regulator_id) == MTK_REGULATOR_NUM, "regulator_id size error");
-void mainboard_set_regulator_vol(enum mtk_regulator regulator,
- uint32_t voltage_uv)
+void mainboard_set_regulator_voltage(enum mtk_regulator regulator, uint32_t voltage_uv)
{
assert(regulator < MTK_REGULATOR_NUM);
@@ -38,7 +37,7 @@ void mainboard_set_regulator_vol(enum mtk_regulator regulator,
mt6366_set_voltage(regulator_id[regulator], voltage_uv);
}
-uint32_t mainboard_get_regulator_vol(enum mtk_regulator regulator)
+uint32_t mainboard_get_regulator_voltage(enum mtk_regulator regulator)
{
assert(regulator < MTK_REGULATOR_NUM);
diff --git a/src/mainboard/google/corsola/romstage.c b/src/mainboard/google/corsola/romstage.c
index 8d03b5b54c..01f8af3f0f 100644
--- a/src/mainboard/google/corsola/romstage.c
+++ b/src/mainboard/google/corsola/romstage.c
@@ -11,8 +11,8 @@
static void raise_little_cpu_freq(void)
{
- mainboard_set_regulator_vol(MTK_REGULATOR_VPROC12, 1031250);
- mainboard_set_regulator_vol(MTK_REGULATOR_VSRAM_PROC12, 1118750);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VPROC12, 1031250);
+ mainboard_set_regulator_voltage(MTK_REGULATOR_VSRAM_PROC12, 1118750);
udelay(200);
mt_pll_raise_little_cpu_freq(2000 * MHz);
mt_pll_raise_cci_freq(1385 * MHz);