Need to change the usdhc clock frequency in Linux 4.1 BSP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Need to change the usdhc clock frequency in Linux 4.1 BSP

651件の閲覧回数
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

タグ(1)
0 件の賞賛
返信
0 返答(返信)