clock vs actual_clock in mmc(imx8qxp)

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

clock vs actual_clock in mmc(imx8qxp)

1,175 Views
wasim_nazir
Contributor II

Hi,

Why the clock and actual clock is different in mmc for imx8qxp?

------------------------------------------------------------------

# cat /sys/kernel/debug/mmc0/ios
clock: 200000000 Hz
actual clock: 166666666 Hz
vdd: 21 (3.3 ~ 3.4 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 3 (8 bits)
timing spec: 10 (mmc HS400)
signal voltage: 1 (1.80 V)
driver type: 0 (driver type B)

------------------------------------------------------------------

Is it possible to increase actual_clock and will it help in increasing the speed of mmc?

Thanks in Advance,

Regards,

Wasim

Tags (3)
0 Kudos
1 Reply

1,088 Views
igorpadykov
NXP Employee
NXP Employee

Hi Wasim

>Why the clock and actual clock is different in mmc for imx8qxp?

this is because linux clock driver divides and rounds plls frequency to most appropriate

value. Description linux common clk framework

https://www.kernel.org/doc/Documentation/clk.txt 

>Is it possible to increase actual_clock and will it help in increasing the speed of mmc?

in general one can try to reprogram parent pll, however linux emmc driver selects speed

automatically based on emmc CSD register which carries the device specific information

like data transfer speed.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos