Hi folks!
I have a OMAP3 beagle-board running on Android. Now I am developing a protocol driver for McSPI3. But I can't output anything from pin of SPI3. I add several printk in the driver, and I can see the write and read to/from the register of SPI3. But nothing were output from it. I don't know the reason.
I had added the data into the message list. Then I call spi_saync(). The parameters for it is the device* of driver and the message list. The value returned from spi_async is 0, that means OK, although nothing was output. I wonder maybe I should set the parameters such as SPI_MODE, BITS_PER_WORD, and MAX_SPEED_IN_HZ before output data, then I do so. But the problem is still exist. Why? Maybe there are some problems in hardware? I noticed someone say he call clk_get() and clk_enable() to fix the problem. I did as them. But the return value of clk_enable() indicate an error occurred. Now I had no idea to fix it. I hope someone could be kind to help me. Thx!