]> git.baikalelectronics.ru Git - uboot.git/commitdiff
board/BuR/common: fix PMIC mpu-pll setup
authorHannes Schmelzer <oe5hpm@oevsv.at>
Fri, 6 Jul 2018 13:41:23 +0000 (15:41 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 19 Jul 2018 21:03:34 +0000 (17:03 -0400)
If a board-code calls the  pmicsetup(u32 mpupll) with a mpupll value
!= 0 it wants to force some frequency with the value provided by mpupll.
Setting up 1 GHz is wrong here.

Nobody did take notice about that yet, since every board calls this
function with zero.

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
board/BuR/common/common.c

index 1e14a902e9b73b85974820cd3740946293156712..38da36d50b5752b6fd92ce161e0c534e63fa586a 100644 (file)
@@ -280,7 +280,7 @@ void pmicsetup(u32 mpupll)
        printf("detected max. frequency: %d - ", dpll_mpu_opp100.m);
 
        if (0 != mpupll) {
-               dpll_mpu_opp100.m = MPUPLL_M_1000;
+               dpll_mpu_opp100.m = mpupll;
                printf("retuning MPU-PLL to: %d MHz.\n", dpll_mpu_opp100.m);
        } else {
                puts("ok.\n");