diff --git a/plat/aspeed/ast2700/plat_bl31_setup.c b/plat/aspeed/ast2700/plat_bl31_setup.c index 9fec3e8ec..087b47953 100644 --- a/plat/aspeed/ast2700/plat_bl31_setup.c +++ b/plat/aspeed/ast2700/plat_bl31_setup.c @@ -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));