From 79730c83ca2deaa8df9101d102b551d5ed4170cc Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Mon, 16 Feb 2026 08:33:36 +0200 Subject: [PATCH] arch/imx9: Increase uSDHC root clock to 400MHz This is the nominal speed according to the TRM, and using higher root clock gives more frequency selections (possible dividers) for the SD card clock configuration. Signed-off-by: Jukka Laitinen --- arch/arm64/src/imx9/imx9_usdhc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/src/imx9/imx9_usdhc.c b/arch/arm64/src/imx9/imx9_usdhc.c index c63477b641d..3733df55ef5 100644 --- a/arch/arm64/src/imx9/imx9_usdhc.c +++ b/arch/arm64/src/imx9/imx9_usdhc.c @@ -3453,7 +3453,7 @@ struct sdio_dev_s *imx9_usdhc_initialize(int slotno) /* Enable clocks */ - imx9_ccm_configure_root_clock(CCM_CR_USDHC1, SYS_PLL1PFD1, 4); + imx9_ccm_configure_root_clock(CCM_CR_USDHC1, SYS_PLL1PFD1, 2); imx9_get_rootclock(CCM_CR_USDHC1, &priv->root_clock_freq); imx9_ccm_gate_on(CCM_LPCG_USDHC1, true); @@ -3488,7 +3488,7 @@ struct sdio_dev_s *imx9_usdhc_initialize(int slotno) /* Enable clocks */ - imx9_ccm_configure_root_clock(CCM_CR_USDHC2, SYS_PLL1PFD1, 4); + imx9_ccm_configure_root_clock(CCM_CR_USDHC2, SYS_PLL1PFD1, 2); imx9_get_rootclock(CCM_CR_USDHC2, &priv->root_clock_freq); imx9_ccm_gate_on(CCM_LPCG_USDHC2, true);