rockchip/rk3399: Add pwm_regulator.c for pwm then ramp boot up cpu
Before, we calculate the pwm duties for cpu cores and centerlogic by
hand, adding pwm_regulator.c to handle this. The default pwm design
min/max voltage may be different between revs.
With the pwm regulator, this patch changes the little cpu frequency from
600M to 1512M, and raises CPU voltage to 1.2V correspondingly.
This also means we decide to drop the ES1 because it may fail to
bootup with 1.5G ~ 1.2v.
TEST=Bootup on kevin board
Signed-off-by: Martin Roth <firstname.lastname@example.org>
Original-Signed-off-by: Eric Gao <email@example.com>
Original-Signed-off-by: Shunqian Zheng <firstname.lastname@example.org>
Original-Reviewed-by: Julius Werner <email@example.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <firstname.lastname@example.org>
9 files changed