This is an automated email from the ASF dual-hosted git repository.

linguini pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 79730c83ca2deaa8df9101d102b551d5ed4170cc
Author: Jukka Laitinen <[email protected]>
AuthorDate: Mon Feb 16 08:33:36 2026 +0200

    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 <[email protected]>
---
 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);
 

Reply via email to