Skip to content

Commit fde0b41

Browse files
committed
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 <jukka.laitinen@tii.ae>
1 parent e09df71 commit fde0b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/src/imx9/imx9_usdhc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3453,7 +3453,7 @@ struct sdio_dev_s *imx9_usdhc_initialize(int slotno)
34533453

34543454
/* Enable clocks */
34553455

3456-
imx9_ccm_configure_root_clock(CCM_CR_USDHC1, SYS_PLL1PFD1, 4);
3456+
imx9_ccm_configure_root_clock(CCM_CR_USDHC1, SYS_PLL1PFD1, 2);
34573457
imx9_get_rootclock(CCM_CR_USDHC1, &priv->root_clock_freq);
34583458
imx9_ccm_gate_on(CCM_LPCG_USDHC1, true);
34593459

@@ -3488,7 +3488,7 @@ struct sdio_dev_s *imx9_usdhc_initialize(int slotno)
34883488

34893489
/* Enable clocks */
34903490

3491-
imx9_ccm_configure_root_clock(CCM_CR_USDHC2, SYS_PLL1PFD1, 4);
3491+
imx9_ccm_configure_root_clock(CCM_CR_USDHC2, SYS_PLL1PFD1, 2);
34923492
imx9_get_rootclock(CCM_CR_USDHC2, &priv->root_clock_freq);
34933493
imx9_ccm_gate_on(CCM_LPCG_USDHC2, true);
34943494

0 commit comments

Comments
 (0)