spi_coldfire.h 628 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2018 Angelo Dureghello <angelo@sysam.it>
  4. */
  5. #ifndef __spi_coldfire_h
  6. #define __spi_coldfire_h
  7. #define MAX_CTAR_REGS 8
  8. #define MAX_CTAR_FIELDS 8
  9. /*
  10. * struct coldfire_spi_platdata - information about a coldfire spi module
  11. *
  12. * @regs_addr: base address for module registers
  13. * @speed_hz: default SCK frequency
  14. * @mode: default SPI mode
  15. * @num_cs: number of DSPI chipselect signals
  16. */
  17. struct coldfire_spi_platdata {
  18. fdt_addr_t regs_addr;
  19. uint speed_hz;
  20. uint mode;
  21. uint num_cs;
  22. uint ctar[MAX_CTAR_REGS][MAX_CTAR_FIELDS];
  23. };
  24. #endif /* __spi_coldfire_h */