mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:06:59 +07:00
5cbc7ca987
This patch allows the board code to define SPI devices which needs to toggle the chip select after every word send. This is needed to get a better resolution reading e.g. an ADC data stream. Apart from that, as in the normal code CS is controlled by software, a transfer is done much faster. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
31 lines
559 B
C
31 lines
559 B
C
#ifndef _OMAP2_MCSPI_H
|
|
#define _OMAP2_MCSPI_H
|
|
|
|
#define OMAP2_MCSPI_REV 0
|
|
#define OMAP3_MCSPI_REV 1
|
|
#define OMAP4_MCSPI_REV 2
|
|
|
|
#define OMAP4_MCSPI_REG_OFFSET 0x100
|
|
|
|
#define MCSPI_PINDIR_D0_IN_D1_OUT 0
|
|
#define MCSPI_PINDIR_D0_OUT_D1_IN 1
|
|
|
|
struct omap2_mcspi_platform_config {
|
|
unsigned short num_cs;
|
|
unsigned int regs_offset;
|
|
unsigned int pin_dir:1;
|
|
};
|
|
|
|
struct omap2_mcspi_dev_attr {
|
|
unsigned short num_chipselect;
|
|
};
|
|
|
|
struct omap2_mcspi_device_config {
|
|
unsigned turbo_mode:1;
|
|
|
|
/* toggle chip select after every word */
|
|
unsigned cs_per_word:1;
|
|
};
|
|
|
|
#endif
|