forked from M-Labs/artiq
1
0
Fork 0

firmware/libboard/serwb: revert init reset, show delay

This commit is contained in:
Florent Kermarrec 2017-11-10 10:53:20 +01:00
parent 464b24a608
commit d90d624877
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ use csr;
pub fn wait_init() { pub fn wait_init() {
info!("waiting for AMC/RTM serwb bridge to be ready..."); info!("waiting for AMC/RTM serwb bridge to be ready...");
unsafe { unsafe {
//csr::serwb_phy_amc::control_reset_write(1); csr::serwb_phy_amc::control_reset_write(1);
while csr::serwb_phy_amc::control_ready_read() == 0 {} while csr::serwb_phy_amc::control_ready_read() == 0 {}
} }
info!("done."); info!("done.");
@ -24,6 +24,7 @@ pub fn wait_init() {
info!(" delay_min: {}", csr::serwb_phy_amc::control_delay_min_read()); info!(" delay_min: {}", csr::serwb_phy_amc::control_delay_min_read());
info!(" delay_max_found: {}", csr::serwb_phy_amc::control_delay_max_found_read()); info!(" delay_max_found: {}", csr::serwb_phy_amc::control_delay_max_found_read());
info!(" delay_max: {}", csr::serwb_phy_amc::control_delay_max_read()); info!(" delay_max: {}", csr::serwb_phy_amc::control_delay_max_read());
info!(" delay: {}", csr::serwb_phy_amc::control_delay_read());
info!(" bitslip: {}", csr::serwb_phy_amc::control_bitslip_read()); info!(" bitslip: {}", csr::serwb_phy_amc::control_bitslip_read());
info!(" ready: {}", csr::serwb_phy_amc::control_ready_read()); info!(" ready: {}", csr::serwb_phy_amc::control_ready_read());
info!(" error: {}", csr::serwb_phy_amc::control_error_read()); info!(" error: {}", csr::serwb_phy_amc::control_error_read());
@ -36,6 +37,7 @@ pub fn wait_init() {
info!(" delay_min: {}", csr::serwb_phy_rtm::control_delay_min_read()); info!(" delay_min: {}", csr::serwb_phy_rtm::control_delay_min_read());
info!(" delay_max_found: {}", csr::serwb_phy_rtm::control_delay_max_found_read()); info!(" delay_max_found: {}", csr::serwb_phy_rtm::control_delay_max_found_read());
info!(" delay_max: {}", csr::serwb_phy_rtm::control_delay_max_read()); info!(" delay_max: {}", csr::serwb_phy_rtm::control_delay_max_read());
info!(" delay: {}", csr::serwb_phy_rtm::control_delay_read());
info!(" bitslip: {}", csr::serwb_phy_rtm::control_bitslip_read()); info!(" bitslip: {}", csr::serwb_phy_rtm::control_bitslip_read());
info!(" ready: {}", csr::serwb_phy_rtm::control_ready_read()); info!(" ready: {}", csr::serwb_phy_rtm::control_ready_read());
info!(" error: {}", csr::serwb_phy_rtm::control_error_read()); info!(" error: {}", csr::serwb_phy_rtm::control_error_read());