mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2024-11-30 05:13:34 +08:00
fix(ast2700): fix mpll calculate statement
pll_reg.b.bypass equal to 1U, bypass the mpll calculating pll_reg.b.bypass equal to 0U, need to calculate mpll Change-Id: I6cace1509d9429a97c7c9481dc1e2e4f95134d6c Signed-off-by: Kevin Chen <kevin_chen@aspeedtech.com>
This commit is contained in:
parent
80cd7dd1bb
commit
aa09622233
@ -174,7 +174,7 @@ static uint32_t plat_get_pll_rate(int pll_idx)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (pll_reg.b.bypass != 0U) {
|
||||
if (pll_reg.b.bypass == 0U) {
|
||||
if (pll_idx == PLAT_CLK_MPLL) {
|
||||
/* F = 25Mhz * [M / (n + 1)] / (p + 1) */
|
||||
mul = (pll_reg.b.m) / ((pll_reg.b.n + 1));
|
||||
|
Loading…
Reference in New Issue
Block a user