firmware: fix si5324 select_recovered_clock

This commit is contained in:
Sebastien Bourdeauducq 2018-03-07 09:45:27 +08:00
parent 7d98864b31
commit e6e5236ce2

View File

@ -272,7 +272,7 @@ pub fn select_recovered_clock(rc: bool) -> Result<()> {
unsafe {
csr::si_phaser::switch_clocks_write(if rc { 1 } else { 0 });
}
write(3, (read(3)? & 0xdf) | (1 << 5))?; // DHOLD=0
write(3, (read(3)? & 0xdf) | (0 << 5))?; // DHOLD=0
monitor_lock()?;
Ok(())
}