From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Schmelzer Date: Fri, 6 Jul 2018 15:41:23 +0200 Subject: [U-Boot] [PATCH 06/12] board/BuR/common: fix PMIC mpu-pll setup In-Reply-To: <1530884489-28089-1-git-send-email-oe5hpm@oevsv.at> References: <1530884489-28089-1-git-send-email-oe5hpm@oevsv.at> Message-ID: <1530884489-28089-7-git-send-email-oe5hpm@oevsv.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- board/BuR/common/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index 1e14a90..38da36d 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -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"); -- 2.7.4