From 2139456f806bc3b7ac4ed9ebb6fc416f57d5fa62 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 25 Aug 2023 15:06:42 +0800 Subject: [PATCH] firmware: skip clock switch for efc --- artiq/firmware/satman/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/firmware/satman/main.rs b/artiq/firmware/satman/main.rs index b1553000a..e4452575f 100644 --- a/artiq/firmware/satman/main.rs +++ b/artiq/firmware/satman/main.rs @@ -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")]