spi.h 713 B

1234567891011121314151617181920212223242526272829
  1. /* linux/include/asm-arm/arch-s3c2410/spi.h
  2. *
  3. * Copyright (c) 2006 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * S3C2410 - SPI Controller platform_device info
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __ASM_ARCH_SPI_H
  13. #define __ASM_ARCH_SPI_H __FILE__
  14. struct s3c2410_spi_info;
  15. struct spi_board_info;
  16. struct s3c2410_spi_info {
  17. unsigned long pin_cs; /* simple gpio cs */
  18. unsigned long board_size;
  19. struct spi_board_info *board_info;
  20. void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol);
  21. };
  22. #endif /* __ASM_ARCH_SPI_H */