I am new to the i.mx family and am looking for a few general recommendations so I get started off in the right direction.
So far I have built linux 2.6.35 using LTIB and have it running on my M28 EVK.
My first question is, should I stick with LTIB or are there better BSP-build alternatives for i.mx28 (e.g. ptxdist, YOCTO), assuming I'll need to move to a 3.x kernel at some point ?
Next question is, I am developing an app for my MX28 EVK board that needs to talk to a SPI device on SSP2 and could use some pointers on how to set up the board file and spidev. Also, how is SPI support in the 3.x kernels?
Thanks for any help.
Solved! Go to Solution.
Randy, if your question had been answered, please mark the reply from the person who provide correct answers as 'Correct Answer'. So that we can close the discussion.
My previous article will some help for spidev configuration on iMX28EVK Linux.
Note that iMX28 SPI base clock is fixed to 120MHz and SPI clock is 1/n (n >= 2) of the base clock.
If this is inconvenient, you may try to change base clock at drivers/spi/spi_mxs.c at
static int __init mxs_spi_probe(struct platform_device *dev)
clk_set_rate(ss->clk, 120 * 1000 * 1000)
For spidev usage, there is good description in Linux Kernel document linux-126.96.36.199/Documentation/spi/.