/drivers/spi/spi-omap2-mcspi.c 把static int omap2_mcspi_setup_transfer(struct spi_device *spi,
struct spi_transfer *t) 函数的if (mcspi->pin_dir == MCSPI_PINDIR_D0_IN_D1_OUT)判断MCSPI_PINDIR_D0_OUT_D1_IN就行,或者/include/linux/platform_data/spi-omap2-mcspi.h里面的宏定义调换一下就行
#define MCSPI_PINDIR_D0_OUT_D1_IN 0
#define MCSPI_PINDIR_D0_IN_D1_OUT 1
/drivers/spi/spi-omap2-mcspi.c 把static int omap2_mcspi_setup_transfer(struct spi_device *spi,
struct spi_transfer *t) 函数的if (mcspi->pin_dir == MCSPI_PINDIR_D0_IN_D1_OUT)判断MCSPI_PINDIR_D0_OUT_D1_IN就行,或者/include/linux/platform_data/spi-omap2-mcspi.h里面的宏定义调换一下就行
#define MCSPI_PINDIR_D0_OUT_D1_IN 0
#define MCSPI_PINDIR_D0_IN_D1_OUT 1
举报