zynq::ddr: fix PLL_FDIV_LOCK_PARAM usage

this seems to make DDR RAM work.
master
Astro 2019-10-27 20:30:38 +01:00
parent 9b4f07f37c
commit 27114aec62
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ impl CpuClocks {
);
let (pll_res, pll_cp, lock_cnt) = PLL_FDIV_LOCK_PARAM.iter()
.filter(|(fdiv_max, _)| fdiv <= *fdiv_max)
.last()
.nth(0)
.expect("PLL_FDIV_LOCK_PARAM")
.1.clone();
regs.ddr_pll_cfg.write(