pxa_sdhci.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * include/linux/platform_data/pxa_sdhci.h
  3. *
  4. * Copyright 2010 Marvell
  5. * Zhangfei Gao <zhangfei.gao@marvell.com>
  6. *
  7. * PXA Platform - SDHCI platform data definitions
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef _PXA_SDHCI_H_
  14. #define _PXA_SDHCI_H_
  15. /* pxa specific flag */
  16. /* Require clock free running */
  17. #define PXA_FLAG_ENABLE_CLOCK_GATING (1<<0)
  18. /* card always wired to host, like on-chip emmc */
  19. #define PXA_FLAG_CARD_PERMANENT (1<<1)
  20. /* Board design supports 8-bit data on SD/SDIO BUS */
  21. #define PXA_FLAG_SD_8_BIT_CAPABLE_SLOT (1<<2)
  22. /*
  23. * struct pxa_sdhci_platdata() - Platform device data for PXA SDHCI
  24. * @flags: flags for platform requirement
  25. * @clk_delay_cycles:
  26. * mmp2: each step is roughly 100ps, 5bits width
  27. * pxa910: each step is 1ns, 4bits width
  28. * @clk_delay_sel: select clk_delay, used on pxa910
  29. * 0: choose feedback clk
  30. * 1: choose feedback clk + delay value
  31. * 2: choose internal clk
  32. * @clk_delay_enable: enable clk_delay or not, used on pxa910
  33. * @ext_cd_gpio: gpio pin used for external CD line
  34. * @ext_cd_gpio_invert: invert values for external CD gpio line
  35. * @max_speed: the maximum speed supported
  36. * @host_caps: Standard MMC host capabilities bit field.
  37. * @quirks: quirks of platfrom
  38. * @quirks2: quirks2 of platfrom
  39. * @pm_caps: pm_caps of platfrom
  40. */
  41. struct sdhci_pxa_platdata {
  42. unsigned int flags;
  43. unsigned int clk_delay_cycles;
  44. unsigned int clk_delay_sel;
  45. bool clk_delay_enable;
  46. unsigned int ext_cd_gpio;
  47. bool ext_cd_gpio_invert;
  48. unsigned int max_speed;
  49. u32 host_caps;
  50. u32 host_caps2;
  51. unsigned int quirks;
  52. unsigned int quirks2;
  53. unsigned int pm_caps;
  54. };
  55. #endif /* _PXA_SDHCI_H_ */