|
@@ -149,27 +149,27 @@ static inline int getmiso(const struct spi_device *spi)
|
|
*/
|
|
*/
|
|
|
|
|
|
static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi,
|
|
static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits);
|
|
|
|
|
|
+ return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi,
|
|
static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- return bitbang_txrx_be_cpha1(spi, nsecs, 0, 0, word, bits);
|
|
|
|
|
|
+ return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi,
|
|
static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- return bitbang_txrx_be_cpha0(spi, nsecs, 1, 0, word, bits);
|
|
|
|
|
|
+ return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi,
|
|
static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- return bitbang_txrx_be_cpha1(spi, nsecs, 1, 0, word, bits);
|
|
|
|
|
|
+ return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -183,30 +183,30 @@ static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi,
|
|
*/
|
|
*/
|
|
|
|
|
|
static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi,
|
|
static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- unsigned flags = spi->master->flags;
|
|
|
|
|
|
+ flags = spi->master->flags;
|
|
return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits);
|
|
return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi,
|
|
static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- unsigned flags = spi->master->flags;
|
|
|
|
|
|
+ flags = spi->master->flags;
|
|
return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits);
|
|
return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 spi_gpio_spec_txrx_word_mode2(struct spi_device *spi,
|
|
static u32 spi_gpio_spec_txrx_word_mode2(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- unsigned flags = spi->master->flags;
|
|
|
|
|
|
+ flags = spi->master->flags;
|
|
return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits);
|
|
return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 spi_gpio_spec_txrx_word_mode3(struct spi_device *spi,
|
|
static u32 spi_gpio_spec_txrx_word_mode3(struct spi_device *spi,
|
|
- unsigned nsecs, u32 word, u8 bits)
|
|
|
|
|
|
+ unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
|
{
|
|
{
|
|
- unsigned flags = spi->master->flags;
|
|
|
|
|
|
+ flags = spi->master->flags;
|
|
return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits);
|
|
return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits);
|
|
}
|
|
}
|
|
|
|
|