forked from M-Labs/artiq
1
0
Fork 0

firmware: skip clock switch for efc

This commit is contained in:
Sebastien Bourdeauducq 2023-08-25 15:06:42 +08:00
parent a2a780a3f2
commit 2139456f80
1 changed files with 2 additions and 0 deletions

View File

@ -463,6 +463,7 @@ const SI5324_SETTINGS: si5324::FrequencySettings
crystal_as_ckin2: true
};
#[cfg(not(soc_platform = "efc"))]
fn sysclk_setup() {
let switched = unsafe {
csr::crg::switch_done_read()
@ -529,6 +530,7 @@ pub extern fn main() -> i32 {
io_expander1.service().unwrap();
}
#[cfg(not(soc_platform = "efc"))]
sysclk_setup();
#[cfg(soc_platform = "efc")]