ftsdc010_mci.h 887 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Faraday FTSDC010 Secure Digital Memory Card Host Controller
  4. *
  5. * Copyright (C) 2011 Andes Technology Corporation
  6. * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  7. */
  8. #include <mmc.h>
  9. #ifndef __FTSDC010_MCI_H
  10. #define __FTSDC010_MCI_H
  11. struct ftsdc010_chip {
  12. void __iomem *regs;
  13. uint32_t wprot; /* write protected (locked) */
  14. uint32_t rate; /* actual SD clock in Hz */
  15. uint32_t sclk; /* FTSDC010 source clock in Hz */
  16. uint32_t fifo; /* fifo depth in bytes */
  17. uint32_t acmd;
  18. struct mmc_config cfg; /* mmc configuration */
  19. const char *name;
  20. void *ioaddr;
  21. unsigned int caps;
  22. unsigned int version;
  23. unsigned int clock;
  24. unsigned int bus_hz;
  25. unsigned int div;
  26. int dev_index;
  27. int dev_id;
  28. int buswidth;
  29. u32 fifoth_val;
  30. struct mmc *mmc;
  31. void *priv;
  32. bool fifo_mode;
  33. };
  34. #endif /* __FTSDC010_MCI_H */