spi-omap2-mcspi.h 559 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _OMAP2_MCSPI_H
  2. #define _OMAP2_MCSPI_H
  3. #define OMAP2_MCSPI_REV 0
  4. #define OMAP3_MCSPI_REV 1
  5. #define OMAP4_MCSPI_REV 2
  6. #define OMAP4_MCSPI_REG_OFFSET 0x100
  7. #define MCSPI_PINDIR_D0_IN_D1_OUT 0
  8. #define MCSPI_PINDIR_D0_OUT_D1_IN 1
  9. struct omap2_mcspi_platform_config {
  10. unsigned short num_cs;
  11. unsigned int regs_offset;
  12. unsigned int pin_dir:1;
  13. };
  14. struct omap2_mcspi_dev_attr {
  15. unsigned short num_chipselect;
  16. };
  17. struct omap2_mcspi_device_config {
  18. unsigned turbo_mode:1;
  19. /* toggle chip select after every word */
  20. unsigned cs_per_word:1;
  21. };
  22. #endif