code: plan9front

Download patch

ref: 6a714c488e82d70ed612d05202998fa5eb547859
parent: 217f99b1373f6d2a29a8fc05a2e065df2b926bf0
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Apr 7 17:44:21 EDT 2024

imx8/sai: run off ref 25MHz clock - no need to turn audio PLL on

--- a/sys/src/9/imx8/sai.c
+++ b/sys/src/9/imx8/sai.c
@@ -400,7 +400,7 @@
 	iomuxpad("pad_sai2_txd0", "sai2_tx_data0", "~LVTTL HYS PUE ~ODE FAST 45_OHM");
 	iomuxpad("pad_sai2_mclk", "sai2_mclk", "~LVTTL HYS PUE ~ODE FAST 45_OHM");
 
-	setclkrate("sai2.ipg_clk", "audio_pll1_clk", 25*Mhz);
+	setclkrate("sai2.ipg_clk", "osc_25m_ref_clk", 25*Mhz);
 	setclkgate("sai2.ipg_clk", 1);
 
 	intrenable(IRQsai2, saiinterrupt, ctlr, BUSUNKNOWN, "sai2");