Hi,
we have custom board based on the imx6q-sabre board, on our tests at high temperature we got the board running, but the libraries for graphic display are not loaded correctly and we can't ssh the board. (the xserver and some other libraries are located on the sd), we want to try limit the speed of the SD card to 25MHz instead the high speed that is auto detected (50Mhz)... Our BSP is build using yocto
I already tried to edit the dtsi file editing max-frequency and was not successful:
&usdhc4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc4>;
bus-width = <8>;
non-removable;
clock-frequency = <25000000>;
max-frequency = <25000000>;
status = "disabled";
};
Editing the /drivers/mmc/fsl_esdhc.c/drivers/mmc/fsl_esdhc.c to force the cfg.f_max to be 25000000. Also no success.
The only way I had set the speed to 25Mhz is setting the clock on linux like this:
echo 25000000 > /sys/kernel/debug/mmc3/clock
but we need to set the max speed before xserver and other libraries are loaded from the sd card.
How could I ensure to limit the speed of the sd card to test is this is our problem at high temperatures...
Regards!