kasli_soc: enable clock buffer after system clock domain reset

This commit is contained in:
Denis Ovchinnikov 2023-06-27 12:43:36 +08:00
parent f52c155006
commit 0d97eeb56a
2 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ fn init_rtio(timer: &mut GlobalTimer) {
panic!("SYS CLK did not switch"); panic!("SYS CLK did not switch");
} }
unsafe { unsafe {
pl::csr::sys_crg::clock_switch_write(1); //re-enable clock input buffer after system clock domain reset
pl::csr::rtio_core::reset_phy_write(1); pl::csr::rtio_core::reset_phy_write(1);
} }
info!("SYS PLL locked"); info!("SYS PLL locked");
@ -103,6 +104,7 @@ fn init_drtio(timer: &mut GlobalTimer) {
panic!("SYS CLK did not switch"); panic!("SYS CLK did not switch");
} }
unsafe { unsafe {
pl::csr::drtio_transceiver::stable_clkin_write(1); //re-enable clock input buffer after system clock domain reset
pl::csr::rtio_core::reset_phy_write(1); pl::csr::rtio_core::reset_phy_write(1);
pl::csr::drtio_transceiver::txenable_write(0xffffffffu32 as _); pl::csr::drtio_transceiver::txenable_write(0xffffffffu32 as _);
} }

View File

@ -642,6 +642,7 @@ pub extern "C" fn main_core0() -> i32 {
} }
unsafe { unsafe {
csr::drtio_transceiver::stable_clkin_write(1); //re-enable clock input buffer after system clock domain reset
csr::drtio_transceiver::txenable_write(0xffffffffu32 as _); csr::drtio_transceiver::txenable_write(0xffffffffu32 as _);
} }