mcspi.h 477 B

1234567891011121314151617181920212223242526
  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. struct omap2_mcspi_platform_config {
  8. unsigned short num_cs;
  9. unsigned int regs_offset;
  10. };
  11. struct omap2_mcspi_dev_attr {
  12. unsigned short num_chipselect;
  13. };
  14. struct omap2_mcspi_device_config {
  15. unsigned turbo_mode:1;
  16. /* Do we want one channel enabled at the same time? */
  17. unsigned single_channel:1;
  18. };
  19. #endif