spi-nuc900.h 730 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2009 Nuvoton technology corporation.
  3. *
  4. * Wan ZongShun <mcuos.com@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation;version 2 of the License.
  9. *
  10. */
  11. #ifndef __SPI_NUC900_H
  12. #define __SPI_NUC900_H
  13. extern void mfp_set_groupg(struct device *dev, const char *subname);
  14. struct nuc900_spi_info {
  15. unsigned int num_cs;
  16. unsigned int lsb;
  17. unsigned int txneg;
  18. unsigned int rxneg;
  19. unsigned int divider;
  20. unsigned int sleep;
  21. unsigned int txnum;
  22. unsigned int txbitlen;
  23. int bus_num;
  24. };
  25. struct nuc900_spi_chip {
  26. unsigned char bits_per_word;
  27. };
  28. #endif /* __SPI_NUC900_H */