nuc900_spi.h 790 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/nuc900_spi.h
  3. *
  4. * Copyright (c) 2009 Nuvoton technology corporation.
  5. *
  6. * Wan ZongShun <mcuos.com@gmail.com>
  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 as published by
  10. * the Free Software Foundation;version 2 of the License.
  11. *
  12. */
  13. #ifndef __ASM_ARCH_SPI_H
  14. #define __ASM_ARCH_SPI_H
  15. extern void mfp_set_groupg(struct device *dev, const char *subname);
  16. struct nuc900_spi_info {
  17. unsigned int num_cs;
  18. unsigned int lsb;
  19. unsigned int txneg;
  20. unsigned int rxneg;
  21. unsigned int divider;
  22. unsigned int sleep;
  23. unsigned int txnum;
  24. unsigned int txbitlen;
  25. int bus_num;
  26. };
  27. struct nuc900_spi_chip {
  28. unsigned char bits_per_word;
  29. };
  30. #endif /* __ASM_ARCH_SPI_H */