diff options
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_rdb.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi_mpc8xxx.c | 5 | ||||
-rw-r--r-- | include/linux/fsl_devices.h | 5 |
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c index 567ded7c3b9b..17f99745f0e4 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c | |||
@@ -74,7 +74,7 @@ static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk, | |||
74 | 74 | ||
75 | prop = of_get_property(np, "mode", NULL); | 75 | prop = of_get_property(np, "mode", NULL); |
76 | if (prop && !strcmp(prop, "cpu-qe")) | 76 | if (prop && !strcmp(prop, "cpu-qe")) |
77 | pdata.qe_mode = 1; | 77 | pdata.flags = SPI_QE_CPU_MODE; |
78 | 78 | ||
79 | for (j = 0; j < num_board_infos; j++) { | 79 | for (j = 0; j < num_board_infos; j++) { |
80 | if (board_infos[j].bus_num == pdata.bus_num) | 80 | if (board_infos[j].bus_num == pdata.bus_num) |
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c index 394b6581e17f..930135dc73ba 100644 --- a/drivers/spi/spi_mpc8xxx.c +++ b/drivers/spi/spi_mpc8xxx.c | |||
@@ -163,11 +163,6 @@ struct mpc8xxx_spi { | |||
163 | u32 tx_shift; /* TX data reg shift when in qe mode */ | 163 | u32 tx_shift; /* TX data reg shift when in qe mode */ |
164 | 164 | ||
165 | unsigned int flags; | 165 | unsigned int flags; |
166 | #define SPI_QE_CPU_MODE (1 << 0) /* QE CPU ("PIO") mode */ | ||
167 | #define SPI_CPM_MODE (1 << 1) /* CPM/QE ("DMA") mode */ | ||
168 | #define SPI_CPM1 (1 << 2) /* SPI unit is in CPM1 block */ | ||
169 | #define SPI_CPM2 (1 << 3) /* SPI unit is in CPM2 block */ | ||
170 | #define SPI_QE (1 << 4) /* SPI unit is in QE block */ | ||
171 | 166 | ||
172 | struct workqueue_struct *workqueue; | 167 | struct workqueue_struct *workqueue; |
173 | struct work_struct work; | 168 | struct work_struct work; |
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 47188d512b8f..28e33fea5107 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h | |||
@@ -75,6 +75,11 @@ struct fsl_spi_platform_data { | |||
75 | u32 initial_spmode; /* initial SPMODE value */ | 75 | u32 initial_spmode; /* initial SPMODE value */ |
76 | s16 bus_num; | 76 | s16 bus_num; |
77 | unsigned int flags; | 77 | unsigned int flags; |
78 | #define SPI_QE_CPU_MODE (1 << 0) /* QE CPU ("PIO") mode */ | ||
79 | #define SPI_CPM_MODE (1 << 1) /* CPM/QE ("DMA") mode */ | ||
80 | #define SPI_CPM1 (1 << 2) /* SPI unit is in CPM1 block */ | ||
81 | #define SPI_CPM2 (1 << 3) /* SPI unit is in CPM2 block */ | ||
82 | #define SPI_QE (1 << 4) /* SPI unit is in QE block */ | ||
78 | /* board specific information */ | 83 | /* board specific information */ |
79 | u16 max_chipselect; | 84 | u16 max_chipselect; |
80 | void (*cs_control)(struct spi_device *spi, bool on); | 85 | void (*cs_control)(struct spi_device *spi, bool on); |