eMMC initialization Clearfog


I am trying to set up a kernel (linux 5.2) with Clearfog CX LX2.

I added the dts file and the make entry as specified in the build script (lx2160a_build/runme.sh at master · SolidRun/lx2160a_build · GitHub) patches (arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts) for the device.

The kernel was able to compile, however, provides the following error when booting: switch to high-speed from hs200 failed:-110.

I have also tried porting the MMC folder from the above-mentioned script’s linux (kernel 5.4), which again boots but leads to another error: tuning execution failed: -110.

(Note that these errors are for mmc1)

Is there a particular feature/driver that I need to port?

I would definitely not recommend using a kernel earlier than 5.4 especially since 5.2 is not a LTS release kernel. Most likely 5.2 is missing all the mmc driver patches needed to properly support the HS200/HS400 etc. You would either need to backport the mainline patches that were merged, or the NXP BSP kernel patches in order to support this functionality.