RTIO/SYS Clock merge #212
@ -111,6 +111,8 @@ pub fn main_core0() {
|
||||
ram::init_alloc_core0();
|
||||
gic::InterruptController::gic(mpcore::RegisterBlock::mpcore()).enable_interrupts();
|
||||
|
||||
info!("gateware ident: {}", identifier_read(&mut [0; 64]));
|
||||
|
||||
i2c::init();
|
||||
|
||||
#[cfg(feature = "target_kasli_soc")]
|
||||
@ -141,9 +143,7 @@ pub fn main_core0() {
|
||||
};
|
||||
|
||||
rtio_clocking::init(&mut timer, &cfg);
|
||||
|
||||
init_gateware();
|
||||
info!("gateware ident: {}", identifier_read(&mut [0; 64]));
|
||||
|
||||
task::spawn(report_async_rtio_errors());
|
||||
|
||||
|
@ -72,12 +72,13 @@ fn init_rtio(timer: &mut GlobalTimer, _clk: RtioClock) {
|
||||
unsafe {
|
||||
pl::csr::sys_crg::clock_switch_write(1);
|
||||
}
|
||||
timer.delay_ms(2);
|
||||
timer.delay_ms(10);
|
||||
// if it's not locked, it will hang at the CSR.
|
||||
unsafe {
|
||||
pl::csr::rtio_core::reset_phy_write(1);
|
||||
}
|
||||
// if it's not locked, it will hang at the CSR.
|
||||
info!("SYS PLL locked");
|
||||
|
||||
}
|
||||
|
||||
#[cfg(has_drtio)]
|
||||
|
Loading…
Reference in New Issue
Block a user