Need to change the usdhc clock frequency in Linux 4.1 BSP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need to change the usdhc clock frequency in Linux 4.1 BSP

514 Views
asmitaamonkar1
Contributor I

Hi,

Linux BSP version : 4.1
CPU : imx6 quad
Purpose: To test SD card with different frequency for e.g. 48 Mhz, want to change the usdhc clock frequency. 

As per datasheet following steps are required to change the usdhc clock:

1. Change PLL2_PFD2 clock frequency:
a) Change the CCM_ANALOG_PFD_528n Register for PFD2_FRAC value ( PFD2_FRAC is divisor for PLL2_PFD2 clock)
PLL2_PFD2 clock = 528*18/PFD2_FRAC
2. Set the CCM_CSCMR1 register (Bit 16,17,18,19) for deriving clock from "derive clock from 396M PFD" option ( This option is already set in the BSP )
3. Set the CSCDR1 register for usdhcx_podf [2:0] bits.

Need help in knowing which files of the BSP can be changed.

Regards,

Asmita

Tags (1)
0 Kudos
0 Replies