spi-gpio.h 695 B

12345678910111213141516171819202122232425262728
  1. /* arch/arm/mach-s3c2410/include/mach/spi-gpio.h
  2. *
  3. * Copyright (c) 2006 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * S3C2410 - SPI Controller platfrom_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_SPIGPIO_H
  13. #define __ASM_ARCH_SPIGPIO_H __FILE__
  14. struct s3c2410_spigpio_info {
  15. unsigned long pin_clk;
  16. unsigned long pin_mosi;
  17. unsigned long pin_miso;
  18. int num_chipselect;
  19. int bus_num;
  20. void (*chip_select)(struct s3c2410_spigpio_info *spi, int cs);
  21. };
  22. #endif /* __ASM_ARCH_SPIGPIO_H */