mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
rockchip: rk3399: set kevin rev3 pwm regulator initial value to 0.95v
kevin rev3 pwm regulator ripple still not great, especially for center logic, for supporting sdram 800MHz stable, raise up it to 0.95v. BRANCH=none BUG=chrome-os-partner:54871 TEST=run "stressapptest -M 1024 -s 1000" on kevin board and pass Change-Id: Ideec9c3ab2f919af732719ed2f6a702068d99c8f Signed-off-by: Lin Huang <hl@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/359130 Commit-Ready: Douglas Anderson <dianders@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
94b9185ac3
commit
d29bc581ef
1 changed files with 10 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue