|
static struct spi_board_info spi_devboard_info[] __initdata = {
#if defined(CONFIG_SPI_MXS) || defined(CONFIG_SPI_MXS_MODULE)
{
/* the modalias must be the same as spi device driver name */
.modalias = "spidev", /* Name of spi_driver for this device */
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
.bus_num = 1, /* Framework bus number */
.chip_select = 0, /* Framework chip select. */
.mode = SPI_MODE_0,
},
#endif
你可以直接改班级文件的 .mode = SPI_MODE_0,或者去掉,在测试源码都可以测试吧 |
|