experiments: setup IoPll to 1 GHz to fix eth

This commit is contained in:
Astro 2020-03-31 18:47:36 +02:00
parent d2f91eac25
commit 25e80f63f9
1 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,11 @@ pub fn main_core0() {
println!("Setup clock sources..."); println!("Setup clock sources...");
ArmPll::setup(2 * CPU_FREQ); ArmPll::setup(2 * CPU_FREQ);
Clocks::set_cpu_freq(CPU_FREQ); Clocks::set_cpu_freq(CPU_FREQ);
IoPll::setup(700_000_000); #[cfg(feature = "target_zc706")]
libboard_zynq::stdio::drop_uart(); {
IoPll::setup(1_000_000_000);
libboard_zynq::stdio::drop_uart();
}
println!("PLLs set up"); println!("PLLs set up");
let clocks = zynq::clocks::Clocks::get(); let clocks = zynq::clocks::Clocks::get();
println!("CPU Clocks: {}/{}/{}/{}", clocks.cpu_6x4x(), clocks.cpu_3x2x(), clocks.cpu_2x(), clocks.cpu_1x()); println!("CPU Clocks: {}/{}/{}/{}", clocks.cpu_6x4x(), clocks.cpu_3x2x(), clocks.cpu_2x(), clocks.cpu_1x());