I had a question about the libraries for T20 and iMX6.
After testing I noticed that if I used the common header files (eg gpio.h, spi.h) redirected to the specific platform it was run on at runtime (gpio_teg.h, spi_imx6.h etc).
Also the tests worked on both modules, except for the SPI.
On the T20 I have to initialize op SPI4 and on iMX6 on SPI1.
Is there a way I could retrieve the specific module at runtime using the libraries, so I can choose the correct SPI?