mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
sunxi: power: axp809: Fix DCDC4 programming
When trying to set the DCDC4 regulator, the code was accidentally setting the voltage register for DCDC5 (VCC-DRAM). The higher voltage doesn't harm the DRAM chips, but upsets the Linux regulator driver: when it tried to correct that, it tripped over a separate DT bug. The DCDC5 DT limits are 1.425 and 1.575V, which cannot bet set with the rail's resolution of 50mV. The kernel driver gave up, and made in turn the system hang, as the PMIC powers essential devices. Fix the copy&paste bug by using the correct PMIC voltage register. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
parent
7db2f11eb0
commit
d75fa8c80d
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ int axp_set_dcdc4(unsigned int mvolt)
|
|||
return pmic_bus_clrbits(AXP809_OUTPUT_CTRL1,
|
||||
AXP809_OUTPUT_CTRL1_DCDC4_EN);
|
||||
|
||||
ret = pmic_bus_write(AXP809_DCDC5_CTRL, cfg);
|
||||
ret = pmic_bus_write(AXP809_DCDC4_CTRL, cfg);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue