From 25e80f63f93b1918231d52855dc12891b540f6a3 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 31 Mar 2020 18:47:36 +0200 Subject: [PATCH] experiments: setup IoPll to 1 GHz to fix eth --- experiments/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index f445cac..2281a35 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -44,8 +44,11 @@ pub fn main_core0() { println!("Setup clock sources..."); ArmPll::setup(2 * CPU_FREQ); Clocks::set_cpu_freq(CPU_FREQ); - IoPll::setup(700_000_000); - libboard_zynq::stdio::drop_uart(); + #[cfg(feature = "target_zc706")] + { + IoPll::setup(1_000_000_000); + libboard_zynq::stdio::drop_uart(); + } println!("PLLs set up"); let clocks = zynq::clocks::Clocks::get(); println!("CPU Clocks: {}/{}/{}/{}", clocks.cpu_6x4x(), clocks.cpu_3x2x(), clocks.cpu_2x(), clocks.cpu_1x());