summaryrefslogtreecommitdiff
path: root/src/soc/rockchip
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/rockchip')
-rw-r--r--src/soc/rockchip/rk3399/romstage.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/soc/rockchip/rk3399/romstage.c b/src/soc/rockchip/rk3399/romstage.c
index b65a9adc87..11454d3d04 100644
--- a/src/soc/rockchip/rk3399/romstage.c
+++ b/src/soc/rockchip/rk3399/romstage.c
@@ -41,6 +41,7 @@ static void init_dvs_outputs(void)
{
int duty_ns;
uint32_t i;
+ uint32_t id;
write32(&rk3399_grf->iomux_pwm_0, IOMUX_PWM_0); /* GPU */
write32(&rk3399_grf->iomux_pwm_1, IOMUX_PWM_1); /* Big */
@@ -76,10 +77,15 @@ static void init_dvs_outputs(void)
* period = 3337, volt = 1.0: 2383
* period = 3337, volt = 0.9: 2860
*/
- if (IS_ENABLED(CONFIG_BOARD_GOOGLE_KEVIN) && (board_id() <= 2))
- duty_ns = 1906; /* 1.1v */
- else
- duty_ns = 2860; /* 0.9v */
+ duty_ns = 2860; /* 0.9v */
+
+ if (IS_ENABLED(CONFIG_BOARD_GOOGLE_KEVIN)) {
+ id = board_id();
+ if (id <= 2)
+ duty_ns = 1906; /* 1.1v */
+ else if (id == 3)
+ duty_ns = 2621; /* 0.95v */
+ }
for (i = 0; i < 4; i++)
pwm_init(i, 3337, duty_ns);