For the SPI0, we provide the test demo for test it.
The SPI device inode is "/dev/spidev1.1"", you can write the Test demo refer to the CD://linux/example/spi/spidev_test.c
Then compile it:
# arm-none-linux-gnueabi-gcc spidev_test.c - o spidev_test
Then copy to the board and test the demo with the follow command:
./spidev-test -s 0