forked from M-Labs/zynq-rs
experiments: setup IoPll to 1 GHz to fix eth
This commit is contained in:
parent
d2f91eac25
commit
25e80f63f9
|
@ -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")]
|
||||||
|
{
|
||||||
|
IoPll::setup(1_000_000_000);
|
||||||
libboard_zynq::stdio::drop_uart();
|
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());
|
||||||
|
|
Loading…
Reference in New Issue