From d90d624877b297d16ef1546d95ec05edf3557476 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 10 Nov 2017 10:53:20 +0100 Subject: [PATCH] firmware/libboard/serwb: revert init reset, show delay --- artiq/firmware/libboard/serwb.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/libboard/serwb.rs b/artiq/firmware/libboard/serwb.rs index c8b2e392d..7d12f0498 100644 --- a/artiq/firmware/libboard/serwb.rs +++ b/artiq/firmware/libboard/serwb.rs @@ -3,7 +3,7 @@ use csr; pub fn wait_init() { info!("waiting for AMC/RTM serwb bridge to be ready..."); 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 {} } info!("done."); @@ -24,6 +24,7 @@ pub fn wait_init() { 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: {}", 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!(" ready: {}", csr::serwb_phy_amc::control_ready_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_max_found: {}", csr::serwb_phy_rtm::control_delay_max_found_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!(" ready: {}", csr::serwb_phy_rtm::control_ready_read()); info!(" error: {}", csr::serwb_phy_rtm::control_error_read());